/* ============================================================
   YOUNGER & TURNER — Site Styles
   White ground · black copy · sky blue accent
   Geometric sans display (matched to the wordmark),
   serif italic reserved for pull quotes.
   ============================================================ */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --blue: #6f7f9d;          /* sky blue — pack swatch #6F7F9D */
  --burnt: #573610;         /* burnt — pack swatch #573610 */
  --grey: #6f6a64;
  --hairline: rgba(0, 0, 0, 0.13);
  --sans: "Jost", "Futura", "Century Gothic", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --track: 0.16em;
  --gut: 40px;              /* page gutter */
  --header-h: 108px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

/* ---------- Type primitives ---------- */

.display {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 0.94;
}

.headline {
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.08;
  font-size: clamp(26px, 3.3vw, 48px);
}

.label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  line-height: 1.4;
}

.link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.link:hover { opacity: 0.5; }

.muted { color: var(--grey); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gut);
}

.site-header .logo { justify-self: center; }

.site-header .logo img { height: 52px; width: auto; }

.nav-left, .nav-right {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-right { justify-content: flex-end; }

.site-header nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.site-header nav a:hover,
.site-header nav a.active { border-bottom-color: var(--ink); }

.mobile-nav { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 10px 0;
}

/* ---------- Layout ---------- */

.pad { padding-left: var(--gut); padding-right: var(--gut); }

.section { padding: 92px var(--gut); }

.section--tight { padding-top: 56px; padding-bottom: 56px; }

.section--flush { padding-top: 0; }

.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0 var(--gut); }

/* Section header row: label left, link right, hairline under */

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--gut) 16px;
  border-bottom: 1px solid var(--blue);
  margin-bottom: 40px;
}

.row-head h2 { font-size: 12px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; }

/* ---------- Hero ---------- */

.hero { position: relative; }

.hero-media img {
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 460px;
  object-fit: cover;
}

.hero-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 32px var(--gut) 0;
}

.hero-caption h1 {
  font-size: clamp(38px, 7.6vw, 118px);
  max-width: 16ch;
}

.hero-links { display: flex; gap: 28px; padding-bottom: 10px; }

/* ---------- Marquee band ---------- */

.motto {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 26px var(--gut);
  text-align: center;
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

/* ---------- Editorial split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.split--wide { grid-template-columns: 0.9fr 1.1fr; }

.split p { margin-bottom: 18px; max-width: 62ch; }

.split .headline { margin-bottom: 26px; }

.sticky { position: sticky; top: calc(var(--header-h) + 24px); }

.prose { max-width: 66ch; }

.prose p { margin-bottom: 18px; }

.prose .headline { margin-bottom: 28px; }

/* Full-width prose — copy spans the whole page rather than sitting to one
   side, set in two magazine-style columns so lines stay readable. */
.prose--full { max-width: none; column-count: 2; column-gap: 64px; }

.prose--full .headline { column-span: all; margin-bottom: 28px; }

.prose--full p { break-inside: avoid; margin-bottom: 18px; max-width: none; }

/* ---------- Practice list ---------- */

.practice {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.practice h2 {
  font-size: clamp(30px, 4.4vw, 62px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.94;
}

.practice ul { list-style: none; }

.practice li {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.55;
}

.practice li::before { content: "— "; color: var(--blue); }

/* ---------- Product / project grid ---------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 var(--gut);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0 var(--gut); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gut); }

.tile figcaption, .tile .cap {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-top: 12px;
  color: var(--ink);
}

.tile .cap span { display: block; color: var(--grey); font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; margin-top: 4px; }

/* ---------- Full-bleed media ---------- */

.bleed { margin: 0; }

.bleed img { width: 100%; height: auto; }

.bleed--tall img { height: 88vh; min-height: 440px; object-fit: cover; }

/* Taller crop that keeps more of the frame visible — e.g. the dining table
   below the pendant light, rather than tightly cropping to the light alone. */
.bleed--table img { height: 168vh; min-height: 620px; max-height: 1500px; object-fit: cover; object-position: center 62%; }

/* Taller hero crop for detail shots like staircases, where more of the
   vertical frame needs to stay visible. */
.bleed--stair img { height: 130vh; min-height: 600px; max-height: 1400px; object-fit: cover; }

.bleed-caption {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--gut) 0;
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
}

/* Offset editorial pair */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 0 var(--gut); }

.duo--offset > *:nth-child(2) { margin-top: 88px; }

.duo--narrow { grid-template-columns: 0.62fr 0.38fr; align-items: end; }

/* Individual founder portraits, side by side — full, uncropped photos at
   their natural size, stepped like the other editorial pairs on the page
   rather than forced into a matching crop. */
.duo--portraits img { width: 100%; height: auto; }

figure { margin: 0; }

figcaption {
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 12px;
}

/* ---------- Overlay panels ---------- */

.panels { display: grid; grid-template-columns: 1fr 1fr; }

.panel {
  position: relative;
  z-index: 0;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
  color: var(--paper);
}

.panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
}

.panel h2 {
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.98;
}

.panel .link { align-self: flex-start; }

/* ---------- Quote ---------- */

.quote { text-align: center; max-width: 26ch; margin: 0 auto; }

.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3.6vw, 50px);
  line-height: 1.24;
  letter-spacing: -0.01em;
}

.quote .label { display: block; margin-top: 32px; color: var(--grey); }

/* Two-line variant — line break is set in the markup */
.quote--pair { max-width: 54ch; }

.quote--pair p { font-size: clamp(16px, 3.1vw, 44px); line-height: 1.3; }

