/* Digital Textile · design by ASYS · cream paper, burgundy and gold, Onest · rounded frames, video hero, smooth scroll motion (motion.js) */

:root {
  --cream: #f3eee5;
  --paper: #fbf8f3;
  --beige: #e9e1d3;
  --ink: #211d1b;
  --ink-2: #3a3330;
  --muted: #6d645d;
  --line: rgb(33 29 27 / 0.12);
  --wine: #6b1f27;
  --wine-2: #521820;
  --gold: #c9a66b;
  --gold-2: #dcc08f;
  --white: #ffffff;
  --glass: rgb(255 255 255 / 0.12);
  --glass-line: rgb(255 255 255 / 0.22);
  --shade: rgb(18 14 12 / 0.55);
  --focus: #c9a66b;

  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --frame: clamp(8px, 1vw, 14px);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --container: 1320px;
  --section: clamp(5rem, 10vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 84px;
}

/* base */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }
html:not(.lenis) { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.08; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--paper); }
svg use { pointer-events: none; }
.icon-badge svg, .btn__icon svg, .video-toggle svg, .badge__core svg { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 38ch; }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; padding: 0.6rem 1rem; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; }
.skip:focus-visible { top: 1rem; outline: 2px solid var(--focus); outline-offset: 2px; }

/* pill label */
.pill { display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.4rem; padding: 0.45rem 1rem 0.45rem 0.55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.pill::before { content: ""; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211d1b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14M7.5 7.5l9 9M16.5 7.5l-9 9'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }
.pill--glass { background: var(--glass); border-color: var(--glass-line); color: var(--white); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* buttons */
.btn { --btn-bg: var(--wine); --btn-fg: var(--paper); --btn-bg-h: var(--wine-2); display: inline-flex; align-items: center; gap: 0.85rem; min-height: 56px; padding: 0.4rem 0.45rem 0.4rem 1.5rem; border: 1px solid transparent; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 500; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.btn__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); transition: transform 0.5s var(--ease), background-color 0.35s var(--ease); }
.btn__icon svg { width: 20px; height: 20px; }
.btn:hover { background: var(--btn-bg-h); }
.btn:hover .btn__icon { transform: rotate(45deg); background: var(--gold-2); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.btn[aria-busy="true"] { cursor: progress; opacity: 0.75; }
.btn[aria-busy="true"] .btn__icon { animation: dt-spin 1s linear infinite; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { --btn-bg: var(--glass); --btn-bg-h: rgb(255 255 255 / 0.2); --btn-fg: var(--white); padding: 0.4rem 1.6rem; border-color: var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn--dark { --btn-bg: var(--ink); --btn-bg-h: var(--ink-2); }

.icon-badge { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--gold); color: var(--ink); }
.icon-badge svg { width: 24px; height: 24px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; border-radius: 999px; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 0.85rem; font-weight: 600; letter-spacing: 0; }
.brand:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: calc(var(--frame) + 10px) calc(var(--frame) + 10px) 0; color: var(--white); transition: transform 0.6s var(--ease), color 0.4s var(--ease); pointer-events: none; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding: 0.55rem 0.55rem 0.55rem clamp(0.9rem, 2vw, 1.5rem); border: 1px solid transparent; border-radius: 999px; pointer-events: auto; transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nav__links { display: flex; gap: 0.25rem; }
.nav__links a { padding: 0.55rem 1rem; border-radius: 999px; text-decoration: none; font-size: 0.98rem; font-weight: 500; transition: background-color 0.3s var(--ease); }
.nav__links a:hover { background: rgb(255 255 255 / 0.14); }
.nav__links a:focus-visible, .lang button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.nav__end { display: flex; align-items: center; gap: 0.6rem; }
.nav__cta { min-height: 50px; }
.nav__cta .btn__icon { width: 38px; height: 38px; }
.nav.is-scrolled { color: var(--ink); }
.nav.is-scrolled .nav__bar { background: rgb(251 248 243 / 0.82); border-color: var(--line); box-shadow: 0 10px 40px -18px rgb(33 29 27 / 0.35); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.nav.is-scrolled .nav__links a:hover { background: rgb(33 29 27 / 0.06); }
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }

.lang { display: inline-flex; padding: 4px; border: 1px solid var(--glass-line); border-radius: 999px; }
.nav.is-scrolled .lang { border-color: var(--line); }
.lang button { min-width: 44px; min-height: 40px; padding: 0 0.75rem; border: 0; border-radius: 999px; background: transparent; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.lang button:hover { background: rgb(255 255 255 / 0.14); }
.nav.is-scrolled .lang button:hover { background: rgb(33 29 27 / 0.06); }
.lang button[aria-pressed="true"] { background: var(--gold); color: var(--ink); }

/* hero */
.hero { padding: var(--frame); }
.hero__frame { position: relative; display: flex; align-items: flex-end; min-height: calc(100svh - 2 * var(--frame)); min-height: max(640px, calc(100svh - 2 * var(--frame))); border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: var(--white); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(18 14 12 / 0.55) 0%, rgb(18 14 12 / 0.15) 35%, rgb(18 14 12 / 0.35) 60%, rgb(18 14 12 / 0.88) 100%); }
.hero__mark { position: absolute; left: 50%; bottom: -0.2em; z-index: -1; transform: translateX(-50%); font-size: clamp(6rem, 21vw, 24rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / 0.28); pointer-events: none; user-select: none; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2.5rem; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: clamp(5.5rem, 13vw, 13rem); }
.hero__copy { max-width: 50rem; }
.hero__title { font-size: clamp(2.7rem, 6.4vw, 5.8rem); line-height: 1; letter-spacing: -0.035em; }
.hero__lead { margin-top: 1.5rem; max-width: 32ch; color: rgb(255 255 255 / 0.82); font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; }

.hero__card { width: min(100%, 360px); padding: 1.6rem; border: 1px solid var(--glass-line); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.1); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); }
.hero__card-head { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--glass-line); }
.hero__card-title { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.01em; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 1.3rem; }
.hero__stats > div { display: flex; flex-direction: column-reverse; gap: 0.3rem; }
.hero__stats dd { font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.hero__stats dt { color: rgb(255 255 255 / 0.75); font-size: 0.92rem; line-height: 1.35; }

.video-toggle { position: absolute; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 1px solid var(--glass-line); border-radius: 50%; background: var(--glass); color: var(--white); cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color 0.3s var(--ease), transform 0.3s var(--ease); }
.video-toggle:hover { background: rgb(255 255 255 / 0.24); }
.video-toggle:active { transform: scale(0.94); }
.video-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.video-toggle svg { width: 20px; height: 20px; }
.video-toggle__play { display: none; fill: currentColor !important; stroke: none !important; }
.video-toggle[aria-pressed="true"] .video-toggle__play { display: block; }
.video-toggle[aria-pressed="true"] .video-toggle__pause { display: none; }

/* ticker */
.ticker { margin: 0 var(--frame); overflow: hidden; border-radius: var(--r-lg); background: var(--wine); color: var(--paper); }
.ticker__track { display: flex; width: max-content; animation: dt-marquee 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; gap: 2.2rem; padding: 1.5rem 0 1.5rem 2.2rem; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.ticker__list li::after { content: ""; width: 1.4rem; height: 1.4rem; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0l2.6 9.4L24 12l-9.4 2.6L12 24l-2.6-9.4L0 12l9.4-2.6z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* about */
.about__statement { max-width: 24ch; font-size: clamp(1.9rem, 4vw, 3.6rem); line-height: 1.14; letter-spacing: -0.03em; }
.about__statement .sw { transition: none; }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.media-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--beige); }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.about__photo { aspect-ratio: 4 / 3; }
.about__photo img, .works__photo img { scale: 1.16; }
.card { border-radius: var(--r-xl); background: var(--paper); }
.about__card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(1.6rem, 3vw, 2.6rem); }
.badge { position: relative; width: 124px; height: 124px; }
.badge__ring { width: 100%; height: 100%; fill: var(--ink); font-size: 11px; font-weight: 600; animation: dt-spin 22s linear infinite; }
.badge__core { position: absolute; inset: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--wine); color: var(--gold); }
.badge__core svg { width: 30px; height: 30px; }
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1rem; padding-block: 0.95rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 0.95rem; }
.facts dd { font-weight: 500; }
.about__card .btn { align-self: flex-start; }

