/* atelance studio page · design system and components */

/* brand tokens shared by every component so colour, type and rhythm stay consistent */
:root {
  --ink-0: #060507;
  --ink: #0b0a0c;
  --ink-1: #0f0d10;
  --ink-2: #151217;
  --ink-3: #1c181e;
  --bone: #ede6da;
  --bone-2: #d2c9ba;
  --mut: #a0968a;
  --mut-2: #928a7e;
  --gold: #c2a878;
  --gold-hi: #ead9b4;
  --gold-mid: #d4bc8c;
  --gold-lo: #8d7550;
  --gold-leaf: linear-gradient(100deg, #9c8156 0%, #d9c190 26%, #f1e3c2 42%, #c9ad7b 58%, #a88b5d 78%, #e3cfa4 100%);
  --hair: rgba(237, 230, 218, .11);
  --hair-2: rgba(237, 230, 218, .2);
  --hair-gold: rgba(194, 168, 120, .42);
  --f-serif: 'Cormorant Garamond', 'Cormorant', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --f-sans: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', system-ui, sans-serif;
  --f-logo: 'Italiana', 'Cormorant Garamond', Georgia, serif;
  --pad-x: clamp(20px, 5.4vw, 104px);
  --max: 1480px;
  --nav-h: 84px;
  --section-y: clamp(104px, 14vw, 208px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

/* arabic keeps an elegant naskh display face with a humanist sans for reading */
:root[lang='ar'] {
  --f-serif: 'Amiri', 'Noto Naskh Arabic', 'Times New Roman', serif;
  --f-sans: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

/* persian readers expect vazirmatn for both display and text as in the previous release */
:root[lang='fa'] {
  --f-serif: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --f-sans: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

/* predictable box model everywhere */
*, *::before, *::after { box-sizing: border-box; }

/* the hidden attribute must win over component display rules */
[hidden] { display: none !important; }

/* resets browser spacing so the editorial rhythm is fully controlled by tokens */
html, body, h1, h2, h3, h4, p, ol, ul, figure, blockquote, fieldset, legend { margin: 0; padding: 0; }

/* smooth in-page travel that still respects reduced motion and the fixed header */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

/* base reading experience on the warm ink canvas */
body {
  min-height: 100vh;
  background: transparent;
  color: var(--bone);
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: clamp(15.5px, .42vw + 13.6px, 17px);
  line-height: 1.72;
  font-kerning: normal;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* arabic script needs more leading and no latin tracking */
:root[lang='ar'] body, :root[lang='fa'] body { line-height: 1.95; letter-spacing: 0; }

/* lists are styled per component */
ol, ul { list-style: none; }

/* media never overflows its column */
img, svg, video { display: block; max-width: 100%; }

/* images keep their intrinsic ratio when only width is constrained */
img { height: auto; }

/* links inherit the surrounding typography */
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* form controls inherit brand typography instead of system defaults */
button, input, textarea, select { font: inherit; color: inherit; }

/* buttons start neutral so each variant defines its own look */
button { background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* champagne selection colour keeps the palette intact while reading */
::selection { background: rgba(194, 168, 120, .32); color: var(--bone); }

/* one consistent, clearly visible keyboard focus ring */
:focus-visible { outline: 1px solid var(--gold-mid); outline-offset: 4px; }

/* the main landmark receives focus from the skip link without drawing a ring */
main:focus { outline: none; }

/* visually hidden text for assistive technology */
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* skip link appears only for keyboard users */
.skip {
  position: fixed; inset-inline-start: 16px; top: 12px; z-index: 200;
  padding: 12px 18px; background: var(--bone); color: var(--ink);
  font-size: 13px; letter-spacing: .08em; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}

/* reveals the skip link when focused */
.skip:focus { transform: none; }

/* content column shared by all sections */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad-x)); margin-inline: auto; padding-inline: var(--pad-x); }

/* fine film grain gives the flat screen a tactile, printed quality */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the atelier at night: every chapter rests on dark liquid silk (liquid.js, backdrop.js) that takes the light of
   the chapter being read and blooms into a jewel tone under the pointer. the large viewport height keeps the silk
   from resizing while mobile toolbars come and go */
.backdrop { position: fixed; left: 0; right: 0; top: 0; height: 100vh; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; background: var(--ink); }

/* the silk surfaces slowly out of the ink once its first frame exists */
.backdrop canvas { animation: backdrop-in 1.6s var(--ease-soft) both; }

@keyframes backdrop-in { from { opacity: 0; } }

/* quiet type casts a faint shadow on the cloth, so it stays legible even where a lit fold passes beneath it */
:is(.chapter, .lead, .meta-line, .work__note, .project__kind, .project__line, .service p, .step p, .field > label, .field legend, .field__count, .contact__mail-label, .footer__tag, .footer__col, .footer__base, .legal) {
  text-shadow: 0 0 2px rgba(7, 6, 8, .55), 0 0 14px rgba(7, 6, 8, .85);
}

/* hairline scrollbar in the house colours */
html { scrollbar-width: thin; scrollbar-color: rgba(194, 168, 120, .42) var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #8d7550, #c2a878 50%, #8d7550); border: 3px solid var(--ink); border-radius: 10px; }

/* reading progress hairline at the very top of the viewport */
.progress { position: fixed; inset-inline: 0; top: 0; height: 1px; z-index: 120; pointer-events: none; }

/* the gold thread that grows with scroll position */
.progress span {
  display: block; height: 100%; background: var(--gold-leaf); transform-origin: left center;
  transform: scaleX(var(--p, 0)); opacity: .9;
}

/* progress grows from the right in right-to-left languages */
[dir='rtl'] .progress span { transform-origin: right center; }

/* shared small-caps label used for navigation, meta lines and buttons */
.label, .nav__links a, .eyebrow, .chapter, .meta-line, .btn, .link-arrow, .project__kind, .project__cta, .field > label, .field legend, .footer__col h3, .lang__btn, .menu__foot a {
  font-family: var(--f-sans);
  font-weight: 450;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .24em;
  text-transform: uppercase;
}

/* uppercase tracking is meaningless for arabic script, so labels become quiet small text */
:root:is([lang='ar'], [lang='fa']) :is(.label, .nav__links a, .eyebrow, .chapter, .meta-line, .btn, .link-arrow, .project__kind, .project__cta, .field > label, .field legend, .footer__col h3, .lang__btn, .menu__foot a) {
  letter-spacing: 0; font-size: 13.5px; font-weight: 500; text-transform: none;
}

/* fixed header that floats over the hero and settles into ink once scrolling starts */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding-inline: var(--pad-x);
  transition: transform .6s var(--ease), background-color .5s var(--ease-soft), border-color .5s var(--ease-soft);
  border-bottom: 1px solid transparent;
}

/* gentle top shade keeps the header legible over the bright silk */
.nav::before {
  content: ''; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 5, 7, .72), rgba(6, 5, 7, 0));
  transition: opacity .5s var(--ease-soft);
}

/* solid glass state after the hero has been left */
.nav[data-scrolled] {
  background: rgba(11, 10, 12, .8);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}

/* the shade is redundant once the glass background is present */
.nav[data-scrolled]::before { opacity: 0; }

/* header slides away while reading downwards and returns on the way up */
.nav[data-hidden] { transform: translateY(-101%); }

/* primary links sit on the start side of the header */
.nav__links { display: flex; gap: clamp(22px, 2.4vw, 40px); justify-self: start; }

/* primary link with a centred gold underline drawn on hover and for the active chapter */
.nav__links a { position: relative; color: var(--bone-2); padding-block: 12px; transition: color .35s var(--ease-soft); }

/* underline element for the nav links */
.nav__links a::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 6px; height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform .6s var(--ease);
}

/* hover and current section states */
.nav__links a:hover, .nav__links a[aria-current='true'] { color: var(--bone); }

/* draws the underline for hovered or current links */
.nav__links a:hover::after, .nav__links a[aria-current='true']::after { transform: scaleX(1); }

/* the wordmark is the optical centre of the header */
.brand {
  justify-self: center; font-family: var(--f-logo); font-weight: 400; font-size: clamp(19px, 1.55vw, 23px);
  letter-spacing: .46em; margin-inline-end: -.46em; color: var(--bone); white-space: nowrap; line-height: 1;
  padding-block: 12px; direction: ltr; transition: color .4s var(--ease-soft);
}

/* the wordmark warms to gold on hover */
.brand:hover { color: var(--gold-hi); }

/* end cluster for language, call to action and menu button */
.nav__end { justify-self: end; display: flex; align-items: center; gap: 14px; }

/* language disclosure anchor */
.lang { position: relative; }

/* compact language trigger showing the current code */
.lang__btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding-inline: 14px;
  border: 1px solid var(--hair-2); color: var(--bone); letter-spacing: .18em;
  transition: border-color .35s var(--ease-soft), background-color .35s var(--ease-soft);
}