/* ---------- Page intro ---------- */

.page-intro { padding: 76px var(--gut) 56px; }

.page-intro h1 {
  font-size: clamp(40px, 7vw, 104px);
  max-width: 15ch;
  margin-top: 22px;
}

.page-intro .standfirst {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--grey);
  margin-top: 24px;
  max-width: 54ch;
}

/* ---------- Project index ---------- */

.project-index { list-style: none; }

.project-card { display: block; padding: 0 var(--gut) 72px; }

.project-card .frame { overflow: hidden; }

.project-card img {
  width: 100%;
  height: 74vh;
  min-height: 400px;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}

.project-card:hover img { transform: scale(1.03); }

.project-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-top: 22px;
}

.project-meta h2 {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.project-meta .sub {
  font-size: 11px;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 10px;
}

/* ---------- Project facts ---------- */

.facts { list-style: none; border-top: 1px solid var(--ink); max-width: 760px; }

.facts li {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}

.facts .k { font-size: 11px; font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--grey); }

.facts .v { font-size: 15px; }

/* ---------- CTA band ---------- */

.cta-band { background: var(--blue); color: var(--paper); text-align: center; padding: 96px var(--gut); }

.cta-band h2 { font-size: clamp(30px, 5vw, 72px); margin: 18px 0 34px; }

/* ---------- Form ---------- */

.form { max-width: 820px; }

.field { margin-bottom: 38px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.field .hint { color: var(--grey); font-size: 13px; margin-bottom: 10px; max-width: 58ch; }

.field input[type="text"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  border-radius: 0;
  outline: none;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23000000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  cursor: pointer;
}

.field textarea { min-height: 130px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: #aaa5a0; }

.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--blue); border-bottom-width: 2px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }

.submit-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 20px 60px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.submit-btn:hover { color: var(--paper); }

.submit-btn:hover { background: var(--blue); border-color: var(--blue); }

.form-note {
  display: none;
  margin-top: 24px;
  padding: 18px 22px;
  border: 1px solid var(--hairline);
  color: var(--grey);
  font-size: 13px;
}

.form-note.visible { display: block; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--hairline); padding: 72px var(--gut) 36px; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.footer-mark img { width: 100%; max-width: 460px; height: auto; }

.footer-col { list-style: none; }

.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 13px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-col a:hover { border-bottom-color: var(--ink); }

.footer-sign .label { display: block; margin-bottom: 18px; }

.footer-sign p { font-size: 13px; color: var(--grey); margin-bottom: 16px; max-width: 34ch; }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}


/* ---------- Newsletter modal ---------- */

.nl-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nl-overlay.open { display: flex; }

.nl-overlay.in { opacity: 1; }

.nl-modal {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.35s ease;
}

.nl-overlay.in .nl-modal { transform: translateY(0); }

.nl-close {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  padding: 6px;
}

.nl-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.nl-strip img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }

.nl-body { text-align: center; padding: 44px 44px 40px; }

.nl-body .label { display: block; color: var(--grey); margin-bottom: 22px; }

.nl-body h2 {
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.005em;
  max-width: 30ch;
  margin: 0 auto 18px;
}

.nl-body p {
  font-size: 15px;
  color: var(--grey);
  max-width: 48ch;
  margin: 0 auto 8px;
}

.nl-signature {
  font-family: var(--serif);
  font-style: italic;
  color: var(--grey);
  font-size: 14px;
  margin-top: 4px;
}

.nl-btn {
  display: inline-block;
  margin-top: 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  padding: 18px 52px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nl-btn:hover { background: var(--blue); border-color: var(--blue); color: var(--paper); }

.nl-logo { margin-top: 34px; }

.nl-logo img { height: 13px; width: auto; margin: 0 auto; }

body.nl-lock { overflow: hidden; }

@media (max-width: 640px) {
  .nl-strip { grid-template-columns: repeat(3, 1fr); }

  .nl-strip img:nth-child(4), .nl-strip img:nth-child(5) { display: none; }

  .nl-body { padding: 34px 24px 30px; }
}

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s ease; }

.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  :root { --gut: 20px; --header-h: 76px; }

  .site-header { grid-template-columns: auto 1fr auto; }

  .site-header .logo { justify-self: start; }

  .site-header .logo img { height: 34px; }

  .nav-left, .nav-right { display: none; }

  .nav-toggle { display: block; justify-self: end; grid-column: 3; }

  .mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px var(--gut) 20px;
  }

  .mobile-nav.open { display: flex; }

  .mobile-nav a {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    padding: 13px 0;
  }

  .hero-media img { height: 62vh; }

  .hero-caption { flex-direction: column; align-items: flex-start; gap: 22px; }

  .hero-caption h1 { max-width: none; }

  .section { padding-top: 60px; padding-bottom: 60px; }

  .split, .split--wide, .practice, .two-col, .duo, .duo--narrow, .panels { grid-template-columns: 1fr; gap: 36px; }

  .duo--offset > *:nth-child(2) { margin-top: 0; }

  .sticky { position: static; }

  .prose--full { column-count: 1; }

  .grid-4, .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }

  .grid-2 { grid-template-columns: 1fr; }

  .panel { min-height: 52vh; padding: 24px; }

  .project-card img { height: 52vh; }

  .project-meta { flex-direction: column; gap: 14px; }

  .facts li { grid-template-columns: 1fr; gap: 2px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }

  .footer-mark { grid-column: 1 / -1; }

  .footer-sign { grid-column: 1 / -1; }

  .motto { letter-spacing: 0.22em; }
}
