:root {
  --paper: #f2f1eb;
  --graphite: #34373b;
  --citron: #d9f345;
  --ink: var(--graphite);
  --muted: #565b60;
  --edge: clamp(24px, 6.6vw, 104px);
  --header-top: clamp(27px, 5.8svh, 68px);
  --frame: 1520px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.scene:focus { outline: 0; }
::selection { color: #202225; background: var(--citron); }

.frame {
  width: min(100%, var(--frame));
  margin-inline: auto;
  padding-inline: var(--edge);
}
.scene {
  position: relative;
  isolation: isolate;
  overflow: clip;
  color: var(--ink);
}
.dark-scene {
  --ink: #f6f5ef;
  --muted: #c2c4c4;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.index-dot {
  width: 8px;
  height: 8px;
  background: var(--citron);
  border: 1px solid #7a8b30;
}
h1, h2, h3 {
  color: var(--ink);
  font-weight: 730;
  letter-spacing: -.077em;
  line-height: .99;
}
h2 { font-size: clamp(54px, 7.8vw, 120px); }
.lede, .project-description {
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.52;
  letter-spacing: -.024em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: fit-content;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 12px 19px;
  color: #202315;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s, transform .3s var(--ease-out), box-shadow .25s;
}
.button-citron { background: var(--citron); }
.button-citron:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #e4fa68;
  box-shadow: 0 9px 26px #a6b93436;
}
.button:active:not(:disabled) { transform: translateY(0); }
.dark-scene .button:focus-visible { outline-color: var(--citron); }
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  width: fit-content;
  border-bottom: 1px solid color-mix(in srgb, currentColor 45%, transparent);
  padding-block: 7px;
  font-size: clamp(16px, 1.45vw, 19px);
  font-weight: 660;
  text-decoration: none;
}
.icon-definitions { position: absolute; pointer-events: none; }
.link-arrow {
  flex: 0 0 auto;
  transition: transform .35s var(--ease-out);
}
.project-link:hover .link-arrow { transform: translate(3px, -2px); }

