/* ==========================================================
   SHARP TECHNOLOGIES — Dark Cinematic
   ========================================================== */

:root {
  /* colour */
  --ink: #07080a;
  --ink-2: #0d0f12;
  --ink-3: #15181c;
  --line: rgba(236, 232, 223, 0.12);
  --bone: #ece8df;
  --bone-dim: rgba(236, 232, 223, 0.62);
  --accent: #d2ff3c;
  --ember: #ff5b2e;

  /* type */
  --f-display: "Bricolage Grotesque", sans-serif;
  --f-serif: "Instrument Serif", serif;
  --f-mono: "JetBrains Mono", monospace;

  /* spacing */
  --gutter: 16px;
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 40px;
  --s-5: 72px;
  --s-6: 120px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 40px; --s-5: 100px; --s-6: 180px; --nav-h: 80px; }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- custom scrollbar ---------- */
html { scrollbar-width: thin; scrollbar-color: var(--accent) var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--ink); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- overlays ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
}

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 130; pointer-events: none;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; mix-blend-mode: difference;
  }
  .cursor span {
    display: block; width: 100%; height: 100%; background: #fff;
    clip-path: polygon(0 100%, 70% 0, 100% 0, 30% 100%); /* a little blade */
    transition: transform 0.35s var(--ease);
  }
  .cursor.is-hover span { transform: scale(2) rotate(8deg); }
  .cursor.is-down span { transform: scale(0.6) rotate(-8deg); }
  .cursor.is-text span { transform: scaleX(0.25) scaleY(1.6); }
  .cursor.is-view { opacity: 0; }
  .cursor, .cursor-ring { opacity: 0; transition: opacity 0.3s; }
  .cursor-on .cursor, .cursor-on .cursor-ring { opacity: 1; }
  .cursor-on .cursor.is-view { opacity: 0; }

  html.has-cursor, html.has-cursor * { cursor: none !important; }

  .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 129; pointer-events: none;
    width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
    border: 1px solid var(--accent); display: grid; place-items: center;
    transition: width 0.4s var(--ease), height 0.4s var(--ease), margin 0.4s var(--ease),
      background 0.3s, border-color 0.3s, opacity 0.3s, border-radius 0.3s;
  }
  .cursor-ring b {
    font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink); opacity: 0; transition: opacity 0.25s; white-space: nowrap;
  }
  .cursor-ring.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(210, 255, 60, 0.12); }
  .cursor-ring.is-view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); }
  .cursor-ring.is-view b, .cursor-ring.is-dark b { opacity: 1; }
  .cursor-ring.is-dark { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); border-color: var(--ink); }
  .cursor-ring.is-dark b { color: var(--accent); }
  .cursor.is-dark { opacity: 0; }
  .cursor-ring.is-text { width: 2px; height: 30px; margin: -15px 0 0 -1px; border-radius: 2px; background: var(--accent); }
  .cursor-ring.is-down { width: 24px; height: 24px; margin: -12px 0 0 -12px; background: var(--accent); }
  .cursor-ring.is-view.is-down { width: 76px; height: 76px; margin: -38px 0 0 -38px; }

  .cursor-spark {
    position: fixed; z-index: 128; pointer-events: none; width: 8px; height: 14px; margin: -7px 0 0 -4px;
    background: var(--accent); clip-path: polygon(0 100%, 70% 0, 100% 0, 30% 100%);
    transform: rotate(var(--r)); animation: spark 0.7s var(--ease) forwards;
  }
  @keyframes spark { to { opacity: 0; transform: rotate(calc(var(--r) + 50deg)) scale(0.2) translateY(14px); } }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
}
.loader__count { font-size: clamp(64px, 18vw, 160px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.loader__count i { font-style: normal; color: var(--accent); font-size: 0.4em; vertical-align: top; }
.loader__line { width: min(240px, 60vw); height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 0 var(--gutter);
  transition: background 0.4s, transform 0.5s var(--ease), backdrop-filter 0.4s;
}
.nav.is-solid { background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; transition: color 0.3s; }
.nav__logo em { color: var(--accent); font-family: var(--f-display); font-style: normal; }
.nav__logo:hover { color: var(--accent); }
.nav__logo svg { transition: transform 0.5s var(--ease); }
.nav__logo:hover svg { transform: rotate(-12deg) scale(1.1); }

.nav__links {
  position: fixed; inset: 0; background: var(--ink); z-index: -1;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 var(--gutter);
  clip-path: circle(0 at calc(100% - 34px) 34px);
  transition: clip-path 0.7s var(--ease);
}
.nav__links.is-open { clip-path: circle(150% at calc(100% - 34px) 34px); }
.nav__links a { font-size: clamp(44px, 14vw, 80px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; transition: color 0.3s, padding-left 0.4s var(--ease); }
.nav__links a:hover { color: var(--accent); padding-left: 16px; }
.nav__cta { display: none; }

.burger { width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; position: relative; cursor: pointer; transition: border-color 0.3s, background 0.3s; }
.burger:hover { border-color: var(--accent); background: rgba(210, 255, 60, 0.08); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--bone); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (min-width: 900px) {
  .burger { display: none; }
  .nav__links { position: static; z-index: auto; background: none; flex-direction: row; gap: 36px; padding: 0; clip-path: none; margin-left: auto; }
  .nav__links a { font-size: 14px; font-weight: 500; letter-spacing: 0; position: relative; padding: 4px 0; }
  .nav__links a:hover { padding-left: 0; }
  .nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
  .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav__cta { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; position: relative; overflow: hidden;
  padding: 16px 28px; border: 1px solid var(--bone); border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; background: transparent; isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 100% 100% 0 0; transition: transform 0.55s var(--ease), border-radius 0.55s var(--ease);
}
.btn:hover { color: var(--ink); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); border-radius: 0; }
.btn svg { transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--small { padding: 11px 20px; font-size: 13px; }
.btn--accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn--accent::before { background: var(--bone); }
.btn--accent:hover { border-color: var(--bone); }

/* ---------- shared section bits ---------- */
.section { padding: var(--s-5) var(--gutter); position: relative; }
.section__head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.section__title { font-size: clamp(48px, 13vw, 160px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.section__title em { color: var(--accent); }
.eyebrow { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--bone-dim); display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }

/* split-text helpers (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--nav-h) + 24px) var(--gutter) 56px; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 70% 40%, transparent 0%, rgba(7, 8, 10, 0.35) 55%, var(--ink) 100%), linear-gradient(to top, var(--ink) 0%, transparent 40%); }
.hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--s-3); }
.hero__title { font-size: clamp(52px, 15.5vw, 190px); font-weight: 700; line-height: 0.88; letter-spacing: -0.055em; text-transform: none; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero__title .line__in { display: inline-block; will-change: transform; }
.hero__title em { color: var(--accent); letter-spacing: -0.03em; padding-right: 0.06em; }
.hero__foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); margin-top: var(--s-2); }
.hero__lede { max-width: 460px; color: var(--bone-dim); font-size: 17px; }
.hero__scroll { display: none; }

@media (min-width: 768px) {
  .hero { padding-bottom: 64px; }
  .hero__foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero__scroll {
    display: flex; flex-direction: column; align-items: center; gap: 12px; position: absolute; right: var(--gutter); top: 50%; z-index: 2;
    font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; color: var(--bone-dim);
  }
  .hero__scroll i { width: 1px; height: 60px; background: var(--line); position: relative; overflow: hidden; }
  .hero__scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--accent); animation: drip 2s var(--ease) infinite; }
}
@keyframes drip { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--ink-2); padding: 18px 0; }
.marquee__track { display: flex; width: max-content; gap: 32px; animation: marquee 32s linear infinite; font-size: clamp(20px, 3.6vw, 36px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track b { color: var(--accent); font-weight: 400; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about__grid { display: grid; gap: var(--s-4); max-width: 1500px; }
.about__statement { font-size: clamp(28px, 6.4vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
.about__statement em { color: var(--accent); }
.about__side { display: grid; gap: var(--s-2); color: var(--bone-dim); max-width: 480px; font-size: 17px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--s-5); border-top: 1px solid var(--line); }
.stat { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); transition: background 0.4s; }
.stat:nth-child(odd) { padding-right: var(--s-2); border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: var(--s-2); }
.stat dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }
.stat dd { font-size: clamp(40px, 9vw, 96px); font-weight: 600; letter-spacing: -0.05em; line-height: 1.1; transition: color 0.3s; }
.stat:hover dd { color: var(--accent); }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.7fr 1fr; align-items: end; gap: var(--s-5); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: var(--s-3); border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ---------- services ---------- */
.svc { border-top: 1px solid var(--line); }
.svc__item { border-bottom: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 40px 1fr 32px; grid-template-areas: "no name arrow" ". desc desc" ". tags tags";
  gap: 8px 12px; align-items: center; padding: var(--s-3) 0; position: relative; isolation: isolate;
  transition: padding 0.6s var(--ease), color 0.4s;
}
.svc__row::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--accent); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.55s var(--ease); }
.svc__no { grid-area: no; font-family: var(--f-mono); font-size: 12px; color: var(--bone-dim); transition: color 0.3s; }
.svc__name { grid-area: name; font-size: clamp(34px, 8.5vw, 96px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.svc__desc { grid-area: desc; color: var(--bone-dim); max-width: 520px; transition: color 0.3s; }
.svc__tags { grid-area: tags; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); transition: color 0.3s; }
.svc__arrow { grid-area: arrow; font-size: 28px; text-align: right; transition: transform 0.5s var(--ease); }
.svc__row:hover, .svc__row:focus-visible { color: var(--ink); padding-left: 16px; }
.svc__row:hover::before, .svc__row:focus-visible::before { transform: scaleY(1); }
.svc__row:hover .svc__no, .svc__row:hover .svc__desc, .svc__row:hover .svc__tags { color: rgba(7, 8, 10, 0.75); }
.svc__row:hover .svc__arrow { transform: rotate(45deg) scale(1.2); }

@media (min-width: 900px) {
  .svc__row { grid-template-columns: 70px 1.4fr 1.2fr 0.8fr 48px; grid-template-areas: "no name desc tags arrow"; gap: 24px; padding: var(--s-4) 0; }
  .svc__desc { font-size: 15px; }
  .svc__row:hover { padding-left: 28px; padding-right: 28px; }
  .svc__row::before { inset: 0 calc(var(--gutter) * -1); }
}

/* ---------- work ---------- */
.work { padding-inline: 0; overflow: hidden; }
.work .section__head { padding-inline: var(--gutter); }
.work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) var(--s-3); scrollbar-width: none; }
.work__viewport::-webkit-scrollbar { display: none; }
.work__track { display: flex; gap: var(--s-2); width: max-content; }
.project { width: 78vw; max-width: 380px; scroll-snap-align: start; flex: none; }
.project__link { display: block; }
.project__art { aspect-ratio: 4 / 5; border-radius: 4px; position: relative; overflow: hidden; background: var(--ink-3); isolation: isolate; transition: transform 0.7s var(--ease), border-radius 0.7s var(--ease); }
.project__link:hover .project__art { transform: translateY(-8px); border-radius: 28px 4px 28px 4px; }
.project__art i { position: absolute; display: block; transition: transform 0.9s var(--ease); }
.project__meta { display: flex; justify-content: space-between; margin: var(--s-2) 0 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-dim); }
.project h3 { font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; position: relative; display: inline-block; }
.project h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.project__link:hover h3::after { transform: scaleX(1); }
.project p { color: var(--bone-dim); font-size: 15px; margin-top: 8px; max-width: 320px; }

/* generative project covers — pure CSS, swap for screenshots later */
.art--1 { background: linear-gradient(160deg, #10141a, #0a0c0f); }
.art--1 i:nth-child(1) { inset: 18% -10% auto -10%; height: 2px; background: var(--accent); transform: rotate(-24deg); box-shadow: 0 60px 0 var(--bone), 0 120px 0 var(--ember); }
.art--1 i:nth-child(2) { width: 46%; aspect-ratio: 1; right: 10%; bottom: 10%; border: 1px solid var(--bone-dim); border-radius: 50%; }
.art--1 i:nth-child(3) { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); left: 22%; bottom: 24%; box-shadow: 0 0 30px var(--accent); }
.project__link:hover .art--1 i:nth-child(1) { transform: rotate(-16deg) translateY(10px); }
.project__link:hover .art--1 i:nth-child(2) { transform: scale(1.25); }

.art--2 { background: var(--accent); }
.art--2 i:nth-child(1) { inset: 14% 14% auto 14%; height: 42%; background: var(--ink); border-radius: 26px; }
.art--2 i:nth-child(2) { inset: auto 14% 14% 14%; height: 24%; border: 2px solid var(--ink); border-radius: 18px; }
.art--2 i:nth-child(3) { width: 22%; aspect-ratio: 1; left: 22%; top: 24%; background: var(--accent); border-radius: 50%; }
.project__link:hover .art--2 i:nth-child(1) { transform: translateY(-10px) rotate(-2deg); }
.project__link:hover .art--2 i:nth-child(3) { transform: translateX(80px); }

.art--3 { background: var(--bone); }
.art--3 i:nth-child(1) { inset: 0 50% 0 0; background: var(--ink); clip-path: polygon(0 0, 100% 0, 60% 100%, 0 100%); }
.art--3 i:nth-child(2) { width: 60%; aspect-ratio: 1; right: -15%; top: 12%; background: var(--ember); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.art--3 i:nth-child(3) { left: 10%; right: 10%; bottom: 12%; height: 1px; background: var(--ink); box-shadow: 0 -14px 0 var(--ink), 0 -28px 0 var(--ink); }
.project__link:hover .art--3 i:nth-child(1) { transform: translateX(-12%); }
.project__link:hover .art--3 i:nth-child(2) { transform: rotate(40deg) scale(1.15); }

.art--4 { background: radial-gradient(circle at 30% 20%, #26301a, var(--ink-2) 65%); }
.art--4 i:nth-child(1) { inset: 20% 20% 30% 20%; border: 1px solid var(--accent); transform: rotate(45deg); }
.art--4 i:nth-child(2) { inset: 28% 28% 38% 28%; border: 1px solid var(--bone-dim); transform: rotate(45deg); }
.art--4 i:nth-child(3) { inset: 36% 36% 46% 36%; background: var(--accent); transform: rotate(45deg); }
.project__link:hover .art--4 i:nth-child(1) { transform: rotate(135deg) scale(1.1); }
.project__link:hover .art--4 i:nth-child(2) { transform: rotate(-45deg) scale(1.05); }
.project__link:hover .art--4 i:nth-child(3) { transform: rotate(225deg); }

@media (min-width: 900px) {
  .work { padding-inline: 0; }
  .work__viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
  .work__track { gap: var(--s-4); padding-right: var(--gutter); }
  .project { width: 30vw; max-width: 520px; }
}

/* ---------- contact ---------- */
.contact__title { font-size: clamp(36px, 9vw, 130px); font-weight: 600; letter-spacing: -0.05em; line-height: 0.98; max-width: 1200px; }
.contact__title em { color: var(--accent); }
.contact__grid { display: grid; gap: var(--s-5); margin-top: var(--s-5); }
.form { display: grid; gap: var(--s-3); align-content: start; }
.field { display: grid; gap: 6px; position: relative; }
.field span { font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--bone-dim); transition: color 0.3s; }
.field input, .field textarea { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 20px; outline: none; resize: vertical; transition: border-color 0.3s; border-radius: 0; }
.field:hover input, .field:hover textarea { border-color: var(--bone-dim); }
.field:focus-within span { color: var(--accent); }
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--ember); }
.field--phone > span { transition: color 0.3s; }
.phone { display: flex; gap: 14px; align-items: end; }
.phone select { background: none; color: inherit; font: inherit; font-size: 18px; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; max-width: 46%; outline: none; border-radius: 0; color-scheme: dark; cursor: pointer; transition: border-color 0.3s; }
.phone select:focus, .phone select:hover { border-color: var(--accent); }
.phone select option { background: #111; color: #fff; }
.phone input { flex: 1; min-width: 0; }
.field.is-invalid .phone select, .field.is-invalid .phone input { border-color: var(--ember); }
.form .btn { justify-self: start; }
.form__status { min-height: 1.5em; font-size: 14px; color: var(--accent); }
.form__status.is-error { color: var(--ember); }
.contact__info { display: grid; gap: var(--s-3); align-content: start; }
.contact__info li { display: flex; flex-direction: column; gap: 4px; padding-bottom: var(--s-2); border-bottom: 1px solid var(--line); }
.contact__info span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bone-dim); }
.contact__info a, .contact__info address { font-size: clamp(18px, 4.6vw, 26px); font-style: normal; font-weight: 500; letter-spacing: -0.02em; transition: color 0.3s; word-break: break-word; }
.contact__info a { margin-right: 18px; }
.contact__info a:hover { color: var(--accent); }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-6); } }