/* panels */
.panel { margin-inline: var(--frame); padding-block: var(--section); border-radius: var(--r-xl); background: var(--beige); }
.services.section, .contact.section { padding-block: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: end; gap: 2rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { max-width: 14ch; }

/* services */
.services__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.service { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--paper); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.service:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(33 29 27 / 0.35); }
.service__img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.service:hover .service__img img { transform: scale(1.07); }
.service__body { position: relative; display: grid; gap: 0.6rem; padding: 0 1.5rem 1.8rem; }
.service__body .icon-badge { margin-top: -28px; margin-bottom: 0.7rem; border: 5px solid var(--paper); width: 64px; height: 64px; transition: background-color 0.4s var(--ease), color 0.4s var(--ease); }
.service:hover .icon-badge { background: var(--wine); color: var(--gold); }
.service p { color: var(--muted); font-size: 0.98rem; }

/* process */
.process { padding: 0; margin-block: var(--frame); }
.process__frame { position: relative; margin-inline: var(--frame); overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: var(--white); isolation: isolate; }
.process__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.process__video { width: 100%; height: 100%; object-fit: cover; scale: 1.2; }
.process__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(18 14 12 / 0.88) 0%, rgb(18 14 12 / 0.6) 55%, rgb(18 14 12 / 0.4) 100%); }
.process__inner { display: grid; gap: clamp(3rem, 6vw, 5rem); padding-block: clamp(5rem, 11vw, 10rem); }
.process__head { max-width: 40rem; }
.process__head .lead { margin-top: 1.2rem; color: rgb(255 255 255 / 0.75); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: step; }
.step { position: relative; display: grid; align-content: start; gap: 0.7rem; min-height: 15rem; padding: 1.6rem; border: 1px solid var(--glass-line); border-radius: var(--r-lg); background: rgb(255 255 255 / 0.08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); counter-increment: step; transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease); }
.step::before { content: "0" counter(step); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 0.95rem; font-weight: 600; }
.step h3 { margin-top: 2.2rem; }
.step p { color: rgb(255 255 255 / 0.74); font-size: 0.98rem; }
.step:hover { background: rgb(255 255 255 / 0.14); border-color: rgb(255 255 255 / 0.35); }