.skip-link {
  position: fixed;
  z-index: 9;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  background: var(--graphite);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
}
.skip-link:focus { transform: none; }
.scroll-progress {
  position: fixed;
  z-index: 7;
  top: 0;
  inset-inline: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: #b2c72f;
  pointer-events: none;
}
.menu-trigger {
  position: fixed;
  z-index: 6;
  top: calc(var(--header-top) + 6px);
  right: calc(max(0px, (100% - var(--frame)) / 2) + var(--edge));
  display: grid;
  place-content: center;
  gap: 5px;
  width: 49px;
  height: 49px;
  border: 1px solid #34373b31;
  border-radius: 12px;
  background: #f2f1ebed;
  color: var(--graphite);
  backdrop-filter: blur(12px);
  transition: background .25s, color .25s, border-color .25s;
}
.menu-trigger:hover { background: #fffef8; }
.menu-trigger span { display: block; width: 21px; height: 2px; background: currentColor; }
.menu-trigger.is-dark { border-color: #ffffff40; color: var(--paper); background: #292b2de8; }
.menu-trigger.is-dark:hover { background: #3b3e41; }
.site-menu {
  position: fixed;
  inset: calc(var(--header-top) + 6px) calc(max(0px, (100% - var(--frame)) / 2) + var(--edge)) auto auto;
  width: min(370px, calc(100vw - 2 * var(--edge)));
  max-height: calc(100svh - 2 * var(--header-top));
  margin: 0;
  border: 1px solid #34373b26;
  border-radius: 22px;
  padding: 22px 26px 24px;
  background: var(--paper);
  color: var(--graphite);
  box-shadow: 0 22px 90px #14171b45;
}
.site-menu[open] { animation: menu-in .3s var(--ease-out) both; }
.site-menu::backdrop { background: #17191d66; backdrop-filter: blur(5px); }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.menu-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #34373b36;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  font-size: 27px;
  line-height: 1;
}
.site-menu nav { display: grid; }
.site-menu nav a {
  display: block;
  border-top: 1px solid #34373b25;
  padding: 14px 0;
  color: inherit;
  font-size: 23px;
  font-weight: 640;
  letter-spacing: -.045em;
  text-decoration: none;
}
.site-menu nav a:hover { color: #596b12; }

.hero {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: max(610px, 100svh);
  background: radial-gradient(ellipse at 48% 31%, #fbfaf5, transparent 67%), var(--paper);
}
.hero-header { position: relative; z-index: 1; padding-top: var(--header-top); }
.wordmark { width: clamp(126px, 12.2vw, 181px); height: auto; }
.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-block: clamp(70px, 10svh, 135px);
  animation: hero-in .85s var(--ease-out) both;
}
@keyframes hero-in {
  from { opacity: .25; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero h1 { font-size: clamp(58px, 7.1vw, 111px); }
.hero-cta { margin-top: clamp(30px, 5.6svh, 53px); }
.hero-art { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-slab {
  position: absolute;
  inset: -3% 0 -7%;
  background: linear-gradient(146deg, #686c6e, #34373b 55%, #222528 94%);
  clip-path: polygon(100% 19%, 100% 100%, 47% 100%);
}
.hero-cut {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(60px, 11vw, 165px);
  height: clamp(70px, 17vh, 178px);
  background: linear-gradient(140deg, #ebfa83, var(--citron) 65%);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 69%);
}
.hero-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: clamp(26px, 4.8vh, 51px);
  color: #575a59;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .18em;
}
.hero-caption span { display: block; width: 21px; height: 1px; background: #777a75; }

.work-intro {
  display: grid;
  place-items: center;
  min-height: clamp(340px, 54svh, 590px);
  padding-block: 78px;
  background: #faf9f4;
  text-align: center;
}
.intro-content { display: grid; justify-items: center; gap: 22px; }
.intro-content h2 { font-size: clamp(52px, 7.1vw, 105px); }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(20px, 3vw, 60px);
  min-height: clamp(580px, 89svh, 1000px);
  padding-block: clamp(74px, 10svh, 114px);
}
.project-copy { position: relative; z-index: 1; }
.project-identity {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.35vw, 18px);
}
.app-icon {
  flex: 0 0 auto;
  display: inline-block;
  width: var(--app-icon-size, clamp(42px, 4vw, 58px));
  aspect-ratio: 1;
  border-radius: 25%;
  background-image: url("assets/portfolio-app-icons-full.jpg");
  background-size: 647.0588% 496.5686%;
  background-position: var(--icon-x) var(--icon-y);
  box-shadow: 0 6px 17px #14171b26;
}
/* Crop the app icons from the three rows of the supplied image. */
.app-icon-homadi { --icon-x: 9.4086%; --icon-y: 4.3263%; }
.app-icon-hemu { --icon-x: 36.4695%; --icon-y: 4.3263%; }
.app-icon-dropship { --icon-x: 63.5305%; --icon-y: 4.3263%; }
.app-icon-hemo { --icon-x: 90.5914%; --icon-y: 4.3263%; }
.app-icon-spatialscan { --icon-x: 9.4086%; --icon-y: 44.6230%; }
.app-icon-dwsos { --icon-x: 36.4695%; --icon-y: 44.6230%; }
.app-icon-store { --icon-x: 63.5305%; --icon-y: 44.6230%; }
.app-icon-dyru { --icon-x: 90.5914%; --icon-y: 44.6230%; }
.app-icon-eivi { --icon-x: 36.4695%; --icon-y: 84.9197%; }
.app-icon-driver { --icon-x: 63.5305%; --icon-y: 84.9197%; }
.app-icon-darinn { --icon-x: 90.5914%; --icon-y: 84.9197%; }
.watch-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--app-icon-size);
  aspect-ratio: 1;
  border-radius: 25%;
  background: #232a35;
  color: #ffb07c;
  box-shadow: 0 6px 17px #14171b26;
}
.scene-number {
  border-right: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-right: 11px;
  font-variant-numeric: tabular-nums;
}
.project h3 {
  margin-block: 19px 23px;
  font-size: clamp(70px, 9.2vw, 133px);
  white-space: nowrap;
}
.project-description { margin-bottom: 20px; }
.project-visual { position: relative; min-width: 0; }
.project-visual img { display: block; width: 100%; height: auto; }
.project-dwsos { background: radial-gradient(ellipse at 73% 40%, #3d4246, #222527 55%, #191b1e 94%); }
.visual-dwsos { margin: -5% -4% -6% -3%; }

.project-dyru { background: #eae9e4; }
.visual-dyru { display: grid; gap: 16px; margin-left: 1%; }
.dyru-orbit {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.37;
  border: 1px solid #c8c9c3;
  border-radius: clamp(19px, 3vw, 37px);
  background: radial-gradient(ellipse at 81% 21%, #666a70 0, #35383c 49%, #202225 100%);
}
.dyru-screen {
  position: absolute;
  top: 13%;
  left: 10%;
  width: 90%;
  min-height: 89%;
  transform: rotate(-7deg);
  border: 1px solid #68717e;
  border-radius: clamp(11px, 1.4vw, 24px);
  background: #191f28;
  box-shadow: -11px 20px 55px #080b0fa3, 0 1px 0 #ffffff40 inset;
  color: #f7f7f9;
}
.dyru-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #ffffff16;
  padding: clamp(10px, 1.5vw, 21px);
}
.dyru-top strong { display: flex; align-items: center; gap: 7px; font-size: clamp(12px, 1.45vw, 21px); letter-spacing: -.06em; }
.dyru-top strong span { width: .62em; height: .62em; border-radius: 23%; background: #ffa765; }
.dyru-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c9cad1;
  font-size: clamp(6px, .65vw, 9px);
  font-weight: 700;
  letter-spacing: .12em;
}
.dyru-status i { width: 5px; height: 5px; border-radius: 50%; background: #ffa765; }
.dyru-shell { display: grid; grid-template-columns: 13% 1fr; }
.dyru-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(9px, 1vw, 16px);
  border-right: 1px solid #ffffff13;
  padding: clamp(14px, 2vw, 28px) 0;
}
.dyru-sidebar i {
  display: block;
  width: clamp(8px, 1.2vw, 17px);
  aspect-ratio: 1;
  border: 1px solid #717b8b;
  border-radius: 3px;
}
.dyru-sidebar i:first-child { background: #ffa765; border-color: #ffa765; }
.dyru-content { min-width: 0; padding: clamp(12px, 2.1vw, 30px); }
.dyru-content strong {
  display: block;
  margin-block: 4px 9px;
  font-size: clamp(13px, 2.3vw, 31px);
  letter-spacing: -.06em;
}
.dyru-label { color: #ffbc8b; font-size: clamp(6px, .74vw, 10px); font-weight: 750; letter-spacing: .14em; }
.dyru-chart {
  overflow: hidden;
  border: 1px solid #ffffff17;
  border-radius: 8px;
  background: repeating-linear-gradient(0deg, transparent 0 21%, #cdd8e513 21% 22%), #212934;
}
.dyru-chart svg { width: 100%; height: auto; aspect-ratio: 3.5; }
.dyru-modules { display: flex; flex-wrap: wrap; gap: 5px; margin-top: clamp(6px, 1vw, 15px); }
.dyru-modules span {
  border: 1px solid #ffffff17;
  border-radius: 6px;
  padding: .5em .7em;
  color: #d4d8df;
  font-size: clamp(7px, .85vw, 11px);
}
.visual-dyru figcaption, .darinn-caption {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.visual-dyru figcaption { color: #5b6061; text-align: right; }

.project-darinn { background: #202623; }
.project-darinn .project-grid { min-height: clamp(630px, 96svh, 1060px); }
.darinn-image { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.darinn-image img {
  position: absolute;
  inset: -7% 0;
  width: 100%;
  height: 114%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
}
.darinn-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0f1516f4 0%, #101617d4 27%, #11171873 53%, #13191b05 78%), linear-gradient(0deg, #12171780, transparent 45%);
  content: "";
}
.darinn-caption { position: absolute; right: var(--edge); bottom: 25px; color: #f1f0e9; }
.project-darinn .project-description, .project-darinn .eyebrow { color: #e9e8df; }

.more-work {
  border-block: 1px solid #f2f1eb1d;
  background: radial-gradient(ellipse at 76% 28%, #383d2c7d, transparent 61%),
    radial-gradient(ellipse at 22% 53%, #29424f55, transparent 57%), #222529;
}
.more-work-inner { padding-block: clamp(44px, 6vw, 86px); }
.more-work-toggle {
  display: flex;
  margin-inline: auto;
  list-style: none;
}
.more-work-toggle::-webkit-details-marker { display: none; }
.more-work-toggle::marker { content: ""; }
.more-work-less, .more-work-details[open] .more-work-more { display: none; }
.more-work-details[open] .more-work-less { display: inline; }
.more-work-details[open] .more-work-toggle .link-arrow { transform: rotate(180deg); }
.more-work-content { padding-top: clamp(46px, 7vw, 100px); }
.more-work-details[open] .more-work-content { animation: hero-in .55s var(--ease-out) both; }
.more-work-content h2 { font-size: clamp(42px, 6vw, 90px); }
.development-grid {
  --app-icon-size: clamp(48px, 5.7vw, 68px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(18px, 4.2vw, 68px);
  margin: clamp(27px, 4.5vw, 58px) 0 0;
  padding: 0;
  list-style: none;
}
.development-item {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
  border-top: 1px solid #f2f1eb30;
  padding-block: clamp(21px, 3.3vw, 40px);
}
.development-item h3 {
  margin-top: 2px;
  font-size: clamp(20px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.048em;
  overflow-wrap: anywhere;
}
.development-item p {
  max-width: 28ch;
  color: var(--muted);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.45;
}

.studio {
  display: grid;
  align-items: center;
  min-height: clamp(615px, 87svh, 970px);
  background: linear-gradient(140deg, #27292c, #34373b 74%, #26282b);
}
.studio-inner { position: relative; z-index: 1; padding-block: 102px; }
.studio h2, .founder h2, .contact h2 { margin-block: 22px; }
.studio .project-link, .founder .project-link { margin-top: 20px; }
.studio-detail {
  position: absolute;
  z-index: -1;
  right: -4%;
  bottom: -21%;
  width: min(63%, 900px);
  transform: rotate(-12deg);
  color: #ffffff0d;
  pointer-events: none;
}
.studio-detail path + path { opacity: .17; }

.founder { background: #f8f7f1; }
.founder-grid, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr);
  align-items: center;
  gap: clamp(28px, 6vw, 100px);
  min-height: clamp(510px, 74svh, 860px);
  padding-block: 106px;
}
.founder h2 { font-size: clamp(49px, 6.7vw, 100px); }
.founder-note { border-left: 1px solid #34373b35; padding-left: clamp(21px, 3vw, 46px); }
.contact { background: #252729; }
.contact-grid { align-items: start; min-height: auto; padding-block: clamp(100px, 14svh, 174px) 75px; }
.contact h2 { font-size: clamp(53px, 6.9vw, 105px); }
.brief-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; }
.brief-form label { color: #f3f2eb; font-size: 13px; font-weight: 650; }
.brief-form input, .brief-form textarea {
  width: 100%;
  min-height: 46px;
  margin-bottom: 8px;
  border: 1px solid #ffffff4a;
  border-radius: 9px;
  padding: 11px 12px;
  background: #ffffff06;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}
.brief-form input:focus, .brief-form textarea:focus { outline: 2px solid var(--citron); outline-offset: 2px; }
.brief-form textarea { resize: vertical; }
.brief-form .button { margin-top: 4px; }
.form-note, .form-status { color: var(--muted); font-size: 13px; line-height: 1.45; }
.form-status:empty { display: none; }
.form-status { color: #e3ef9d; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #ffffff24;
  padding-block: 26px;
  color: #bcbfbc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}

[data-parallax] { transform: translateY(var(--drift, 0px)); }
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(31px);
  transition: opacity .83s var(--ease-out), transform 1.05s var(--ease-out);
}
.motion-ready [data-reveal].in-view, .motion-ready [data-reveal]:focus-within {
  opacity: 1;
  transform: none;
}

@media (max-width: 800px) {
  :root { --edge: clamp(22px, 6vw, 46px); --header-top: clamp(26px, 4.5svh, 44px); }
  .hero { min-height: max(540px, 100svh); }
  .hero h1 { font-size: clamp(34px, 10vw, 77px); }
  .hero-content { padding-block: 60px 100px; }
  .hero-slab { clip-path: polygon(100% 65%, 100% 100%, 31% 100%); }
  .hero-cut { width: clamp(48px, 15vw, 95px); height: clamp(62px, 12vh, 125px); }
  .hero-caption { padding-bottom: 27px; letter-spacing: .115em; }
  .hero-caption span { width: 13px; }
  .menu-trigger { top: var(--header-top); }
  .site-menu { top: var(--header-top); }
  .work-intro { min-height: 0; padding-block: 108px 83px; }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 23px;
    min-height: auto;
    padding-block: 92px 62px;
  }
  .project h3 { margin-block: 15px 16px; font-size: clamp(60px, 14vw, 104px); }
  .project-description { margin-bottom: 15px; }
  .project-visual { max-width: 620px; }
  .visual-dwsos { margin: -1% -5% -3%; }
  .visual-dyru { margin: 8px 0 0; gap: 11px; }
  .project-darinn .project-grid {
    align-content: end;
    min-height: max(640px, 95svh);
    padding-bottom: 82px;
  }
  .darinn-image img { object-position: 68% center; }
  .darinn-image::after { background: linear-gradient(0deg, #0e1515f8 0%, #111717ce 30%, #12171830 70%, #1217181a 100%); }
  .darinn-caption { right: var(--edge); bottom: 22px; }
  .development-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio { min-height: 570px; }
  .studio-inner { padding-block: 94px; }
  .studio h2 { font-size: clamp(48px, 10vw, 80px); }
  .studio-detail { width: 93%; right: -24%; bottom: -18%; }
  .desktop-break { display: none; }
  .founder-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 88px 78px; min-height: 0; }
  .founder h2 { margin-bottom: 0; font-size: clamp(49px, 10.7vw, 83px); }
  .founder-note { padding-left: 18px; }
  .contact h2 { font-size: clamp(48px, 11vw, 83px); }
  .contact-grid { gap: 36px; }
  .site-footer { padding-block: 25px; font-size: 9px; letter-spacing: .105em; }
}

@media (max-width: 365px) {
  .hero-caption span { display: none; }
  .studio h2, .founder h2, .contact h2 { font-size: 45px; }
  .eyebrow { gap: 8px; font-size: 10px; letter-spacing: .13em; }
  .scene-number { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  [data-parallax] { transform: none; }
  .button-citron:hover, .project-link:hover .link-arrow { transform: none; }
}

@media (max-width: 500px) {
  .hero-caption { display: none; }
  .hero-content { padding-bottom: 138px; }
}
