/* ═══════════════════════════════════════════════
   NORTHLINE STUDIO — dark luxury, cartographic
   ═══════════════════════════════════════════════ */

:root {
  --ink: #0A0E14;        /* midnight fathom */
  --ink-2: #0E131C;      /* raised surface */
  --ink-3: #141B27;      /* card surface */
  --chalk: #EDE8DF;      /* warm off-white */
  --muted: #8E95A3;      /* cool grey */
  --brass: #C9A86A;      /* brushed brass */
  --brass-hi: #E3C98F;   /* polished brass */
  --ice: #A9BDD1;        /* icy hairline blue */
  --line: rgba(237, 232, 223, 0.09);

  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-gap: clamp(6rem, 14vh, 11rem);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--brass); color: var(--ink); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

/* Skip link: hidden until keyboard-focused */
.skip-link {
  position: fixed;
  top: 0.85rem;
  left: 50%;
  transform: translate(-50%, -300%);
  z-index: 100;
  background: var(--brass);
  color: var(--ink);
  padding: 0.8rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.3s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ── Buttons ────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}
.btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); }

.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: rgba(237, 232, 223, 0.25);
}
.btn-ghost:hover { background: transparent; border-color: var(--brass); color: var(--brass-hi); }

.btn-small { padding: 0.7rem 1.5rem; font-size: 0.6875rem; }
.btn-wide { width: 100%; text-align: center; }

.text-link {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border-bottom: 1px solid rgba(201, 168, 106, 0.35);
  padding-bottom: 0.35rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.text-link:hover { color: var(--brass-hi); border-color: var(--brass-hi); }
.text-link span { display: inline-block; transition: transform 0.3s ease; }
.text-link:hover span { transform: translate(3px, -3px); }

/* ── Spine (the Northline) ──────────────────── */

.spine {
  position: fixed;
  left: 2.25rem;
  top: 0;
  height: 100vh;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0 1.75rem;
  pointer-events: none;
}
.spine-n {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--brass);
}
.spine-track {
  flex: 1;
  width: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.spine-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--brass), var(--brass-hi));
  transform: scaleY(0);
  transform-origin: top;
}
.spine-label {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  max-height: 9rem;
  white-space: nowrap;
}

/* ── Navigation ─────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem var(--gutter);
  transition: background 0.5s ease, padding 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: var(--chalk);
}
.nav-brand sup { font-size: 0.5em; color: var(--brass); }
.nav-links { display: flex; gap: 2.2rem; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}
.nav-links a:hover { color: var(--brass-hi); }
.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 26px; height: 1px;
  background: var(--chalk);
  transition: transform 0.35s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Menu overlay ───────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu-links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  line-height: 1.2;
  color: var(--chalk);
  transition: color 0.3s ease;
}
.menu-links a:hover { color: var(--brass); }
.menu-links a em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--brass);
  margin-right: 1.25rem;
  vertical-align: super;
}
.menu-foot { position: absolute; bottom: 2rem; color: var(--muted); }

/* ── Hero ───────────────────────────────────── */

.hero {
  min-height: 100vh;
  min-height: 100svh; /* stable on mobile browsers with collapsing URL bars */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 8rem var(--gutter) 3rem;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 58% 46% at 50% 44%, rgba(201, 168, 106, 0.13), transparent 70%),
    radial-gradient(ellipse 75% 60% at 50% 50%, rgba(169, 189, 209, 0.08), transparent 75%);
}

.compass {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(480px, 96vmin, 880px);
  height: auto;
  transform: translate(-50%, -51%);
  color: var(--ice);
  opacity: 0.55;
  pointer-events: none;
}
.cardinal {
  font-family: var(--font-display);
  font-size: 21px;
  fill: currentColor;
  opacity: 0.75;
}
.cardinal-n {
  font-size: 27px;
  fill: var(--brass-hi);
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(227, 201, 143, 0.7));
}
.needle-n {
  fill: var(--brass-hi);
  filter: drop-shadow(0 0 12px rgba(227, 201, 143, 0.95)) drop-shadow(0 0 30px rgba(201, 168, 106, 0.55));
}
.needle-s {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.65;
}
.needle-hub {
  fill: var(--brass-hi);
  filter: drop-shadow(0 0 8px rgba(227, 201, 143, 0.9));
}

.hero-inner { position: relative; max-width: 62rem; margin: 0 auto; }