/* language trigger hover and open states */
.lang__btn:hover, .lang__btn[aria-expanded='true'] { border-color: var(--hair-gold); background: rgba(194, 168, 120, .06); }

/* the chevron turns when the list is open */
.lang__btn svg { width: 9px; height: 9px; transition: transform .45s var(--ease); }

/* rotated chevron for the open state */
.lang__btn[aria-expanded='true'] svg { transform: rotate(180deg); }

/* language list panel with native names */
.lang__list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 216px; padding: 10px;
  background: rgba(21, 18, 23, .97); border: 1px solid var(--hair-2);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  transform-origin: top; animation: pop .35s var(--ease);
}

/* each language option is a real link so it also works without javascript */
.lang__list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 11px 12px;
  font-size: 15px; color: var(--bone-2); transition: background-color .25s, color .25s;
}

/* the language code is set in small caps next to the native name */
.lang__list a small { font-size: 10.5px; letter-spacing: .2em; color: var(--mut); font-family: var(--f-sans); }

/* hover and current language highlight */
.lang__list a:hover, .lang__list a:focus-visible { background: rgba(237, 230, 218, .06); color: var(--bone); }

/* the active language carries a gold mark */
.lang__list a[aria-current='true'] { color: var(--gold-hi); }

/* the active code turns gold too */
.lang__list a[aria-current='true'] small { color: var(--gold); }

/* entrance for floating panels */
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* shared button geometry */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 48px; padding: 0 26px; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease-soft), border-color .45s var(--ease-soft), background-position .9s var(--ease), transform .45s var(--ease);
}

/* arrow glyph inside buttons and links */
.btn svg, .link-arrow svg, .project__cta svg { width: 18px; height: 10px; flex: none; transition: transform .6s var(--ease); }

/* arrows point the reading direction in right-to-left languages */
[dir='rtl'] :is(.btn, .link-arrow, .project__cta) svg { transform: scaleX(-1); }

/* arrows travel forward on hover */
:is(.btn, .link-arrow):hover svg, .project__link:hover .project__cta svg { transform: translateX(5px); }

/* forward travel mirrored for right-to-left languages */
[dir='rtl'] :is(.btn, .link-arrow):hover svg, [dir='rtl'] .project__link:hover .project__cta svg { transform: scaleX(-1) translateX(5px); }

/* hairline outline button used in the header */
.btn--line { border: 1px solid var(--hair-gold); color: var(--gold-hi); }

/* the outline button fills from the centre like ink soaking silk */
.btn--line::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  transform: scaleX(0); transition: transform .6s var(--ease);
}

/* outline button hover */
.btn--line:hover { color: var(--ink); border-color: var(--gold); }

/* completes the centre fill on hover */
.btn--line:hover::before { transform: scaleX(1); }

/* primary gold-leaf button for the main calls to action */
.btn--gold { background: var(--gold-leaf); background-size: 220% 100%; background-position: 0 0; color: #16110a; min-height: 56px; padding: 0 32px; font-weight: 500; }

/* a slow light sweep travels across the gold on hover */
.btn--gold::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 250, 238, .55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 1.1s var(--ease);
}

/* gold button hover shifts the leaf and runs the sweep */
.btn--gold:hover { background-position: 100% 0; }

/* completes the light sweep */
.btn--gold:hover::after { transform: translateX(120%); }

/* full-width variant for the form */
.btn--block { width: 100%; }

/* disabled and busy buttons look calm rather than broken */
.btn[disabled], .btn[aria-busy='true'] { cursor: progress; filter: saturate(.7) brightness(.92); }

/* underlined text link with a travelling arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; color: var(--bone);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 10px) / 100% 1px no-repeat;
  transition: color .35s var(--ease-soft);
}

/* the link warms to gold on hover */
.link-arrow:hover { color: var(--gold-hi); }

/* two-line menu button for small screens */
.burger { display: none; position: relative; width: 48px; height: 44px; border: 1px solid var(--hair-2); }

/* the two strokes of the menu icon */
.burger span:not(.sr) {
  position: absolute; inset-inline: 14px; height: 1px; background: var(--bone);
  transition: transform .5s var(--ease), top .5s var(--ease);
}

