/* Aven — madebyaven.com. Identity v1.0: ivory and ink, Bricolage Grotesque / Geist / Geist Mono,
   one angle (67.9°, the wordmark v's diagonal), cobalt once per view, motion that opens. */
:root {
  --paper: #F7F2E8; --paper-deep: #EEE7D9; --hair: #D8D0C2; --muted: #514C43; --ink: #141414;
  --cobalt: #3157E7; --cobalt-on-ink: #8DA2FF;
  --line: rgba(20, 20, 20, .26);
  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --body: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(20px, 4.5vw, 96px);
  --gap: 24px;
  --nav: 72px;
  --open: cubic-bezier(.16, 1, .3, 1);
  --bg: var(--paper);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
main { outline: none; }
.wrap { margin-inline: max(var(--pad), calc((100% - 1360px) / 2)); }
.skip { position: fixed; left: var(--pad); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- buttons and links: the shaft, its fill opening from the centre ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 15px/1.1 var(--body);
  text-decoration: none; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .15s var(--open); }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cobalt); transform: scaleX(0); transition: transform .45s var(--open); }
.btn:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn--xl { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(20, 20, 20, .32); font-size: 14px; }
.btn--ghost:is(:hover, :focus-visible) { color: var(--paper); }
.arrow { width: 12px; height: 12px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.link { font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .2s; }
.link:is(:hover, :focus-visible) { background-size: 100% 1px, 100% 1px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* ---------- header ---------- */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--hair); }
.hd-in { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: var(--nav); padding-inline: max(var(--pad), calc((100% - 1360px) / 2)); }
.logo { display: inline-flex; align-items: center; min-height: 44px; width: 76px; }
.mark { display: block; width: 100%; height: auto; }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; color: var(--muted); text-decoration: none; }
.lang .on { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lang i { font-style: normal; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; }
.menu-btn i { width: 22px; height: 8px; border-block: 1.5px solid currentColor; transition: transform .3s, height .3s; }
.menu-btn[aria-expanded="true"] i { height: 0; border-bottom: 0; transform: rotate(45deg); }
.menu { position: fixed; inset: 0; z-index: 1; background: var(--paper); padding: calc(var(--nav) + 32px) var(--pad) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--open); }
.menu.open { clip-path: inset(0); }
.menu li { border-bottom: 1px solid var(--hair); }
.menu ol a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; text-decoration: none; }
.menu small { font: 11px var(--mono); color: var(--muted); padding-top: .7em; }
.menu span { font: 700 clamp(42px, 12vw, 64px)/1 var(--display); font-stretch: 78%; letter-spacing: -.03em; }
.menu-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.menu-foot a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- sections: one screen each (two for the method) ---------- */
.section { position: relative; min-height: 100svh; padding: 120px 0 72px; }
.section > .wrap { position: relative; }
.ink { --bg: var(--ink); background: var(--ink); color: var(--paper); }
h2 { font: 680 clamp(34px, 1.9vw + 18px, 56px)/.98 var(--display); font-stretch: 80%; letter-spacing: -.025em; max-width: 18em; }
.num { display: block; font: 12px/1 var(--mono); letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.ink .num { color: #B9B3A8; }

/* hero: words left, the deliverables stacked in 3D right */
.hero { height: 100svh; min-height: 640px; padding: calc(var(--nav) + 48px) 0 64px; overflow: clip; }
.hero-grid { height: 100%; display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 var(--gap); align-items: center; }
.hero > .wrap { height: 100%; }
.hero-copy { grid-column: 1 / span 6; }
h1 { font: 700 clamp(46px, 5vw, 88px)/.94 var(--display); font-stretch: 78%; letter-spacing: -.03em; margin-bottom: 28px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.2vw, 20px); line-height: 1.5; max-width: 33em; color: #2d2b28; margin-bottom: 36px; }
.stage { grid-column: 7 / span 6; align-self: stretch; position: relative; perspective: 1800px; perspective-origin: 50% 40%; }
.stack { --px: 0; --py: 0; --gap3d: 0px; position: absolute; left: 50%; top: 57%; width: min(27vw, 450px); aspect-ratio: 4 / 3; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(calc(54deg + var(--py) * -8deg)) rotateZ(calc(-34deg + var(--px) * 8deg)); transition: transform .9s var(--open); }
.card { position: absolute; inset: 0; background: var(--paper); border: 1px solid var(--line); transform: translateZ(calc(var(--z) * var(--gap3d)));
  transition: transform 1.2s var(--open) calc(var(--z) * 80ms); box-shadow: 0 1px 0 rgba(20, 20, 20, .06), 0 34px 60px -28px rgba(20, 20, 20, .38); }
.card .mk { width: 100%; height: 100%; }
.floor { position: absolute; inset: -4%; transform: translateZ(-30px); opacity: .22; background: repeating-linear-gradient(-22.1deg, var(--ink) 0 1.5px, transparent 1.5px 7px); }
.stage.open .stack, html:not(.js) .stack { --gap3d: 80px; }
.stage.open:hover .stack { --gap3d: 96px; }

/* statement: words light up as it crosses the screen */
.statement { font: 720 clamp(44px, 4.8vw, 88px)/.96 var(--display); font-stretch: 75%; letter-spacing: -.035em; margin-top: 40px; }
.statement strong { font-weight: inherit; color: var(--cobalt-on-ink); }
.js .statement .w { color: rgba(247, 242, 232, .42); transition: color .25s; }
.js .statement .w.on { color: var(--paper); }
.js .statement strong.w.on { color: var(--cobalt-on-ink); }
#position > .wrap { min-height: calc(100svh - 192px); display: flex; flex-direction: column; }
.band { margin-top: auto; padding-top: 40px; height: clamp(160px, 22vh, 240px); color: var(--paper); overflow: hidden; }
.tess { display: block; width: 100%; height: 100%; }

/* services: the list chooses the mockup */
.svc-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); margin-top: 48px; align-items: stretch; }
.svc-list { grid-column: 1 / span 6; }
.note { font-size: 15px; color: var(--muted); margin-bottom: 20px; max-width: 34em; }
.toc li { border-bottom: 1px solid var(--line); }
.toc-b { width: 100%; display: grid; grid-template-columns: 3.2em 1fr; text-align: left; padding: 24px 0; }
.toc-b .n { font: 12px var(--mono); color: var(--muted); padding-top: .9em; }
.toc-b .t { font: 640 clamp(28px, 1.6vw + 14px, 40px)/1.1 var(--display); font-stretch: 85%; letter-spacing: -.015em; transition: color .15s; }
.toc-b:hover .t { color: var(--cobalt); }
.toc-b[aria-pressed="true"] .t { font-weight: 720; }
.toc-b[aria-pressed="true"] .n { color: var(--cobalt); }
.svc-detail { margin-top: 24px; max-width: 34em; }
.svc-fig { grid-column: 7 / span 6; display: grid; background: var(--paper-deep); padding: 32px; }
.svc-art { align-self: center; }
.svc-art.open { animation: shaft .45s var(--open) both; }
@keyframes shaft { from { clip-path: inset(0 50% 0 50% round 999px); } to { clip-path: inset(0 0 0 0 round 0); } }