.eyebrow { color: var(--brass); margin-bottom: 2rem; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.hero-title em { color: var(--brass); }

.mask { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask-inner { display: block; }

.hero-sub {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.75rem; }

.hero-foot {
  position: absolute;
  bottom: 2.25rem;
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.hero-scroll .scroll-arrow { display: inline-block; animation: bob 2.2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── Marquee ────────────────────────────────── */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.6rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track { display: inline-flex; animation: marquee 26s linear infinite; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 232, 223, 0.28);
  padding-right: 0.5em;
}
.marquee-track i { color: var(--brass); -webkit-text-stroke: 0; font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Sections (shared) ──────────────────────── */

.section { padding: var(--section-gap) var(--gutter); }

.section-head { margin-bottom: clamp(3rem, 7vh, 5.5rem); }
.section-head .eyebrow { margin-bottom: 1.25rem; }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1.05;
}
.section-title em { color: var(--brass); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin-top: 1.5rem; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.45rem 0.9rem;
}

/* ── Services ───────────────────────────────── */

.services { position: relative; }
.services .section-head,
.services .service-rows { position: relative; z-index: 1; }

/* Glowing route line weaving through the compass points */
.services-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.flow-glow {
  fill: none;
  stroke: rgba(201, 168, 106, 0.4);
  stroke-width: 7;
  stroke-linecap: round;
  filter: blur(7px);
}
.flow-core {
  fill: none;
  stroke: var(--brass-hi);
  stroke-width: 1.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(227, 201, 143, 0.9));
}
.flow-head {
  fill: var(--brass-hi);
  filter: drop-shadow(0 0 10px rgba(227, 201, 143, 1)) drop-shadow(0 0 22px rgba(201, 168, 106, 0.8));
  opacity: 0;
}

.service-rows { border-top: 1px solid var(--line); }

.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr 1.4fr 3rem;
  align-items: center;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding-left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-row:hover { padding-left: 1.25rem; }

.service-point {
  font-size: 0.8rem;
  color: var(--brass);
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 50%;
  width: 2.6rem; height: 2.6rem;
  display: grid;
  place-items: center;
  transition: background 0.35s ease, color 0.35s ease;
}
.service-row:hover .service-point { background: var(--brass); color: var(--ink); }

.service-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.05;
  transition: color 0.35s ease;
}
.service-row:hover .service-name { color: var(--brass-hi); }

.service-body p { color: var(--muted); max-width: 30rem; }
.service-body .tags { margin-top: 1.1rem; }

.service-arrow {
  font-size: 1.4rem;
  color: var(--brass);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ── Process (voyage timeline) ──────────────── */

.process { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.voyage {
  --rail: 3.75rem;
  position: relative;
  max-width: 52rem;
  padding-left: var(--rail);
}
.voyage-line {
  position: absolute;
  left: 4px;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 1px;
  background: var(--line);
}
.voyage-fill {
  position: absolute;
  inset: 0;
  display: block;
  background: linear-gradient(to bottom, var(--brass), var(--brass-hi));
  transform: scaleY(0);
  transform-origin: top;
  filter: drop-shadow(0 0 6px rgba(201, 168, 106, 0.7));
}

.leg {
  position: relative;
  padding: clamp(2.25rem, 5vh, 3.25rem) 0;
}
.leg::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--rail) + 4px);
  top: calc(clamp(2.25rem, 5vh, 3.25rem) + 0.3rem);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--ink-2);
  transform: translateX(-50%);
  transition: background 0.5s ease, box-shadow 0.5s ease;
}
.leg.is-passed::before {
  background: var(--brass);
  box-shadow: 0 0 14px rgba(201, 168, 106, 0.85);
}