/* works */
.works__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.works__aside { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.works__aside .lead { margin-top: 1.2rem; }
.works__photo { margin-top: 2.2rem; aspect-ratio: 3 / 2; }
.works__list { display: grid; gap: 1rem; }
.work { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(1.2rem, 3vw, 2.5rem); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--paper); transition: background-color 0.5s var(--ease), color 0.5s var(--ease), transform 0.5s var(--ease); }
.work:not(.work--cta):hover { background: var(--ink); color: var(--paper); transform: translateX(6px); }
.work__year { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--beige); color: var(--wine); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }
.work:hover .work__year { background: var(--gold); color: var(--ink); }
.work__body { display: grid; gap: 0.45rem; }
.work h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.work__body p { color: var(--muted); transition: color 0.5s var(--ease); }
.work:hover .work__body p { color: rgb(251 248 243 / 0.7); }
.work--cta { grid-template-columns: minmax(0, 1fr) auto; background: var(--wine); color: var(--paper); }
.work--cta p { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.work--cta .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bg-h: var(--white); }

/* contact */
.contact { margin-top: var(--section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact__info .lead { margin-top: 1.2rem; }
.contact__list { display: grid; gap: 1.4rem; margin-top: 2.5rem; }
.contact__list li { display: flex; align-items: center; gap: 1.1rem; }
.contact__label { color: var(--muted); font-size: 0.92rem; }
.contact__value { font-size: 1.12rem; font-weight: 500; text-decoration: none; }
a.contact__value { border-radius: 4px; transition: color 0.3s var(--ease); }
a.contact__value:hover { color: var(--wine); }
a.contact__value:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.1rem; padding: clamp(1.5rem, 3.5vw, 2.8rem); border-radius: var(--r-xl); background: var(--paper); box-shadow: 0 40px 80px -50px rgb(33 29 27 / 0.4); }
.field { display: grid; gap: 0.45rem; min-width: 0; }
.field--wide, .form__foot { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 0.8rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--cream); transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; padding-right: 2.8rem; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211d1b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(33 29 27 / 0.28); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--wine); background-color: var(--white); box-shadow: 0 0 0 4px rgb(107 31 39 / 0.14); }
.field [aria-invalid="true"] { border-color: var(--wine); box-shadow: 0 0 0 4px rgb(107 31 39 / 0.1); }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.form__help { flex: 1 1 16rem; color: var(--ink-2); font-size: 0.95rem; }
.form__help:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* footer */
.footer { padding: var(--section) var(--frame) var(--frame); }
.footer__frame { border-radius: var(--r-xl); background: var(--ink); color: var(--paper); padding-top: clamp(4rem, 8vw, 7rem); }
.footer__cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgb(251 248 243 / 0.14); }
.footer__cta h2 { max-width: 14ch; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -0.035em; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-block: clamp(3rem, 5vw, 4rem); }
.footer__brand p { margin-top: 1.2rem; max-width: 30ch; color: rgb(251 248 243 / 0.65); }
.footer__col { display: grid; align-content: start; gap: 0.6rem; color: rgb(251 248 243 / 0.7); }
.footer__head { margin-bottom: 0.4rem; color: var(--gold); font-weight: 500; }
.footer__col a { justify-self: start; text-decoration: none; border-radius: 4px; transition: color 0.3s var(--ease); }
.footer__col a:hover, .footer__bottom a:hover { color: var(--gold); }
.footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; padding-block: 1.8rem; border-top: 1px solid rgb(251 248 243 / 0.14); color: rgb(251 248 243 / 0.5); font-size: 0.85rem; }
.footer__bottom a { color: rgb(251 248 243 / 0.7); transition: color 0.3s var(--ease); }

