/* Darqalne Studios — ink, paper and a little gold; an editorial serif that listens. */
:root {
  --ink: #0b0a10;
  --ink-2: #14121b;
  --paper: #f1ebe0;
  --muted: #8a8296;
  --gold: #d2ad66;
  --line: rgba(239, 233, 223, .1);
  --pad: clamp(20px, 5vw, 72px);
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 clamp(16px, .95rem + .2vw, 18px)/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.dim { color: var(--muted); }
.light { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(600px circle at var(--lx, 70%) var(--ly, 20%), rgba(201,163,95,.09), transparent 60%); }
main, .foot { position: relative; z-index: 1; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; gap: 16px; padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px; transition: background .4s, transform .5s var(--ease); }
.nav.solid { background: rgba(11,10,16,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.hide { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1 var(--sans); letter-spacing: .02em; }
.brand svg { width: 30px; height: 30px; }
.brand i { font-family: var(--serif); font-size: 18px; color: var(--muted); }
#menu { display: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang { font: 500 12px/1 var(--mono); padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; min-height: 40px; min-width: 44px; }
.pill { display: none; font: 500 13px/1 var(--sans); text-decoration: none; padding: 12px 16px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.burger { width: 44px; height: 40px; display: grid; place-content: center; gap: 6px; }
.burger i { display: block; width: 22px; height: 1.5px; background: var(--paper); transition: transform .35s var(--ease); }
.nav.open .burger i:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.open .burger i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.nav.open #menu { display: flex; position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; padding: 90px var(--pad); background: rgba(11,10,16,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav.open #menu a { font: 400 clamp(40px, 12vw, 64px)/1.15 var(--serif); text-decoration: none; opacity: 0; transform: translateY(16px); animation: in .55s var(--ease) forwards; }
.nav.open #menu a:nth-child(2) { animation-delay: .05s } .nav.open #menu a:nth-child(3) { animation-delay: .1s } .nav.open #menu a:nth-child(4) { animation-delay: .15s } .nav.open #menu a:nth-child(5) { animation-delay: .2s }
@keyframes in { to { opacity: 1; transform: none; } }
@media (min-width: 520px) { .pill { display: inline-block; } }
@media (min-width: 960px) {
  #menu { display: flex; gap: 28px; margin-left: auto; }
  #menu a { font: 400 14px/1 var(--sans); text-decoration: none; color: var(--muted); transition: color .3s; }
  #menu a:hover, #menu a.on { color: var(--paper); }
  .nav-end { margin-left: 24px; }
  .burger { display: none; }
}

/* hero */
.hero { position: relative; background: radial-gradient(ellipse 90% 80% at 82% 48%, #2b1a3d 0, #1a1126 34%, transparent 70%); min-height: 100svh; display: flex; align-items: flex-end; padding: 120px var(--pad) clamp(60px, 10vh, 110px); overflow: hidden; }
.arcs { position: absolute; z-index: 0; right: -38vw; top: -2vh; width: min(92vw, 900px); opacity: .28; pointer-events: none; }
.arcs svg { overflow: visible; }
.arcs .rings circle { fill: none; stroke: rgba(241,235,224,.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.arcs path { stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.arcs .stem, .arcs .a1, .arcs .a2 { stroke: rgba(239,233,223,.22); }
.arcs .a3 { stroke: var(--gold); }
.arcs .a { transform-origin: 120px 200px; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s var(--ease) forwards; }
.arcs .a2 { animation-delay: .25s } .arcs .a3 { animation-delay: .5s }
.arcs .stem { stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.arcs.hear .a { animation: draw 0s forwards, hear .9s var(--ease); }
.arcs.hear .a2 { animation-delay: 0s, .08s } .arcs.hear .a3 { animation-delay: 0s, .16s }
@keyframes hear { 40% { transform: scale(1.05); stroke: var(--gold); } }
.arcs::after { content: ""; position: absolute; left: 30%; top: 50%; width: 40%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(201,163,95,.25), transparent 65%); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.25); opacity: .6; } }
@media (min-width: 900px) { .arcs { right: -4vw; top: 50%; translate: 0 -50%; width: min(56vw, 760px); opacity: .9; } }
.hero-in { position: relative; z-index: 1; width: min(1200px, 100%); }
h1 { font: 400 clamp(52px, 13.5vw, 168px)/.92 var(--serif); letter-spacing: -.02em; margin: 0; max-width: 11ch; text-wrap: balance; }
h1 em { color: var(--gold); }
.hero-lede { max-width: 46ch; margin: 30px 0 0; font-size: clamp(17px, 1.05rem + .3vw, 21px); color: #cdc6d3; }
.rise { opacity: 0; transform: translateY(26px); animation: in 1.1s var(--d, 0s) var(--ease) forwards; }
.listen { display: flex; align-items: center; gap: 10px; margin-top: 34px; max-width: 520px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); font: 400 16px/1 var(--mono); cursor: text; transition: border-color .3s; }
.listen:focus-within { border-color: rgba(201,163,95,.5); }
.listen-caret { color: var(--gold); }
.listen input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--paper); font: inherit; caret-color: var(--gold); }
.listen input::placeholder { color: var(--muted); }
.listen-reply { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--gold); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.listen-reply.on { opacity: 1; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 500; transition: transform .4s var(--ease), background .3s; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover { background: #fff; }
.btn:hover i { transform: translate(3px, -1px); }
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-in { display: flex; gap: 34px; width: max-content; animation: slide 36s linear infinite; font: 400 clamp(26px, 5vw, 44px)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; font-size: .4em; color: var(--gold); align-self: center; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
.sec { position: relative; padding: clamp(100px, 15vw, 190px) 0; }
.wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 var(--pad); }
h2 { font: 400 clamp(40px, 8.6vw, 104px)/.98 var(--serif); letter-spacing: -.02em; margin: 0; max-width: 15ch; text-wrap: balance; }
h3 { font: 500 clamp(19px, 1.1rem + .4vw, 24px)/1.25 var(--sans); letter-spacing: -.01em; margin: 0 0 10px; }
.rv { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--dl, 0s); }
.rv.in { opacity: 1; transform: none; }

/* the case: a scene opening, phones rising through it */
.case { position: relative; margin: 60px 0 0; height: clamp(440px, 120vw, 900px); overflow: hidden; }
@media (min-width: 900px) { .case { height: 92svh; margin-inline: var(--pad); border-radius: 26px; } }
.case-bg { position: absolute; inset: -10% 0; }
.case-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(1.1); }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,10,16,.1), rgba(11,10,16,.2) 50%, rgba(11,10,16,.85)); }
.case-phones { position: absolute; inset: 0; z-index: 1; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 3vw, 36px); }
.ph { width: clamp(110px, 24vw, 250px); aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: clamp(16px, 3vw, 30px); border: 5px solid #1b1824; box-shadow: 0 40px 90px -30px rgba(0,0,0,.95); }
.ph2 { translate: 0 -8%; }
.case-title { position: absolute; z-index: 2; left: var(--pad); bottom: clamp(18px, 4vw, 44px); font: 400 clamp(38px, 9vw, 120px)/.9 var(--serif); letter-spacing: -.02em; display: grid; }
@media (min-width: 900px) { .case-title { left: 44px; } }
.case-body { display: grid; gap: 40px; margin-top: 60px; }
@media (min-width: 900px) { .case-body { grid-template-columns: 1fr 2fr; gap: 80px; } }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 0; align-content: start; }
.meta dt { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.meta dd { margin: 8px 0 0; }
.big { font: 400 clamp(22px, 1.2rem + 1vw, 32px)/1.35 var(--serif); margin: 0; color: #ddd6e2; }
.nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 44px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
@media (min-width: 700px) { .nums { grid-template-columns: repeat(4, 1fr); } }
.nums div { background: var(--ink); padding: 22px 18px; }
.nums dt { font: 400 clamp(40px, 7vw, 64px)/1 var(--serif); color: var(--paper); }
.nums dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 36px; }
.moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 90px; }
@media (min-width: 800px) { .moods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.moods figure { margin: 0; min-width: 0; }
.moods img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 18px; border: 1px solid var(--line); transition: transform .7s var(--ease); }
.moods figure:hover img { transform: translateY(-6px); }
.moods figcaption { margin-top: 12px; font: 400 22px/1 var(--serif); }
.next { display: flex; align-items: center; gap: 22px; margin-top: 60px; padding: 30px 28px; border: 1px dashed var(--line); border-radius: 20px; }
.next .mono { margin: 0; }
.next p { margin: 0; font: 400 clamp(22px, 3.4vw, 34px)/1.2 var(--serif); }
.dot { margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(201,163,95,0); opacity: .5; } 0% { box-shadow: 0 0 0 0 rgba(201,163,95,.5); } }