/* method: held on screen while its four steps open in turn */
.method-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--gap); align-items: center; }
.method-text { grid-column: 1 / span 6; }
.steps { margin-top: 40px; display: grid; gap: 20px; }
.step { padding-left: 24px; border-left: 2px solid var(--hair); transition: border-color .3s; }
.step h3 { font: 640 30px/1.1 var(--display); font-stretch: 85%; letter-spacing: -.015em; color: var(--muted); transition: color .3s; }
.step .num { display: inline-block; margin: 0 14px 0 0; vertical-align: middle; }
.step p { max-width: 30em; margin-top: 8px; }
.step.on { border-color: var(--cobalt); }
.step.on h3 { color: var(--ink); }
.frames { grid-column: 7 / span 6; position: relative; aspect-ratio: 4 / 3; background: var(--paper-deep); }
.frame { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; opacity: 0; transition: opacity .4s, transform .6s var(--open); transform: scale(.98); }
.frame.on { opacity: 1; transform: none; }
.frame .mark { width: 70%; }
.diag { width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 1.7; overflow: visible; }
.diag .acc { stroke: var(--cobalt); }
.diag .g { stroke: var(--muted); stroke-width: .6; stroke-dasharray: 3 3; }
.diag text { fill: var(--ink); stroke: none; font: 10px var(--mono); }
.diag .sw { stroke: none; } .diag .ink { fill: var(--ink); } .diag .deep { fill: var(--paper-deep); stroke: var(--ink); stroke-width: .6; } .diag .acc-f { fill: var(--cobalt); }
/* with script on a large screen, the section is two screens and its content holds for one */
@media (min-width: 1024px) and (min-height: 640px) {
  .js .method { height: 200svh; padding: 0; }
  .js .method-grid { position: sticky; top: 0; height: 100svh; padding: calc(var(--nav) + 48px) 0 72px; }
  .js .step:not(.on) p { display: none; }
}