.leg-no {
  color: var(--brass);
  font-size: 0.75rem;
  display: block;
  margin-bottom: 1rem;
}
.leg-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin-bottom: 1rem;
}
.leg p { color: var(--muted); max-width: 36rem; }
.leg-list {
  list-style: none;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  color: var(--muted);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.leg-list li::before { content: "— "; color: var(--brass); }

/* ── Work ───────────────────────────────────── */

.case {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.case-visual { perspective: 1200px; display: block; position: relative; }
.case-visual-link { position: absolute; inset: 0; z-index: 2; border-radius: 10px; }

.browser {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-visual:hover .browser { transform: translateY(-8px); }

.browser-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(237, 232, 223, 0.15); }
.browser-url { color: var(--muted); font-size: 0.625rem; margin-left: 0.9rem; letter-spacing: 0.08em; }

/* Live embed of the client site, scaled to fit the frame */
.browser-viewport {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #101620;
  position: relative;
}
.browser-frame {
  width: 200%;
  height: 200%;
  transform: scale(0.5);
  transform-origin: 0 0;
  border: 0;
  display: block;
  pointer-events: none;
  background: #101620;
}

.case-meta { color: var(--brass); margin-bottom: 1.25rem; }
.case-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
.case-desc { color: var(--muted); }

.case-next {
  display: block;
  margin-top: clamp(3rem, 6vh, 5rem);
  border: 1px dashed rgba(237, 232, 223, 0.2);
  border-radius: 4px;
  padding: clamp(2rem, 5vw, 3.5rem);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.case-next:hover { border-color: var(--brass); background: rgba(201, 168, 106, 0.04); }
.case-next p { color: var(--muted); margin-bottom: 0.9rem; }
.case-next h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}
.case-next em { color: var(--brass); }

/* ── Pricing ────────────────────────────────── */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--ink-2);
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.4s ease, transform 0.4s ease;
}
.price-card:hover { border-color: rgba(201, 168, 106, 0.45); transform: translateY(-6px); }

.price-featured {
  border-color: rgba(201, 168, 106, 0.55);
  background: var(--ink-3);
  box-shadow: 0 24px 80px -24px rgba(201, 168, 106, 0.22);
}
.price-flag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brass);
  color: var(--ink);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.5625rem;
  white-space: nowrap;
}

.price-tier { color: var(--brass); margin-bottom: 1.5rem; }
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.price-amount em { font-size: 0.4em; color: var(--muted); margin-right: 0.4rem; }
.price-desc { color: var(--muted); font-size: 0.975rem; margin-bottom: 1.75rem; }

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  margin-bottom: 2.25rem;
  flex: 1;
  font-size: 0.95rem;
}
.price-list li::before { content: "◆ "; color: var(--brass); font-size: 0.6em; vertical-align: 2px; margin-right: 0.4rem; }

/* Care strip */

.care-strip {
  margin-top: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2.25rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(100deg, rgba(201, 168, 106, 0.07), transparent 45%);
}
.care-label { color: var(--brass); max-width: 12rem; line-height: 1.8; }
.care-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.care-plan h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.care-plan h3 .mono { color: var(--brass); }
.care-plan p { color: var(--muted); font-size: 0.95rem; }

/* ── Studio ─────────────────────────────────── */

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.studio-copy {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  line-height: 1.65;
  color: var(--chalk);
}

.testimonial {
  position: relative;
  border-left: 1px solid var(--brass);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: -3.25rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(5rem, 9vw, 7.5rem);
  line-height: 1;
  color: rgba(201, 168, 106, 0.4);
  pointer-events: none;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  color: var(--chalk);
}
.t-cite { margin-top: 1.5rem; color: var(--brass); }

/* Carousel: slides stack in one grid cell and crossfade */
.testimonial-track { display: grid; }
.t-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0.7s;
}
.t-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.testimonial-nav { display: flex; gap: 0.25rem; margin-top: 1.5rem; margin-left: -8px; }
/* Buttons are 24px for comfortable touch targets; the visible dot is drawn inside */
.t-dot {
  position: relative;
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.t-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--brass);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.t-dot.is-active::before {
  background: var(--brass);
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.7);
}

/* ── Contact ────────────────────────────────── */

.contact { border-top: 1px solid var(--line); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 1.75rem; }

.field { display: flex; flex-direction: column; gap: 0.65rem; }
.field label { color: var(--brass); font-size: 0.625rem; }

.field input,
.field select,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(237, 232, 223, 0.2);
  padding: 0.6rem 0 0.9rem;
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 1.05rem;
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field select { cursor: pointer; }
.field select option { background: var(--ink-2); color: var(--chalk); }
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field ::placeholder { color: rgba(142, 149, 163, 0.55); }