/* ---------- footer ---------- */
.footer { padding: var(--s-4) var(--gutter) var(--s-3); border-top: 1px solid var(--line); overflow: hidden; }
.footer__big { font-size: 21vw; font-weight: 800; letter-spacing: -0.07em; line-height: 0.8; color: transparent; -webkit-text-stroke: 1px var(--line); margin-bottom: var(--s-3); transition: -webkit-text-stroke-color 0.5s, color 0.5s; user-select: none; }
.footer:hover .footer__big { -webkit-text-stroke-color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: space-between; font-size: 13px; color: var(--bone-dim); }
.footer__top { transition: color 0.3s, transform 0.3s; }
.footer__top:hover { color: var(--accent); transform: translateY(-3px); }

/* ---------- initial states (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* share / remember-us block */
.contact__info .share { flex-direction: row; align-items: center; gap: var(--s-2); }
.share img { width: 96px; height: 96px; border-radius: 8px; flex: none; }
.share div { display: flex; flex-direction: column; gap: 6px; }
.share strong { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.share__save { font-size: 14px; color: var(--bone); border-bottom: 1px solid var(--line); align-self: flex-start; }
.share__save:hover { color: var(--accent); border-color: var(--accent); }
.footer__row a:hover { color: var(--accent); }

.nav__logo .hex { font-style: normal; font-weight: 300; color: var(--bone-dim); margin-left: 1px; transition: color 0.3s; }
.nav__logo:hover .hex { color: var(--accent); }