/* upper stroke position */
.burger span:nth-child(1) { top: 17px; }

/* lower stroke position */
.burger span:nth-child(2) { top: 25px; }

/* the strokes cross into a close mark while the menu is open */
.burger[aria-expanded='true'] span:nth-child(1) { top: 21px; transform: rotate(45deg); }

/* second stroke of the close mark */
.burger[aria-expanded='true'] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* full-screen menu for phones and tablets */
.menu {
  position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 5vh) var(--pad-x) max(34px, env(safe-area-inset-bottom));
  background: radial-gradient(120% 70% at 85% 0%, rgba(194, 168, 120, .09), transparent 60%), var(--ink);
  overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .55s var(--ease-soft), visibility 0s linear .55s;
}

/* open menu state */
.menu[data-open] { opacity: 1; visibility: visible; transition: opacity .55s var(--ease-soft), visibility 0s; }

/* numbered chapter links in the menu */
.menu__list a {
  display: flex; align-items: baseline; gap: 22px; padding: clamp(12px, 2.2vh, 20px) 0; border-bottom: 1px solid var(--hair);
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(34px, 9vw, 58px); line-height: 1.05; color: var(--bone);
  opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease), color .3s;
}

/* menu links cascade in one after another */
.menu[data-open] .menu__list a { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 60ms + 120ms); }

/* menu link hover */
.menu__list a:hover { color: var(--gold-hi); }

/* chapter numbers beside menu links */
.menu__no { font-family: var(--f-serif); font-style: italic; font-size: 17px; color: var(--gold); min-width: 2ch; }

/* email and call to action at the foot of the menu */
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 34px; }

/* the email in the menu keeps its natural case */
.menu__foot .menu__mail { text-transform: none; letter-spacing: .06em; font-size: 15px; color: var(--bone-2); direction: ltr; }

/* hero stage */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto;
  overflow: hidden; isolation: isolate;
}

/* the veil over the liquid silk, moved by the parallax script */
.hero__media { position: absolute; inset: 0 0 -12%; z-index: -1; overflow: hidden; will-change: transform; }

/* ambient loops rest while the hero is scrolled out of view */
.hero.is-off .hero__l2 { animation-play-state: paused; }

/* the scroll cue thread also rests off screen */
.hero.is-off .scroll-cue__line::after { animation-play-state: paused; }

/* veil that anchors the type in the centre and lets the silk show at the edges */
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(65% 54% at 50% 48%, rgba(8, 7, 9, .36), rgba(8, 7, 9, .06) 65%, rgba(8, 7, 9, 0) 100%),
    linear-gradient(180deg, rgba(11, 10, 12, .28) 0%, rgba(11, 10, 12, 0) 24%, rgba(11, 10, 12, 0) 76%, rgba(11, 10, 12, .20) 100%);
}

/* centred editorial composition over the bookmatched silk */
.hero__inner {
  align-self: center; justify-self: center; width: 100%; max-width: 1180px; text-align: center;
  padding: calc(var(--nav-h) + 6vh) var(--pad-x) 4vh;
}

/* eyebrow with hairlines on both sides */
.eyebrow { display: inline-flex; align-items: center; gap: 18px; color: var(--gold-hi); }

/* the hairlines framing the eyebrow */
.eyebrow::before, .eyebrow::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }

/* the trailing hairline mirrors the leading one */
.eyebrow::after { transform: scaleX(-1); }

/* monumental serif headline */
.hero__title {
  margin-top: clamp(26px, 3.6vh, 40px); font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(44px, 7.4vw, 124px); line-height: .98; letter-spacing: -.018em; color: var(--bone);
}

/* each clause of the headline balances on its own lines */
.hero__title span { display: block; text-wrap: balance; }

/* the second clause is set in gold-leaf italic, the house signature */
.hero__l2 {
  margin-top: .08em; font-style: italic; font-weight: 300; padding-bottom: .08em;
  background: var(--gold-leaf); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: leaf-light 14s ease-in-out infinite alternate;
}

/* light slowly moves across the gold-leaf italic */
@keyframes leaf-light { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* arabic and persian scripts get upright emphasis and calmer leading */
:root:is([lang='ar'], [lang='fa']) .hero__title { font-size: clamp(40px, 6.2vw, 104px); line-height: 1.28; letter-spacing: 0; }

/* upright emphasis for scripts without an italic tradition */
:root:is([lang='ar'], [lang='fa']) :is(.hero__l2, em) { font-style: normal; }

/* supporting line under the headline */
.hero__sub {
  max-width: 44ch; margin: clamp(26px, 3.6vh, 38px) auto 0; color: var(--bone-2);
  font-size: clamp(16px, .6vw + 12.6px, 20px); font-weight: 300; line-height: 1.7; text-wrap: pretty;
}

/* the two hero calls to action */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 34px; margin-top: clamp(30px, 4.4vh, 48px); }

/* footer strip of the hero with the scroll cue and craft line */
.hero__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 0 var(--pad-x) clamp(22px, 4vh, 38px); color: var(--mut);
}

/* scroll cue with a falling thread */
.scroll-cue { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; color: var(--bone-2); }

/* the thread of the scroll cue */
.scroll-cue__line { position: relative; width: 1px; height: 44px; background: var(--hair-2); overflow: hidden; }

/* a drop of gold runs down the thread */
.scroll-cue__line::after { content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold-hi); animation: thread 2.8s var(--ease-io) infinite; }

/* falling drop animation */
@keyframes thread { from { top: -40%; } to { top: 100%; } }

/* craft line at the end of the hero strip */
.hero__meta { color: var(--mut); }

/* first-screen type waits for its fonts, then settles in once without any font swap */
:root.fonts-wait [data-hero] { opacity: 0; }

/* hero entrance after fonts are ready, staggered through --hd */
[data-hero] { transition: opacity 1.1s var(--ease-soft) var(--hd, 0s), transform 1.5s var(--ease) var(--hd, 0s); }

/* stagger for the headline, supporting line, actions and foot strip */
.hero__inner > [data-hero]:nth-child(2) { --hd: .08s; }
.hero__inner > [data-hero]:nth-child(3) { --hd: .24s; }
.hero__inner > [data-hero]:nth-child(4) { --hd: .34s; }
.hero__foot { --hd: .62s; }