.contact-form .btn { margin-top: 0.5rem; }
.form-note {
  color: var(--muted);
  text-align: center;
  min-height: 1.2em; /* reserve space so the layout doesn't jump on submit */
  transition: color 0.3s ease;
}
.form-note.is-ok { color: var(--brass-hi); }
.form-note.is-error { color: #E0796B; }

/* Honeypot — off-screen for bots, invisible and unfocusable for people */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Submitting state */
.contact-form.is-sending { opacity: 0.75; }
.contact-form.is-sending button[type="submit"] { pointer-events: none; }

.contact-aside { position: relative; }
/* Slow-turning dashed bearing ring behind the email */
.contact-aside::before {
  content: "";
  position: absolute;
  width: clamp(240px, 26vw, 360px);
  height: clamp(240px, 26vw, 360px);
  top: -3rem;
  left: 40%;
  transform: translateX(-50%);
  border: 1px dashed rgba(201, 168, 106, 0.22);
  border-radius: 50%;
  animation: ring-turn 90s linear infinite;
  pointer-events: none;
}
@keyframes ring-turn { to { transform: translateX(-50%) rotate(360deg); } }

.contact-aside p { color: var(--muted); margin-bottom: 1.5rem; }
.contact-email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  color: var(--chalk);
  transition: color 0.35s ease;
}
.contact-email:hover { color: var(--brass-hi); }

/* ── Background compass ornaments ───────────── */

.process, .pricing { position: relative; overflow: hidden; }
.process > *, .pricing > * { position: relative; z-index: 1; }
.process .ornament, .pricing .ornament {
  position: absolute;
  z-index: 0;
  height: auto;
  color: var(--ice);
  opacity: 0.09;
  pointer-events: none;
}
.ornament-process {
  width: clamp(360px, 46vw, 640px);
  top: 6%;
  right: -14%;
}
.ornament-pricing {
  width: clamp(300px, 38vw, 540px);
  bottom: -8%;
  left: -12%;
}

/* ── Star charts (lower sections) ───────────── */

.studio, .contact { position: relative; }
.studio > *, .contact > * { position: relative; z-index: 1; }
.studio .starfield, .contact .starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  border-radius: 50%;
  background: rgba(169, 189, 209, 0.5);
  box-shadow: 0 0 6px rgba(169, 189, 209, 0.45);
  animation: twinkle 4s ease-in-out infinite;
}
.star-brass {
  background: rgba(227, 201, 143, 0.65);
  box-shadow: 0 0 8px rgba(201, 168, 106, 0.55);
}
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ── Footer ─────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 8vh, 6rem) var(--gutter) 2rem;
  overflow: hidden;
}

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12.5vw, 13rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 168, 106, 0.45);
  margin-bottom: clamp(9rem, 15vh, 13rem);
  user-select: none;
  /* Decorative only — never let it intercept clicks on the links below it. */
  pointer-events: none;
}
.footer-mark span {
  display: inline-block;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.footer-h { color: var(--brass); margin-bottom: 1.25rem; }
.footer-grid a {
  display: block;
  color: var(--muted);
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.footer-grid a:hover { color: var(--chalk); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.75rem;
  color: var(--muted);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1100px) {
  .spine { display: none; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .service-row { grid-template-columns: 3rem 1fr; grid-template-rows: auto auto; gap: 1rem 1.5rem; padding: 2.25rem 0; }
  .service-body { grid-column: 2; }
  .service-arrow { display: none; }
  .service-row:hover { padding-left: 0; }

  .voyage { --rail: 2rem; }

  .case { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; gap: 2rem; }
  .care-strip { grid-template-columns: 1fr; }
  .care-plans { grid-template-columns: 1fr; gap: 1.5rem; }
  .studio-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-aside { order: -1; }
  .contact-email br { display: none; }
  .compass { opacity: 0.38; }
}

@media (max-width: 600px) {
  .nav-right .btn { display: none; }
  .hero { padding-top: 7rem; }
  .hero-foot { flex-direction: column; gap: 0.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

/* Cheaper rendering on phones: blurred glow layers are expensive to paint */
@media (max-width: 700px) {
  .flow-glow { display: none; }
  .flow-core { filter: drop-shadow(0 0 5px rgba(227, 201, 143, 0.85)); }
}

/* Short landscape phones: let the hero size to its content */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: 0; padding-top: 6.5rem; padding-bottom: 4.5rem; }
  .compass { width: 440px; opacity: 0.3; }
  .hero-foot { position: static; margin-top: 2.5rem; }
}

/* ── Reduced motion ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .hero-scroll .scroll-arrow { animation: none; }
  .star { animation: none; }
  .contact-aside::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