/* split text (motion.js) */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.12em; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.w__i { display: inline-block; will-change: transform; }

/* hero waits for motion.js; a fail-safe shows it anyway */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__copy, .js .hero__card, .js .hero__mark { visibility: hidden; animation: dt-failsafe 0s 2.5s forwards; }
  .js.is-ready .hero__copy, .js.is-ready .hero__card, .js.is-ready .hero__mark { visibility: visible; animation: none; }
}

@keyframes dt-failsafe { to { visibility: visible; } }
@keyframes dt-spin { to { transform: rotate(360deg); } }
@keyframes dt-marquee { to { transform: translateX(-50%); } }

/* responsive */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); padding-bottom: 6.5rem; }
  .hero__card { display: none; }
  .about__grid, .works__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .works__aside { position: static; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  :root { --nav-h: 72px; }
  .nav { padding: calc(var(--frame) + 6px) calc(var(--frame) + 6px) 0; }
  .nav__cta span:first-child { display: none; }
  .nav__cta { padding: 0.3rem; min-height: 46px; }
  .brand__name { display: none; }
  .services__grid, .steps, .form, .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; }
  .work { grid-template-columns: minmax(0, 1fr); }
  .work__year { width: 72px; height: 72px; font-size: 1.1rem; }
  .work--cta { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero__actions .btn--ghost { justify-content: center; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .ticker__track { animation: none; }
  .badge__ring { animation: none; }
}