/* while an opening plays, the hero waits a little lower and the silk a little closer, ready to settle */
:root.motion .hero__title > span { transition: transform 1.7s var(--ease) calc(var(--hd, 0s) + var(--ld, 0s)); }
:root.motion .hero__l2 { --ld: .11s; }
:root.motion .hero__media { transition: scale 2.8s cubic-bezier(.16, 1, .3, 1); }
:root.motion .nav__links, :root.motion .nav__end { transition: opacity 1s var(--ease-soft) .55s; }
:root.atl-intro-on:not(.atl-reveal) .hero__title > span { transform: translateY(.46em); }
:root.atl-intro-on:not(.atl-reveal) .hero__inner > [data-hero]:not(.hero__title), :root.atl-intro-on:not(.atl-reveal) .hero__foot { opacity: 0; transform: translateY(18px); }
:root.atl-intro-on:not(.atl-reveal) .hero__media { scale: 1.13; }
:root.atl-intro-on:not(.atl-reveal) :is(.nav__links, .nav__end) { opacity: 0; }

/* The header waits for the curtain, or for a confirmed desktop hand-off. */
:root.atl-intro.atl-intro-on:not(.atl-reveal) .brand,
:root.atl-handoff.atl-intro-on .brand { opacity: 0; }

/* while translations load, content stays invisible for a moment instead of flashing turkish */
:root.i18n-pending body > :not(.grain):not(.intro) { visibility: hidden; }

/* ---------- opening · the first stitch ----------
   a point of gold light, a thread pulled from it, the name rising out of the seam, then the cloth parts */
.intro { position: fixed; inset: 0; z-index: 140; overflow: hidden; isolation: isolate; }