/* capabilities: a row that glides by on wide screens */
.caps-head { margin-bottom: 56px; }
.caps-track { display: grid; gap: 14px; padding: 0 var(--pad); }
@media (min-width: 700px) { .caps-track { grid-template-columns: 1fr 1fr; } }
.cap { position: relative; padding: 28px 26px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); min-height: 300px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .4s; }
.cap:hover { border-color: rgba(201,163,95,.35); }
.cap .mono { color: var(--gold); margin-bottom: auto; padding-bottom: 50px; }
.cap p { color: #bdb6c4; margin: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 0; }
.tags li { font: 400 12px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.chat { display: grid; gap: 10px; margin: 6px 0 14px; }
.chat p { padding: 12px 14px; border-radius: 14px; font-size: 15px; }
.chat .me { justify-self: end; background: rgba(201,163,95,.14); color: var(--paper); font-family: var(--mono); font-size: 13px; }
.chat .her { background: rgba(255,255,255,.04); font-family: var(--serif); font-size: 19px; line-height: 1.35; color: var(--paper); }
.cap .dim { margin: 0; font-size: 11px; }
.url { margin-top: 18px; font: 400 13px/1 var(--mono); color: var(--gold); text-decoration: none; }
.lvl { display: flex; gap: 4px; margin-top: 18px; }
.lvl span { font: 500 12px/1 var(--mono); padding: 9px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.lvl .on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.mark { margin-top: 18px; }
@media (min-width: 1000px) {
  .caps.pinned .caps-pin { height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .caps.pinned { padding: 0; }
  .caps.pinned .caps-track { display: flex; width: max-content; padding-right: var(--pad); will-change: transform; }
  .caps.pinned .cap { width: min(420px, 34vw); min-height: 440px; }
}

/* approach: words light up as you read */
.manifesto { font: 400 clamp(32px, 6.4vw, 78px)/1.08 var(--serif); letter-spacing: -.015em; margin: 0; max-width: 20ch; }
.manifesto .w { color: rgba(239,233,223,.16); transition: color .5s; }
.manifesto .w.lit { color: var(--paper); }
.manifesto .w.lit.g { color: var(--gold); font-style: italic; }
.principles { display: grid; gap: 14px; margin-top: 80px; }
@media (min-width: 820px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.principles article { padding-top: 22px; border-top: 1px solid var(--line); }
.principles b { display: block; font: 400 44px/1 var(--serif); color: var(--gold); margin-bottom: 18px; }
.principles p { color: #bdb6c4; margin: 0; }

/* process */
.steps { list-style: none; margin: 70px 0 0; padding: 0; display: grid; gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.steps li { position: relative; display: grid; gap: 6px 26px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.4s var(--ease) .2s; }
.steps li.in::before { transform: scaleX(1); }
.steps .n { font: 400 14px/1 var(--mono); color: var(--gold); }
.steps h3 { font: 400 clamp(30px, 4vw, 46px)/1 var(--serif); margin: 0; }
.steps p { margin: 0; color: #bdb6c4; max-width: 52ch; }
.steps .out { font: 400 12px/1 var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
@media (min-width: 900px) { .steps li { grid-template-columns: 80px 1fr 1.4fr 160px; align-items: baseline; padding: 40px 0; } .steps .out { justify-self: end; } }

/* contact */
.huge { font-size: clamp(48px, 11vw, 150px); max-width: 12ch; }
.mail { display: inline-flex; align-items: center; gap: 14px; margin-top: 44px; font: 400 clamp(26px, 5vw, 56px)/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; word-break: break-all; }
.mail:hover { color: var(--gold); border-color: var(--gold); }
.mail i { font-style: normal; font-size: .6em; }
.contact .dim { margin: 16px 0 0; }
.brief { margin-top: 60px; display: grid; gap: 30px; max-width: 760px; }
.brief fieldset { border: 0; padding: 0; margin: 0; }
.brief legend { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.chips button:hover { border-color: rgba(201,163,95,.5); }
.chips button.on { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.brief .btn { justify-self: start; }

/* footer */
.foot { padding: 90px 0 max(26px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-grid div { display: grid; gap: 10px; align-content: start; }
.foot-grid .mono { margin: 0 0 6px; }
.foot-grid a { text-decoration: none; color: #cdc6d3; }
.foot-grid a:hover { color: var(--gold); }
.foot-motto { font: 400 clamp(34px, 5vw, 56px)/1 var(--serif); margin: 0; }
.foot-word { font: 400 clamp(64px, 21vw, 360px)/.8 var(--serif); letter-spacing: -.04em; text-align: center; margin: 70px 0 20px; color: transparent; background: linear-gradient(180deg, rgba(239,233,223,.16), rgba(239,233,223,0)); -webkit-background-clip: text; background-clip: text; white-space: nowrap; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.foot-row a { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .rv, .rise { opacity: 1; transform: none; }
  .manifesto .w { color: var(--paper); }
}

/* web work: each site in a browser frame, its phone view beside it */
.webworks { margin-top: clamp(90px, 12vw, 160px); }
.ww-grid { display: grid; gap: clamp(56px, 8vw, 90px) clamp(28px, 4vw, 56px); margin-top: 48px; }
@media (min-width: 900px) { .ww-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ww { min-width: 0; }
.ww-shot { position: relative; display: block; padding: 0 9% 9% 0; text-decoration: none; color: inherit; }
.ww-browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); transition: transform .7s var(--ease), border-color .4s; }
.ww-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ww-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(239,233,223,.18); }
.ww-bar b { margin-left: 10px; font: 400 11px/1 var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ww-browser img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.ww-phone { position: absolute; right: 0; bottom: 0; width: 27%; margin: 0; padding: 5px; border-radius: 22px; background: #07060b; border: 1px solid rgba(239,233,223,.16); box-shadow: 0 24px 60px -20px rgba(0,0,0,.9); transition: transform .7s var(--ease); }
.ww-phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 17px; }
a.ww-shot:hover .ww-browser { transform: translateY(-6px); border-color: rgba(201,163,95,.35); }
a.ww-shot:hover .ww-phone { transform: translateY(-14px); }
.ww-info { margin-top: 26px; max-width: 46ch; }
.ww-info .mono { color: var(--gold); margin: 0 0 10px; }
.ww-info h3 { font: 400 clamp(28px, 3.2vw, 40px)/1.05 var(--serif); margin: 0 0 12px; letter-spacing: -.01em; }
.ww-info > p:not(.mono) { color: #bdb6c4; margin: 0; }
.ww-info .url { display: inline-block; margin-top: 18px; }
.url.soon { color: var(--muted); }

/* small screens: the capability cards as tall as their words, no empty floor */
@media (max-width: 699px) {
  .cap { min-height: 0; }
  .cap .mono { margin-bottom: 18px; padding-bottom: 0; }
  .caps-head { margin-bottom: 36px; }
}
