/* ============================================
   NorthLine Metal — design tokens
   Refined craftsman: warm neutrals, serif editorial
   ============================================ */

:root {
  /* Palette — warm neutral foundation */
  --bone: #f3efe8;
  --bone-2: #ebe5da;
  --paper: #f8f5ef;
  --ink: #1a1714;
  --ink-soft: #2a2520;
  --dust: #6b5d4f;
  --dust-soft: #8a7d6e;
  --rule: #d9d2c5;
  --rule-soft: #e4dfd4;

  /* Metals */
  --bronze: #8b5e34;
  --bronze-deep: #6b4626;
  --brass: #b8843d;
  --iron: #3a342e;

  /* Type */
  --font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --font-sans: "Geist", "Söhne", "Inter Tight", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Density */
  --section-y: 160px;
  --gutter: 56px;
  --max-w: 1440px;

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

[data-density="compact"] {
  --section-y: 110px;
  --gutter: 40px;
}
[data-density="airy"] {
  --section-y: 200px;
  --gutter: 72px;
}

/* Palette variants exposed to tweaks */
[data-palette="bone"]  { --bg: var(--bone);  --bg-alt: var(--paper); --fg: var(--ink); --accent: var(--bronze); }
[data-palette="ink"]   { --bg: #181513;      --bg-alt: #1f1c19;     --fg: #ece6da;    --accent: #c89868;
                         --dust: #9c8d7c; --rule: #2c2723; --rule-soft: #25211d; --bone-2: #1f1c19; }
[data-palette="paper"] { --bg: #faf7f1;      --bg-alt: #f3efe8;     --fg: #1a1714;    --accent: #6b4626;
                         --bone-2: #f0ebe1; }

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "kern";
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- type system ---------- */
.serif    { font-family: var(--font-display); font-weight: 400; }
.serif-it { font-family: var(--font-display); font-weight: 400; font-style: italic; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dust);
  font-weight: 500;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(56px, 9vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.display-l {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display-m {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.lede {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.body-sm { font-size: 14px; line-height: 1.55; color: var(--dust); }

/* ---------- photo placeholder slots ---------- */
.photo-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bone-2);
  transition: transform 1s var(--ease);
}
.photo-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 80%, transparent 40%, color-mix(in srgb, var(--ink) 18%, transparent));
  pointer-events: none;
}
.photo-slot-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 2;
}
.photo-slot-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
  z-index: 2;
  opacity: 0.7;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); position: relative; }
.hairline { height: 1px; background: var(--rule); width: 100%; }
.hairline-soft { height: 1px; background: var(--rule-soft); width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav[data-stuck="true"] {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
  padding-top: 16px;
  padding-bottom: 16px;
}
.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav-logo .mark {
  display: inline-block;
  width: 22px; height: 22px;
  transform: translateY(3px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}
.nav-link:hover::after { right: 0; }
.nav-link[data-active="true"]::after { right: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn .arrow { display: inline-flex; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover { gap: 16px; }

/* ---------- hero ---------- */
.hero {
  padding-top: 140px;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 60px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: end;
  padding-bottom: 60px;
}
.hero-title { margin: 0; }
.hero-title .ital { font-style: italic; font-weight: 380; }
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 12px;
}
.hero-image-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr 0.45fr;
  gap: 24px;
  padding-bottom: 80px;
  align-items: end;
}
.hero-image-row .img-card { position: relative; overflow: hidden; }
.hero-image-row .img-card img {
  width: 100%;
  aspect-ratio: var(--ratio, 4/5);
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.hero-image-row .img-card:hover img { transform: scale(1.04); }
.hero-image-row .img-card .caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* marquee strip */
.marquee {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  padding: 22px 0;
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 60s linear infinite;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--dust);
}
.marquee-track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee-track .dot { width: 6px; height: 6px; background: var(--bronze); border-radius: 50%; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- intro / values ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.intro-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.intro-eyebrow-row .num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.intro-eyebrow-row .rule { flex: 1; height: 1px; background: var(--rule); }

/* ---------- services ---------- */
.services-head {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 80px;
}
.services-list {
  border-top: 1px solid var(--rule);
}
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.4fr 220px;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  cursor: pointer;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
}
.service-row::before {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.5s var(--ease);
}
.service-row:hover::before { width: 100%; }
.service-row:hover { padding-left: 14px; padding-right: 14px; }
.service-row .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dust);
  letter-spacing: 0.08em;
}
.service-row .title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.service-row .title .ital { font-style: italic; }
.service-row .desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 52ch;
}
.service-row .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dust);
  text-align: right;
}
.service-row .meta strong { color: var(--ink); font-weight: 500; display: block; margin-top: 4px; font-size: 12px; }

/* ---------- gallery strip ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
}
.gallery .tile {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.gallery .tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  transition: transform 1s var(--ease);
}
.gallery .tile:hover img { transform: scale(1.05); }
.gallery .tile .label {
  position: absolute;
  bottom: 14px; left: 14px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- process / how we work ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.process-step {
  border-top: 1px solid var(--ink);
  padding-top: 24px;
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 12px 0 12px;
  line-height: 1.1;
}
.process-step h4 .ital { font-style: italic; }
.process-step p { font-size: 14px; line-height: 1.55; color: var(--dust); margin: 0; }

/* ---------- contact ---------- */
.contact {
  background: var(--bone-2);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.contact-left h2 { margin: 0 0 32px; }
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 32px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 10px;
}
.contact-info dd {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

/* form */
.form {
  background: var(--bg);
  padding: 48px;
  border: 1px solid var(--rule);
}
.form h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.form .sub { font-size: 14px; color: var(--dust); margin: 0 0 32px; }
.field { margin-bottom: 22px; position: relative; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dust);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--ink);
}
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236b5d4f' fill='none' stroke-width='1.2'/></svg>"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 24px; cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  background: transparent;
}
.chip:hover { border-color: var(--ink); }
.chip[data-on="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.form-submit {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

.form-success {
  text-align: center;
  padding: 60px 20px;
}
.form-success .mark-anim {
  display: inline-block;
  width: 56px; height: 56px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  position: relative;
  margin-bottom: 24px;
}
.form-success .mark-anim::after {
  content: "";
  position: absolute;
  left: 18px; top: 27px;
  width: 8px; height: 16px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}

/* ---------- footer ---------- */
.footer {
  background: var(--ink);
  color: var(--bone);
  padding: 100px var(--gutter) 32px;
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 80px;
  border-bottom: 1px solid color-mix(in srgb, var(--bone) 18%, transparent);
}
.footer-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 55%, transparent);
  margin: 0 0 20px;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { font-size: 15px; transition: color 0.2s var(--ease); }
.footer-grid a:hover { color: var(--brass); }
.footer-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  max-width: 16ch;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--bone) 50%, transparent);
}

/* ---------- giant brand mark ---------- */
.brand-bleed {
  font-family: var(--font-display);
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  padding: 0 var(--gutter) 40px;
  margin: 0;
  white-space: nowrap;
}
.brand-bleed .ital { font-style: italic; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  :root { --gutter: 28px; --section-y: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-row { grid-template-columns: 1fr 1fr; }
  .hero-image-row .img-card:nth-child(3) { display: none; }
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .services-head { grid-template-columns: 1fr; gap: 24px; }
  .service-row { grid-template-columns: 40px 1fr; gap: 16px; padding: 28px 0; }
  .service-row .desc, .service-row .meta { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .brand-bleed { font-size: 22vw; }
}