/* two leaves of dark cloth meeting on the seam */
.intro__leaf { position: absolute; inset-inline: 0; will-change: transform; }
.intro__leaf--top { top: 0; bottom: 50%; background: radial-gradient(64% 130% at 50% 100%, rgba(194, 168, 120, .085), transparent 64%), linear-gradient(180deg, #050406, #0a090b); }
.intro__leaf--bottom { top: 50%; bottom: 0; background: radial-gradient(64% 130% at 50% 0%, rgba(194, 168, 120, .06), transparent 64%), linear-gradient(0deg, #050406, #0a090b); }

/* each leaf carries half of the gold thread on its edge, so the seam splits cleanly when they part */
.intro__leaf::after {
  content: ''; position: absolute; inset-inline: 0; height: 1px; background: var(--atl-seam);
  transform: scaleX(0); transform-origin: 50% 50%;
}
.intro__leaf--top::after { bottom: -.5px; }
.intro__leaf--bottom::after { top: -.5px; }

/* the needle's point of light where the first stitch is made */
.intro__needle {
  position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #fbf1d8; opacity: 0; transform: scale(0);
  box-shadow: 0 0 0 1px rgba(251, 241, 216, .18), 0 0 16px 4px rgba(234, 217, 180, .55), 0 0 70px 16px rgba(194, 168, 120, .22);
}

/* the name sits on the seam and rises out of it */
.intro__mark { position: absolute; inset-inline: 0; bottom: 50%; display: flex; justify-content: center; padding-bottom: clamp(14px, 1.6vw, 24px); }

/* identical typography to the header wordmark so the hand-off is exact */
.intro__word {
  display: inline-flex; overflow: hidden; padding-top: .14em; transform-origin: 50% 50%;
  font-family: var(--f-logo); font-weight: 400; font-size: clamp(30px, 6.6vw, 104px); line-height: 1;
  letter-spacing: .46em; margin-inline-end: -.46em; color: var(--bone); direction: ltr; white-space: nowrap;
}
.intro__word span { display: inline-block; transform: translate(calc(var(--x) * .1em), 118%); }

/* the house line is stitched to the lower leaf: it descends from the seam and leaves with the cloth */
.intro__caption {
  position: absolute; inset-inline: 0; top: 0; overflow: hidden; padding-top: clamp(16px, 1.8vw, 26px); text-align: center;
  font-family: var(--f-sans); font-weight: 450; font-size: 11px; line-height: 1.6; letter-spacing: .38em; text-transform: uppercase; color: var(--gold-hi);
}
.intro__caption span { display: inline-block; margin-inline-end: -.38em; transform: translateY(-130%); opacity: 0; }
:root:is([lang='ar'], [lang='fa']) .intro__caption { letter-spacing: 0; font-size: 14px; text-transform: none; }
:root:is([lang='ar'], [lang='fa']) .intro__caption span { margin-inline-end: 0; }

/* first visit: 0 point of light · .2s thread · .56s name · .95s caption · 1.7s the cloth parts */
.atl-intro.atl-play .intro__needle { animation: intro-needle 1.2s var(--ease) both; }
.atl-intro.atl-play .intro__leaf::after { animation: intro-thread 1.05s cubic-bezier(.77, 0, .18, 1) .2s both; }
.atl-intro.atl-play .intro__word span { animation: intro-rise 1.15s var(--ease) calc(.56s + var(--o) * 80ms) both; }
.atl-intro.atl-play .intro__caption span { animation: intro-drop 1.05s var(--ease) .9s both; }
.atl-intro.atl-play .intro__leaf--top { animation: intro-part-up 1.02s var(--atl-ease) 1.7s both; }
.atl-intro.atl-play .intro__leaf--bottom { animation: intro-part-down 1.02s var(--atl-ease) 1.7s both; }

/* Touch screens use a CSS-only exit: the large name clears before the hero appears.
   This also works when the optional desktop hand-off is unavailable or fails. */
.atl-intro.atl-play:not(.atl-handoff) .intro__mark { animation: intro-mark-out .22s var(--ease-soft) 1.45s both; }
.atl-intro.atl-reveal:not(.atl-handoff) .intro__mark { opacity: 0; visibility: hidden; }

/* later visits in the session: only the thread and the parting */
.atl-short .intro__needle, .atl-short .intro__mark, .atl-short .intro__caption { display: none; }
.atl-short.atl-play .intro__leaf::after { animation: intro-thread .5s var(--ease) both; }
.atl-short.atl-play .intro__leaf--top { animation: intro-part-up .82s var(--atl-ease) .32s both; }
.atl-short.atl-play .intro__leaf--bottom { animation: intro-part-down .82s var(--atl-ease) .32s both; }

@keyframes intro-needle { 0% { opacity: 0; transform: scale(0); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.35); } }
@keyframes intro-thread { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes intro-rise { to { transform: translate(0, 0); } }
@keyframes intro-drop { to { transform: none; opacity: 1; } }
@keyframes intro-mark-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes intro-part-up { to { transform: translateY(-100%); } }
@keyframes intro-part-down { to { transform: translateY(100%); } }

/* The house ribbon: fine champagne edges, dark satin and a geometric rosette. */
.marquee {
  --selvage: linear-gradient(90deg, transparent, rgba(194, 168, 120, .28) 18%, rgba(225, 207, 172, .58) 50%, rgba(194, 168, 120, .28) 82%, transparent);
  position: relative; overflow: hidden; isolation: isolate; padding-block: 28px;
  background:
    var(--selvage) center top / 100% 1px no-repeat,
    var(--selvage) center bottom / 100% 1px no-repeat,
    radial-gradient(52% 150% at 50% 50%, rgba(194, 168, 120, .08), transparent 76%),
    linear-gradient(180deg, #0c0b0d 0%, #171416 50%, #0c0b0d 100%);
}

/* Words dissolve into the ribbon at both ends while its edges stay continuous. */
.marquee__viewport {
  position: relative; z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

/* the moving track holds two identical runs for a seamless loop */
.marquee__track { display: flex; width: max-content; animation: marquee 64s linear infinite; }

/* reverse travel for right-to-left languages */
[dir='rtl'] .marquee__track { animation-name: marquee-rtl; }

/* hovering pauses the band so it can be read */
.marquee:hover .marquee__track, .marquee[data-paused] .marquee__track { animation-play-state: paused; }

/* one run of marquee items; each phrase is separated by the custom Atelance fleuron */
.marquee__run { display: flex; align-items: center; gap: 0; padding-inline-end: 0; font-size: clamp(20px, 1.8vw, 28px); }

/* each value in the band keeps a generous couture rhythm around its house mark */
.marquee__run span {
  display: inline-flex; align-items: center; gap: clamp(22px, 2.2vw, 32px);
  margin-inline-end: clamp(22px, 2.2vw, 32px);
  font-family: var(--f-serif); font-style: italic; font-weight: 300; color: var(--bone-2); white-space: nowrap;
}

/* Four sculpted arches form a compact rosette. Its open centre and broad silhouette
   remain readable at ribbon scale, with short tapering threads to balance the words. */
.marquee__run span::after {
  content: ''; display: block; flex: none;
  width: clamp(62px, 4.9vw, 76px); height: auto; aspect-ratio: 13 / 8;
  background: center / contain no-repeat url("img/atelance-fleuron.svg?v=20260926-rosette");
  opacity: 1;
  transform: translateY(.5px);
}

/* arabic and persian values stay upright */
:root:is([lang='ar'], [lang='fa']) .marquee__run span { font-style: normal; }

/* A low, slow satin sheen catches the edge of the ribbon. */
.marquee::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(247, 236, 210, .055) 50%, transparent 70%);
  mix-blend-mode: screen; transform: translateX(-100%);
  animation: ribbon-sheen 18s var(--ease-io) infinite;
}

/* light crosses in the reading direction for right-to-left languages */
[dir='rtl'] .marquee::after { animation-direction: reverse; }

/* the sheen rests together with the band while it is off screen */
.marquee[data-paused]::after { animation-play-state: paused; }

/* the sheen sweeps across once and then waits out of sight so the effect stays rare and precious */
@keyframes ribbon-sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* loop keyframes */
@keyframes marquee { to { transform: translateX(-50%); } }

/* right-to-left loop keyframes */
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* vertical rhythm for all content sections */
.section { position: relative; padding-block: var(--section-y); }

/* chapter label with italic numeral and hairline */
.chapter { display: flex; align-items: center; gap: 16px; color: var(--bone-2); }

/* the chapter numeral */
.chapter__no { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 19px; letter-spacing: 0; text-transform: none; color: var(--gold); }

/* the chapter hairline */
.chapter__rule { width: 44px; height: 1px; flex: none; background: var(--hair-gold); }

/* section display headings */
.display {
  margin-top: clamp(22px, 2.6vw, 34px); font-family: var(--f-serif); font-weight: 300;
  font-size: clamp(36px, 4.8vw, 76px); line-height: 1.04; letter-spacing: -.012em; color: var(--bone); text-wrap: balance;
}

/* italic gold accents inside headings */
.display em, .statement em { font-style: italic; color: var(--gold-mid); }

/* scripts without italics keep a larger, upright display size */
:root:is([lang='ar'], [lang='fa']) .display { line-height: 1.35; letter-spacing: 0; font-size: clamp(32px, 4.2vw, 64px); }

/* two-column editorial grid used by several sections */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 120px); align-items: start; }

/* soft light pooling behind the atelier manifesto */

/* the side column holds the chapter label and the drawn thread */
.atelier__side { position: relative; align-self: stretch; }

/* a gold plumb line hangs from the chapter numeral and is drawn by the scroll, tying label and manifesto together */
.thread {
  position: absolute; top: 76px; bottom: 6px; inset-inline-start: 8px; width: 1px; pointer-events: none;
  background: linear-gradient(180deg, var(--gold-mid), rgba(194, 168, 120, .38) 58%, rgba(194, 168, 120, 0));
  transform: scaleY(var(--draw, 1)); transform-origin: 50% 0;
}

/* the lozenge used by the marquee and the timeline marks where the plumb line begins */
.atelier__side::after {
  content: ''; position: absolute; top: 69px; inset-inline-start: 5px; width: 7px; height: 7px;
  border: 1px solid var(--gold); background: var(--ink); transform: rotate(45deg); pointer-events: none;
}

/* the manifesto statement */
.statement {
  font-family: var(--f-serif); font-weight: 300; font-size: clamp(27px, 2.9vw, 46px); line-height: 1.24;
  color: var(--bone); text-wrap: pretty;
}

/* arabic and persian statements need calmer leading */
:root:is([lang='ar'], [lang='fa']) .statement { line-height: 1.6; font-size: clamp(24px, 2.4vw, 38px); }

/* reading paragraph beneath display text */
.lead { margin-top: clamp(26px, 3vw, 40px); max-width: 52ch; color: var(--bone-2); font-size: clamp(16px, .5vw + 13.6px, 19px); font-weight: 300; }

/* signature line closing the manifesto */
.meta-line { display: flex; align-items: center; gap: 16px; margin-top: clamp(34px, 4vw, 56px); padding-top: 26px; border-top: 1px solid var(--hair); color: var(--gold); }

/* section header for the work chapter */
.section-head { display: grid; margin-bottom: clamp(56px, 7vw, 110px); }

/* list of projects */
.projects { display: grid; gap: clamp(80px, 10vw, 150px); }

/* each project is one large editorial spread */
.project__link { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 72px); align-items: end; }

/* the second project mirrors the layout for rhythm */
.project:nth-child(even) .project__link { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

/* image of the mirrored project moves to the end column */
.project:nth-child(even) .project__media { order: 2; }

/* framed media window matching the 16:9 captures so the concept sites are never cropped */
.project__media { position: relative; overflow: hidden; background: var(--ink-2); aspect-ratio: 16 / 9; }

/* the preview image rests at full frame so logos and navigation at the edges stay visible */
.project__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: none; transform-origin: 50% 40%; transition: transform 1.8s var(--ease), filter 1.2s var(--ease-soft); filter: saturate(.92) brightness(.94); }

/* hover brings the preview forward with a restrained zoom that keeps edge details in frame */
.project__link:hover .project__media img { transform: scale(1.03); filter: none; }

/* an inset gold hairline frame is drawn on hover */
.project__media::after {
  content: ''; position: absolute; inset: 14px; z-index: 2; border: 1px solid rgba(234, 217, 180, .5); pointer-events: none;
  opacity: 0; transform: scale(1.02); transition: opacity .8s var(--ease-soft), transform 1s var(--ease);
}

/* shows the frame on hover and keyboard focus */
.project__link:hover .project__media::after, .project__link:focus-visible .project__media::after { opacity: 1; transform: none; }

/* vignette that deepens the preview edges */
.project__media::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 120px rgba(0, 0, 0, .45); }

