/* =========================================================
   Moustafa Production — style
   ========================================================= */
:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --fg: #f2efe9;
  --muted: #8d8980;
  --line: rgba(242, 239, 233, .14);
  --accent: #f4b41a;
  --accent-soft: rgba(244, 180, 26, .18);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gut: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #000; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
em { font-style: normal; color: var(--accent); }

/* line masks for text reveals */
.line { display: block; overflow: hidden; padding-bottom: .02em; }
.line__in { display: block; will-change: transform; }
.line__in[data-fit] { display: inline-block; }

/* ================= LOADER ================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto auto;
  padding: var(--gut);
}
.loader__top, .loader__bottom { display: flex; justify-content: space-between; color: var(--muted); }
.loader__count { display: grid; place-items: center; overflow: hidden; }
.loader__num { font-family: var(--display); font-size: clamp(90px, 22vw, 320px); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.loader__bar { height: 1px; background: var(--line); margin-bottom: 14px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.shutter { position: fixed; inset: 0; z-index: 99; pointer-events: none; }
.shutter span { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transform: scaleY(0); }
.shutter__top { top: 0; transform-origin: top; }
.shutter__bot { bottom: 0; transform-origin: bottom; }
.curtain { position: fixed; inset: 0; z-index: 100; background: var(--accent); transform-origin: top; pointer-events: none; }
.page-home .curtain { transform: scaleY(0); transform-origin: bottom; }
.flash { position: fixed; inset: 0; z-index: 98; background: #fff; opacity: 0; pointer-events: none; }

/* ================= CURSOR ================= */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .6);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor__label { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; border-color: #fff; }
.cursor.is-view { mix-blend-mode: normal; }
.cursor.is-view .cursor__ring { width: 92px; height: 92px; background: var(--accent); border-color: var(--accent); }
.cursor.is-view .cursor__label { opacity: 1; }
.cursor.is-view .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
/* hide the system arrow while the custom cursor is active */
.has-cursor, .has-cursor * { cursor: none !important; }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gut);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.nav.is-solid { background: rgba(11, 11, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__mark {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fg); color: var(--bg); font-family: var(--display); font-size: 19px; line-height: 1;
}
.nav__word { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.nav__links { display: flex; gap: 30px; }
.nav__links a, .footer__nav a { position: relative; font-size: 14px; }
.nav__links a::after, .footer__nav a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .footer__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--fg); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.menu-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }

/* buttons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #000; }
.btn--pill { padding: 12px 22px; border-radius: 99px; background: rgba(242, 239, 233, .08); border: 1px solid var(--line); font-size: 14px; transition: color .4s; }
.btn--big { padding: 20px 30px; border-radius: 99px; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 16px; }
.btn--big i { font-style: normal; transition: transform .5s var(--ease); }
.btn--big:hover i { transform: translateX(5px); }

/* mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gut) var(--gut);
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a { font-family: var(--display); font-size: clamp(56px, 16vw, 120px); line-height: 1.02; text-transform: uppercase; display: flex; align-items: flex-start; gap: 12px; }
.menu__links small { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-top: 14px; }
.menu__foot { display: flex; justify-content: space-between; color: var(--muted); }

/* ================= HERO ================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; isolation: isolate;
}
.hero__glow {
  position: absolute; left: 50%; bottom: -20%; width: 120vmax; height: 90vmax; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(244, 180, 26, .22), rgba(244, 180, 26, .06) 45%, transparent 70%);
  z-index: -2;
}
.hero__grain {
  position: absolute; inset: -50%; z-index: 5; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 6%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); }
}
.hero__title {
  position: absolute; left: 0; right: 0; top: 52%; translate: 0 -42%;
  margin: 0; padding: 0 var(--gut);
  font-family: var(--display); font-weight: 400; line-height: .86; text-transform: uppercase;
  text-align: center; letter-spacing: -.005em;
}
.hero__title .line__in { white-space: nowrap; font-size: 18vw; }
.hero__title--back { z-index: 1; color: var(--fg); }
.hero__title--front { z-index: 3; color: transparent; -webkit-text-stroke: 1.5px rgba(242, 239, 233, .9); pointer-events: none; }
.hero__subject {
  --h: min(88vh, 150vw);
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin-inline: auto;
  height: var(--h); width: calc(var(--h) * 1067 / 1600);
  transform-origin: 50% 100%;
  will-change: transform;
}
.hero__subject img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 0 40px rgba(0, 0, 0, .55)); }
.hero__shadow {
  position: absolute; left: 12%; right: 8%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent); z-index: -1;
}
/* autofocus box over the face */
.focus { position: absolute; left: 71%; top: 17.5%; width: 18%; aspect-ratio: 1; translate: -50% -50%; }
.focus i { position: absolute; width: 22%; height: 22%; border-color: rgba(255, 255, 255, .85); border-style: solid; border-width: 0; transition: border-color .25s; }
.focus i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.focus i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.focus i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.focus i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.focus__tag { position: absolute; left: 100%; top: 0; margin-left: 8px; font-size: 10px; color: var(--accent); opacity: 0; white-space: nowrap; }
.focus.is-locked i { border-color: var(--accent); }