/* mockups */
.mk { display: block; width: 100%; height: auto; color: var(--ink); }
.mk .i { fill: var(--ink); } .mk .p { fill: var(--paper); } .mk .d { fill: var(--paper-deep); } .mk .c { fill: var(--cobalt); }
.mk .s { stroke: var(--ink); stroke-width: 1.5; } .mk .ink { color: var(--ink); }
.mk text { fill: var(--ink); font-family: var(--body); }
.mk .td { font-family: var(--display); font-weight: 700; font-stretch: 78%; letter-spacing: -.02em; }
.mk .tm { font-family: var(--mono); fill: var(--muted); letter-spacing: .04em; }
.mk .b { font-weight: 600; } .mk .pp { fill: var(--paper); } .mk .mid { text-anchor: middle; }

/* close and footer */
.closing { min-height: 100svh; padding: 120px 0 72px; background: var(--paper-deep); display: flex; }
.closing > .wrap { flex: 1; display: flex; flex-direction: column; }
.close-lead { color: var(--muted); font-size: 19px; max-width: 32em; margin: 22px 0 36px; }
.close-mark { margin-top: 56px; }
.foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 0 28px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 14px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot li:last-child { color: var(--muted); margin-left: auto; }

/* legal pages */
.legal { padding: calc(var(--nav) + 96px) 0 120px; }
.legal h1 { font-size: clamp(40px, 5vw, 72px); }
.legal h2 { font-size: clamp(26px, 2.4vw, 36px); margin-top: 56px; }
.legal p { max-width: 40em; margin-top: 18px; font-size: 18px; }

/* ---------- tablet ---------- */
@media (max-width: 1023px) {
  .hero { height: auto; min-height: 100svh; }
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(360px, 1fr); gap: 32px; align-items: start; }
  .hero-copy, .stage { grid-column: 1; }
  .stack { width: min(62vw, 520px); top: 50%; }
  .method-grid { grid-template-columns: 1fr; }
  .method-text, .frames { grid-column: 1; }
}
/* ---------- phone ---------- */
@media (max-width: 760px) {
  :root { --nav: 60px; }
  .hd-book { display: none; }
  .menu-btn { display: inline-flex; }
  .logo { width: 72px; }
  .section { padding: 96px 0 48px; }
  .hero { padding: calc(var(--nav) + 36px) 0 24px; }
  .hero-grid { grid-template-rows: auto minmax(260px, 1fr); gap: 24px; }
  h1 { font-size: clamp(34px, 9.6vw, 44px); margin-bottom: 18px; }
  .lead { font-size: 16px; margin-bottom: 22px; }
  .hero .btn { width: 100%; }
  .stack { width: 64vw; }
  .stage.open .stack, html:not(.js) .stack, .stage.open:hover .stack { --gap3d: 40px; }
  .statement { font-size: clamp(34px, 10vw, 44px); }
  .svc-grid { grid-template-columns: 1fr; }
  .svc-list, .svc-fig { grid-column: 1; }
  .svc-fig { padding: 20px; }
  .toc-b { padding: 18px 0; }
  .closing { padding-top: 96px; }
  .close .btn-row { flex-direction: column; align-items: stretch; }
  .close .link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
  .foot li:last-child { margin-left: 0; }
}
/* ---------- reduced motion: everything rests, nothing hidden ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .stack { --gap3d: 80px !important; }
  .js .statement .w { color: var(--paper); }
  .js .statement strong.w { color: var(--cobalt-on-ink); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) { .stack { --gap3d: 40px !important; } }
/* below desktop the stack sits under the words: its box is as tall as the turned planes need */
@media (max-width: 1023px) { .hero-grid { grid-template-rows: auto auto; } .stage { min-height: min(80vw, 660px); } .stack { top: 52%; } }
@media (max-width: 760px) { .stage { min-height: 88vw; } }