/* textual side of each project */
.project__meta { display: grid; gap: 18px; padding-bottom: 6px; }

/* project name set like a wordmark */
.project__name { display: flex; align-items: baseline; gap: .34em; font-family: var(--f-logo); font-weight: 400; font-size: clamp(26px, 2.4vw, 38px); letter-spacing: .32em; line-height: 1.1; color: var(--bone); direction: ltr; justify-content: flex-start; }

/* keeps the latin wordmark aligned to the start edge in right-to-left layouts */
[dir='rtl'] .project__name { justify-content: flex-end; }

/* edition figure after the project name */
.project__name .edition { font-family: var(--f-serif); font-weight: 500; letter-spacing: .04em; font-size: .78em; color: var(--gold); }

/* project type and place */
.project__kind { color: var(--mut); }

/* one-line description of the project */
.project__line { color: var(--bone-2); font-size: clamp(15.5px, .4vw + 13.8px, 18px); font-weight: 300; max-width: 40ch; }

/* call to action under each project */
.project__cta { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; color: var(--gold-hi); padding-block: 12px; border-bottom: 1px solid var(--hair-gold); width: max-content; max-width: 100%; }

/* a quiet honesty note under the projects */
.work__note { margin-top: clamp(64px, 7vw, 104px); max-width: 64ch; color: var(--mut); font-size: 14px; line-height: 1.7; padding-inline-start: 18px; border-inline-start: 1px solid var(--hair-gold); }

/* floating explore badge that follows the pointer over project previews */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  display: grid; place-items: center; pointer-events: none; color: #16110a;
  background: var(--gold-leaf); background-size: 180% 100%;
  font-family: var(--f-sans); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(0); transition: transform .5s var(--ease), opacity .3s;
  opacity: 0; will-change: transform;
}

/* visible badge state */
.cursor[data-on] { opacity: 1; transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(1); }

/* arabic and persian badge text stays unspaced */
:root:is([lang='ar'], [lang='fa']) .cursor { letter-spacing: 0; font-size: 13px; text-transform: none; }

/* services chapter sits on a slightly lifted ink */
.services { background: linear-gradient(180deg, rgba(15, 13, 16, 0) 0%, rgba(15, 13, 16, .44) 22%, rgba(15, 13, 16, .44) 78%, rgba(15, 13, 16, 0) 100%); }

/* the introduction column stays in view while the list scrolls */
.services__intro { position: sticky; top: calc(var(--nav-h) + 48px); }

/* numbered list of services */
.services__list { border-top: 1px solid var(--hair); }

/* one service row */
.service {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px clamp(20px, 3vw, 48px);
  align-items: baseline; padding-block: clamp(26px, 2.8vw, 40px); border-bottom: 1px solid var(--hair);
}

/* a gold thread runs under the hovered row */
.service::after { content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 100%; height: 1px; background: var(--gold-leaf); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }

/* the thread grows from the right in right-to-left languages */
[dir='rtl'] .service::after { transform-origin: right; }

/* hover draws the thread */
.service:hover::after { transform: scaleX(1); }

/* numeral of the service */
.service__no { font-family: var(--f-serif); font-style: italic; font-size: 18px; color: var(--gold); }

/* service name */
.service h3 { font-family: var(--f-serif); font-weight: 400; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.12; color: var(--bone); transition: transform .8s var(--ease), color .4s; }

/* the name glides forward on hover */
.service:hover h3 { transform: translateX(8px); color: var(--gold-hi); }

/* forward glide mirrored for right-to-left languages */
[dir='rtl'] .service:hover h3 { transform: translateX(-8px); }

/* service description */
.service p { color: var(--mut); font-size: 15.5px; line-height: 1.7; }

/* process chapter */
.process { overflow: hidden; }

/* four stages on a shared rail */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 56px); margin-top: clamp(56px, 7vw, 104px); padding-top: 54px; }

/* the rail behind the stages is a tailor's tape: millimetre, half and full centimetre ticks hang from the line */
.steps::before, .steps::after {
  content: ''; position: absolute; inset-inline: 0; top: 0; height: 11px; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.steps::before {
  background:
    linear-gradient(var(--hair-2), var(--hair-2)) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(194, 168, 120, .34) 0 1px, transparent 1px 60px) 0 1px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(194, 168, 120, .22) 0 1px, transparent 1px 30px) 0 1px / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(237, 230, 218, .1) 0 1px, transparent 1px 6px) 0 1px / 100% 4px no-repeat;
}

/* the measured length lights up in gold as the reader moves through the method */
.steps::after {
  background:
    var(--gold-leaf) 0 0 / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, rgba(234, 217, 180, .9) 0 1px, transparent 1px 60px) 0 1px / 100% 10px no-repeat,
    repeating-linear-gradient(90deg, rgba(212, 188, 140, .7) 0 1px, transparent 1px 30px) 0 1px / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, rgba(212, 188, 140, .42) 0 1px, transparent 1px 6px) 0 1px / 100% 4px no-repeat;
  clip-path: inset(0 calc(100% - var(--fill, 0) * 100%) 0 0);
}

/* rail progress starts on the right in right-to-left languages */
[dir='rtl'] .steps::after { clip-path: inset(0 0 0 calc(100% - var(--fill, 0) * 100%)); }