.hud { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hud__corner { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(242, 239, 233, .55); }
.hud__corner--tl { top: 88px; left: var(--gut); border-top-width: 1px; border-left-width: 1px; }
.hud__corner--tr { top: 88px; right: var(--gut); border-top-width: 1px; border-right-width: 1px; }
.hud__corner--bl { bottom: var(--gut); left: var(--gut); border-bottom-width: 1px; border-left-width: 1px; }
.hud__corner--br { bottom: var(--gut); right: var(--gut); border-bottom-width: 1px; border-right-width: 1px; }
.hud__rec { position: absolute; top: 100px; left: calc(var(--gut) + 40px); display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 11px; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud__exp { position: absolute; top: 100px; right: calc(var(--gut) + 40px); display: flex; gap: 16px; font-size: 11px; color: var(--fg); }
.hud__bat { color: var(--accent); letter-spacing: -.1em; }

.hero__meta {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(var(--gut) + 22px);
  padding: 0 calc(var(--gut) + 40px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
}
.hero__role { margin: 0; font-size: clamp(15px, 1.25vw, 19px); font-weight: 500; line-height: 1.3; display: flex; flex-direction: column; }
.hero__loc { margin: 0; text-align: right; color: var(--muted); line-height: 1.7; }
.hero__right { display: flex; align-items: flex-end; gap: 22px; }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; }
.hero__scroll-line { width: 1px; height: 46px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ================= MARQUEE ================= */
.marquee { position: relative; z-index: 2; padding: 26px 0; border-block: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__row { display: flex; align-items: center; gap: clamp(22px, 3vw, 48px); padding-right: clamp(22px, 3vw, 48px); flex-shrink: 0; }
.marquee__row span { font-family: var(--display); font-size: clamp(42px, 7vw, 110px); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.marquee__row span:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--fg); }
.marquee__row b { color: var(--accent); font-size: clamp(22px, 3vw, 44px); font-weight: 400; }

/* ================= ABOUT ================= */
section { position: relative; }
.about { padding: clamp(90px, 14vw, 200px) var(--gut); }
.about__label, .works__head .mono, .frames__intro .mono, .approach__label, .contact__label { color: var(--muted); }
.about__label span, .works__head .mono span { color: var(--accent); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); margin-top: 40px; align-items: start; }
.about__photo { margin: 0; position: sticky; top: 110px; }
.about__photo { overflow: hidden; }
.about__photo img { width: auto; max-width: 100%; max-height: calc(100svh - 150px); aspect-ratio: 1500 / 2164; object-fit: contain; border-radius: 4px; }
.about__photo figcaption { margin-top: 12px; color: var(--muted); font-size: 11px; }
.about__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 8.2vw, 136px); line-height: .92; margin: 0 0 clamp(28px, 4vw, 56px); }
.about__lead { font-size: clamp(22px, 2.35vw, 36px); line-height: 1.28; font-weight: 400; margin: 0 0 32px; letter-spacing: -.01em; }
.about__lead .w { opacity: .18; transition: none; }
.about__body { color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); max-width: 560px; margin: 0 0 36px; }
.about__tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.about__tags li { border: 1px solid var(--line); border-radius: 99px; padding: 8px 16px; font-size: 14px; transition: background .3s, color .3s, border-color .3s; }
.about__tags li:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* ================= WORKS ================= */
.works { background: var(--fg); color: var(--bg); }
.works__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: 100px; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gut) 28px; }
.works__head .mono { color: #6d6a64; align-self: flex-start; }
.works__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 5.6vw, 92px); line-height: .92; margin: 0; flex: 1; text-align: center; }
.works__hint { color: #6d6a64; }
.works__hint span { display: inline-block; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.works__track { flex: 1; display: flex; gap: clamp(16px, 2vw, 32px); padding: 0 var(--gut) 20px; width: max-content; will-change: transform; min-height: 0; }
.card { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 4 / 5; display: flex; flex-direction: column; color: var(--bg); }
.card:nth-child(even) { aspect-ratio: 5 / 5.2; }
.card__media { position: relative; flex: 1; overflow: hidden; border-radius: 6px; min-height: 0; background: #d8d4cc; }
.card__media img { position: absolute; top: -8%; left: -12%; width: 124%; max-width: none; height: 116%; object-fit: cover; transition: transform 1.2s var(--ease); will-change: transform; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); }
.card__num { position: absolute; top: 16px; left: 18px; z-index: 2; color: #fff; }
.card__count { position: absolute; top: 16px; right: 18px; z-index: 2; color: #fff; background: rgba(0, 0, 0, .35); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 99px; }
.card__name { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--display); font-size: clamp(34px, 3.8vw, 64px); line-height: .92; text-transform: uppercase; margin: 0; }
.card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 14px; }
.card__foot .mono { color: #6d6a64; }
.card__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.card__go i { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; font-style: normal; transition: transform .5s var(--ease), background .3s; }
.card:hover .card__go i { transform: rotate(-45deg); background: var(--accent); color: #000; }
.card--end { aspect-ratio: auto !important; width: clamp(260px, 26vw, 420px); justify-content: center; gap: 24px; padding: 0 20px; }
.card--end h3 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 4.4vw, 72px); line-height: .95; text-transform: uppercase; margin: 0; }
.card--end .btn--big { align-self: flex-start; background: var(--bg); color: var(--fg); }
.works__progress { height: 2px; margin: 0 var(--gut) 28px; background: rgba(11, 11, 10, .12); }
.works__progress span { display: block; height: 100%; width: 100%; background: var(--bg); transform: scaleX(0); transform-origin: left; }

/* ================= FRAMES ================= */
.frames { padding: clamp(90px, 12vw, 180px) 0 0; overflow: hidden; }
.frames__intro { padding: 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 6vw, 90px); }
.frames__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(44px, 7vw, 116px); line-height: .92; margin: 0; text-align: right; }
.frames__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 22px); padding: 0 var(--gut); height: 150vh; overflow: hidden; mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent); }
.frames__col { display: flex; flex-direction: column; gap: clamp(10px, 1.4vw, 22px); will-change: transform; }
.frames__col:nth-child(even) { margin-top: -30vh; }
.frames__col a { display: block; overflow: hidden; border-radius: 4px; background: var(--bg-2); }
.frames__col img { width: 100%; height: auto; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.frames__col a:hover img { transform: scale(1.05); filter: none; }

/* ================= APPROACH ================= */
.approach { padding: clamp(90px, 12vw, 180px) var(--gut); }
.approach__list { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.approach__item {
  position: relative; display: grid; grid-template-columns: 80px 1fr minmax(220px, 380px); align-items: center; gap: 24px;
  padding: clamp(20px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
}
.approach__num { color: var(--accent); }
.approach__word { font-family: var(--display); font-weight: 400; font-size: clamp(64px, 12vw, 210px); line-height: .85; margin: 0; text-transform: uppercase; transition: color .5s, transform .8s var(--ease); }
.approach__item p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.1vw, 17px); }
.approach__item img {
  position: absolute; right: 30%; top: 50%; width: clamp(180px, 18vw, 300px); aspect-ratio: 3/4; object-fit: cover; border-radius: 4px;
  transform: translate(0, -50%) rotate(-6deg) scale(.6); opacity: 0; pointer-events: none; z-index: 2;
  transition: opacity .4s, transform .8s var(--ease);
}
@media (hover: hover) {
  .approach__item:hover .approach__word { color: transparent; -webkit-text-stroke: 1.5px var(--fg); transform: translateX(20px); }
  .approach__item:hover img { opacity: 1; transform: translate(0, -50%) rotate(4deg) scale(1); }
}

/* ================= CONTACT ================= */
.contact { padding: clamp(100px, 14vw, 200px) var(--gut); overflow: hidden; isolation: isolate; }
.contact__bg { position: absolute; inset: 0; z-index: -1; }
.contact__bg img { width: 100%; height: 125%; object-fit: cover; opacity: .16; filter: grayscale(1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(11, 11, 10, .55) 40%, var(--bg)); }
.contact__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 10.5vw, 180px); line-height: .9; margin: 24px 0 clamp(50px, 7vw, 100px); }
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 7vw, 120px); }
.contact__intro p { color: var(--muted); margin: 0 0 18px; max-width: 460px; font-size: clamp(16px, 1.15vw, 18px); }
.contact__ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); padding-bottom: 6px; transition: color .3s, border-color .3s; }
.contact__ig:hover { color: var(--accent); border-color: var(--accent); }
.contact__intro .contact__ig { display: flex; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.contact__ig + .contact__ig { margin-top: 12px; }
.form { display: flex; flex-direction: column; gap: 26px; }
.form__chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.form__chips legend { color: var(--muted); margin-bottom: 14px; padding: 0; }
.form__chips label { cursor: pointer; }
.form__chips input { position: absolute; opacity: 0; pointer-events: none; }
.form__chips span { display: inline-block; padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; transition: all .3s; }
.form__chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #000; }
.form__chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--fg);
  font: inherit; font-size: 18px; padding: 26px 0 12px; outline: none; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field span { position: absolute; left: 0; top: 26px; color: var(--muted); pointer-events: none; transition: transform .4s var(--ease), color .3s, font-size .4s var(--ease); transform-origin: left; }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-24px) scale(.75); color: var(--accent); }