/* one stage */
.step { position: relative; }

/* the jewel marking each stage on the rail */
.step::before { content: ''; position: absolute; top: -59px; inset-inline-start: 0; width: 9px; height: 9px; transform: rotate(45deg); background: var(--ink); border: 1px solid var(--gold); transition: background-color .6s var(--ease-soft); }

/* reached stages fill with gold */
.step[data-reached]::before { background: var(--gold); }

/* large outlined numeral of each stage */
.step__no { display: block; font-family: var(--f-serif); font-style: italic; font-size: clamp(44px, 4vw, 64px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }

/* stage title */
.step h3 { margin-top: 26px; font-family: var(--f-serif); font-weight: 400; font-size: clamp(24px, 1.9vw, 30px); line-height: 1.15; color: var(--bone); }

/* stage description */
.step p { margin-top: 14px; color: var(--mut); font-size: 15.5px; line-height: 1.7; }

/* contact chapter on a warm, softly lit ground */

/* the contact introduction stays visible beside the form on large screens */
.contact__intro { position: sticky; top: calc(var(--nav-h) + 48px); }

/* label above the direct email */
.contact__mail-label { display: block; margin-top: clamp(34px, 4vw, 52px); color: var(--mut); }

/* direct email link set large and personal */
.contact__mail {
  display: inline-block; margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 2.4vw, 38px); color: var(--gold-hi); direction: ltr; unicode-bidi: isolate;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; padding-bottom: 6px; transition: background-size .6s var(--ease), color .3s;
}

/* the email underline retracts on hover */
.contact__mail:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--bone); }

/* the enquiry form */
.form { position: relative; }

/* two-column field grid */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }

/* one field */
.field { position: relative; display: grid; gap: 10px; min-width: 0; border: 0; }

/* full-width field */
.field--wide { grid-column: 1 / -1; }

/* field labels and legends */
.field > label, .field legend { color: var(--bone-2); padding: 0; }

/* legends need explicit spacing because they ignore grid gaps */
.field legend { margin-bottom: 14px; }

/* underlined inputs that feel like writing on paper */
.field input:not([type='radio']), .field textarea {
  width: 100%; padding: 10px 0 14px; background: transparent; border: 0; border-bottom: 1px solid var(--hair-2); border-radius: 0;
  font-family: var(--f-serif); font-size: clamp(20px, 1.4vw, 23px); font-weight: 400; color: var(--bone); caret-color: var(--gold-hi);
  transition: border-color .4s var(--ease-soft); -webkit-appearance: none; appearance: none;
}

/* arabic and persian inputs use the reading face */
:root:is([lang='ar'], [lang='fa']) .field :is(input, textarea) { font-family: var(--f-sans); font-size: 17px; }

/* textarea grows comfortably for a brief */
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }

/* soft placeholder */
.field ::placeholder { color: var(--mut-2); opacity: 1; font-style: italic; }

/* the focus line turns gold without a box outline */
.field :is(input, textarea):focus { outline: none; border-bottom-color: var(--gold); }

/* an animated gold line reinforces focus */
.field__line { position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold-leaf); transform: scaleX(0); transition: transform .7s var(--ease); pointer-events: none; }

/* positioning context that keeps the focus line on the input baseline */
.field__control { position: relative; }

/* focus draws the gold line */
.field:focus-within .field__line { transform: scaleX(1); }

/* fields with errors show a warm red line */
.field [aria-invalid='true'] { border-bottom-color: #d98f7d !important; }

/* inline error message */
.field__error { color: #eab0a1; font-size: 13.5px; line-height: 1.5; }

/* character counter for the brief */
.field__count { justify-self: end; font-size: 12px; color: var(--mut-2); font-variant-numeric: tabular-nums; }

/* selectable chips for project type and budget */
.chips__row { display: flex; flex-wrap: wrap; gap: 10px; }

/* the chip label wraps a visually hidden radio */
.chip { position: relative; display: inline-flex; }

/* hides the native radio but keeps it focusable and clickable */
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }

/* chip face */
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--hair-2); border-radius: 999px;
  font-size: 14.5px; color: var(--bone-2); transition: border-color .35s, background-color .35s, color .35s; user-select: none;
}

/* chip hover */
.chip input:hover + span { border-color: var(--hair-gold); color: var(--bone); }

/* selected chip */
.chip input:checked + span { background: rgba(194, 168, 120, .14); border-color: var(--gold); color: var(--gold-hi); }

/* keyboard focus on a chip */
.chip input:focus-visible + span { outline: 1px solid var(--gold-mid); outline-offset: 3px; }

/* a required choice that is still missing warms its chips with the error tone */
.chip input[aria-invalid='true'] + span { border-color: rgba(217, 143, 125, .7); }

/* the choice error sits under its chips with the same rhythm as the field errors */
.field .chips__row + .field__error { margin-top: 12px; }

/* invisible honeypot fields for bots */
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* hcaptcha panel */
.captcha { margin-top: 38px; }

/* the hcaptcha host gets a little room when a widget is present */
.captcha [data-captcha-host]:not(:empty) { margin-bottom: 12px; }

/* verification status text */
.captcha__status { display: flex; align-items: center; gap: 12px; color: var(--mut); font-size: 13.5px; }

/* a small jewel precedes the verification status */
.captcha__status::before { content: ''; width: 6px; height: 6px; flex: none; transform: rotate(45deg); border: 1px solid var(--gold); }

/* support actions when verification fails */
.captcha__support { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; }

/* small text actions in the captcha panel */
.captcha__support :is(a, button) { min-height: 44px; display: inline-flex; align-items: center; color: var(--gold-hi); font-size: 14px; }

/* the underline of the captcha support actions */
.captcha__support :is(a, button) span { border-bottom: 1px solid var(--hair-gold); }