.field.is-error input, .field.is-error textarea { border-color: #ff5a4f; }
.form .btn--big { align-self: flex-start; }
.form__note { color: var(--accent); min-height: 1em; margin: 0; }

/* ================= FOOTER ================= */
.footer { padding: 60px var(--gut) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer__nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer__up { color: var(--muted); transition: color .3s; }
.footer__up:hover { color: var(--accent); }
.footer__word { font-family: var(--display); line-height: .8; text-align: center; margin: 40px 0 24px; color: var(--fg); white-space: nowrap; }
.footer__word span { display: inline-block; font-size: 24vw; line-height: .8; }
.footer__word { pointer-events: none; }
.footer__top, .footer__bottom { position: relative; z-index: 2; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hud__exp span:not(.hud__bat) { display: none; }
  .hero__title { top: 54%; }
  .hero__subject { --h: min(80svh, 132vw); bottom: 3svh; }
  .hero__meta { padding: 0 calc(var(--gut) + 14px); }
  .hero__loc { display: none; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 460px; }
  .works__pin { height: auto; padding: 90px 0 60px; }
  .works__head { flex-direction: column; align-items: flex-start; }
  .works__title { text-align: left; }
  .works__hint, .works__progress { display: none; }
  .works__track { width: auto; flex-direction: column; gap: 40px; padding: 0 var(--gut); }
  .card, .card:nth-child(even) { height: auto; aspect-ratio: auto; width: 100%; }
  .card__media { aspect-ratio: 4 / 5; flex: none; }
  .card--end { width: 100%; padding: 20px 0; }
  .frames__cols { grid-template-columns: repeat(2, 1fr); height: 120vh; }
  .frames__col:nth-child(n+3) { display: none; }
  .frames__intro { flex-direction: column; align-items: flex-start; }
  .frames__title { text-align: left; }
  .approach__item { grid-template-columns: 1fr; gap: 10px; }
  .approach__item img { display: none; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hud__corner--tl, .hud__corner--tr { top: 76px; }
  .hud__rec, .hud__exp { top: 86px; }
  .hud__rec { left: calc(var(--gut) + 30px); } .hud__exp { right: calc(var(--gut) + 30px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .loader, .shutter, .flash { display: none; }
}
.footer__credit { text-decoration: underline; text-underline-offset: 3px; transition: color .3s; }
.footer__credit:hover { color: var(--accent); }