/* form level error */
.form__error { margin-top: 26px; padding: 14px 18px; border-inline-start: 2px solid #d98f7d; background: rgba(217, 143, 125, .07); color: #f0c2b6; font-size: 14.5px; }

/* the send area */
.form__send { margin-top: 30px; }

/* thank-you panel shown after a confirmed delivery */
.success { padding: clamp(34px, 4vw, 56px); border: 1px solid var(--hair-gold); background: linear-gradient(160deg, rgba(194, 168, 120, .1), rgba(194, 168, 120, .02)); }

/* focus on the success panel is programmatic only */
.success:focus { outline: none; }

/* success heading */
.success h3 { font-family: var(--f-serif); font-weight: 300; font-size: clamp(30px, 2.8vw, 44px); line-height: 1.1; color: var(--bone); }

/* success body */
.success p { margin-top: 14px; color: var(--bone-2); }

/* the jewel above the success heading */
.success__mark { width: 11px; height: 11px; transform: rotate(45deg); background: var(--gold); margin-bottom: 26px; }

/* footer */
.footer { position: relative; padding-top: clamp(80px, 10vw, 150px); padding-bottom: max(34px, env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); overflow: hidden;
  background: linear-gradient(180deg, rgba(6, 5, 7, .10) 0%, rgba(6, 5, 7, .30) 46%, rgba(6, 5, 7, .72) 100%); }

/* monumental wordmark that spans the full width */
.footer__mark {
  display: block; font-family: var(--f-logo); font-weight: 400; font-size: clamp(52px, 15.2vw, 250px); line-height: .9; letter-spacing: .06em;
  margin-inline-end: -.06em; text-align: center; white-space: nowrap; direction: ltr; user-select: none;
  overflow: hidden; padding-block: .04em;
}

/* each letter carries the engraved gradient and can rise on its own */
.footer__mark span {
  display: inline-block; background: linear-gradient(180deg, rgba(237, 230, 218, .92), rgba(194, 168, 120, .45));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* the wordmark letters rise one after another instead of the block fading in */
:root.motion .footer__mark[data-reveal] { opacity: 1; transform: none; }

/* hidden starting position of each letter */
:root.motion .footer__mark[data-reveal] span { transform: translateY(105%); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 70ms); }

/* letters settle into place once the footer is reached */
:root.motion .footer__mark[data-reveal].is-in span { transform: none; }

/* footer column grid */
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-top: clamp(60px, 7vw, 110px); padding-top: 44px; border-top: 1px solid var(--hair); }

/* footer column headings */
.footer__col h3 { color: var(--mut); margin-bottom: 18px; }

/* footer tagline */
.footer__tag { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(24px, 2vw, 32px); line-height: 1.25; color: var(--bone); max-width: 18ch; }

/* upright tagline for scripts without italics */
:root:is([lang='ar'], [lang='fa']) .footer__tag { font-style: normal; line-height: 1.6; }

/* footer links */
.footer__col ul { display: grid; gap: 2px; }

/* one footer link */
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--bone-2); transition: color .3s; }

/* footer link hover */
.footer__col a:hover { color: var(--gold-hi); }

/* email in the footer keeps its case and direction */
.footer__mail { direction: ltr; unicode-bidi: isolate; }

/* bottom line with rights and designer signature */
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; margin-top: clamp(50px, 6vw, 90px); padding-top: 28px; border-top: 1px solid var(--hair); color: var(--mut); font-size: 13px; }

/* designer credit with the signature image */
.credit { display: inline-flex; align-items: center; gap: 14px; }

/* the signature image */
.credit img { width: 118px; height: auto; opacity: .92; }

/* back to top link */
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--bone-2); }

/* the arrow of the back to top link */
.to-top svg { width: 10px; height: 14px; transition: transform .5s var(--ease); }

/* the arrow rises on hover */
.to-top:hover svg { transform: translateY(-3px); }

/* legal note about the concept projects */
.legal { margin-top: 28px; max-width: 110ch; color: var(--mut-2); font-size: 12.5px; line-height: 1.75; }

/* scroll-triggered entrance for content blocks */
:root.motion [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 1.2s var(--ease-soft), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }

/* revealed state */
:root.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* the observed frame itself stays unclipped so intersection can be measured */
:root.motion [data-reveal='curtain'] { opacity: 1; transform: none; }

/* the image inside unveils from the bottom like a lifted curtain */
:root.motion [data-reveal='curtain'] > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease), transform 1.8s var(--ease), filter 1.2s var(--ease-soft); }

/* revealed curtain */
:root.motion [data-reveal='curtain'].is-in > img { clip-path: inset(0 0 0 0); }

/* tablet layout */
@media (max-width: 1180px) {
  :root { --nav-h: 74px; }
  .thread { display: none; }
  .atelier__side::after { display: none; }
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links, .nav__cta { display: none; }
  .brand { justify-self: start; letter-spacing: .38em; margin-inline-end: -.38em; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; }
  .services__intro, .contact__intro { position: static; }
  .project__link, .project:nth-child(even) .project__link { grid-template-columns: 1fr; }
  .project:nth-child(even) .project__media { order: 0; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 72px; padding-top: 0; }
  .steps::before, .steps::after { display: none; }
  .step { padding-top: 30px; border-top: 1px solid var(--hair-2); }
  .step::before { top: -5px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > :first-child { grid-column: 1 / -1; }
}

/* phone layout */
@media (max-width: 640px) {
  :root { --nav-h: 66px; --section-y: 96px; }
  .nav { gap: 12px; }
  .brand { font-size: 17px; letter-spacing: .34em; margin-inline-end: -.34em; }
  .lang__btn { padding-inline: 12px; gap: 8px; }
  .hero__inner { text-align: start; padding-top: calc(var(--nav-h) + 8vh); }
  .eyebrow::after { display: none; }
  .eyebrow::before { width: 30px; }
  .hero__title { font-size: clamp(40px, 11.6vw, 60px); line-height: 1.02; }
  .hero__sub { margin-inline: 0; }
  .hero__actions { justify-content: flex-start; flex-direction: column; align-items: stretch; gap: 8px; }
  .hero__actions .link-arrow { align-self: center; }
  .hero__meta { display: none; }
  .marquee { padding-block: 20px; }
  .service { grid-template-columns: 40px 1fr; }
  .service p { grid-column: 2; }
  .steps { grid-template-columns: 1fr; row-gap: 56px; }
  .form__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* very small phones keep the header compact */
@media (max-width: 360px) {
  .brand { font-size: 15px; letter-spacing: .28em; margin-inline-end: -.28em; }
  .lang__btn { padding-inline: 10px; }
  .burger { width: 44px; }
}

/* touch devices never see the pointer badge or light */
@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

/* reduced motion keeps every transition instant and stops ambient loops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee__track, .marquee::after, .hero__l2, .backdrop canvas { animation: none !important; }
  :root.motion [data-reveal], :root.motion [data-reveal] > img { opacity: 1; transform: none; clip-path: none; }
}

/* print keeps a clean, ink-saving copy of the content */
@media print {
  .nav, .menu, .grain, .backdrop, .progress, .hero__media, .marquee, .cursor, .form, .captcha { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { min-height: auto; }
}
