/* North 27 Studio — homepage only.
   Scoped to <body class="studio"> so /privacy, /terms, /company and the
   product pages keep the dark site.css treatment untouched.

   Palette sampled from the reference art direction (2026-10-06):
   warm cream ground, near-black ink with a blue/green undertone,
   antique gold, midnight navy, muted teal, olive/sage.
   Type does the work. Ornament sits still. */

:root {
  --cream:        #f0e7dd;  /* hero band */
  --cream-lo:     #f7efe7;  /* lower band, one step lighter */
  --card-cream:   #eadfd1;
  --ink:          #0c1e26;  /* near-black, blue/green undertone */
  --ink-soft:     #2b3b42;
  --ink-mute:     #5a6166;
  --gold:         #a98448;  /* antique / brushed — rules, ornament, the star */
  --gold-ink:     #7d5f2f;  /* the same gold darkened to clear AA as small text */
  --gold-lo:      #c9a86f;
  --navy:         #11212c;
  --night:        #0d181c;
  --teal:         #3f6b72;
  --sage:         #6f7a58;
  --rule:         rgba(12, 30, 38, 0.18);
  --rule-faint:   rgba(12, 30, 38, 0.10);

  --display: "Playfair Display", "Spectral", Georgia, "Times New Roman", serif;
  --text:    "Spectral", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4.75rem);
}

body.studio {
  margin: 0;
  background: var(--cream-lo);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body.studio * { box-sizing: border-box; }

/* the one shared horizontal measure — every band aligns to it */
.studio .bound {
  padding-inline: var(--gutter);
}

/* ---------- small uppercase label: nav, eyebrows, subtitles ---------- */

.studio .label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- masthead ---------- */

.studio .masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  flex-wrap: wrap;
  padding-block: clamp(1.1rem, 2.4vw, 1.6rem);
}

.studio .wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.studio .wordmark .star {
  flex: none;
  align-self: center;
  color: var(--gold);
  margin-right: 0.15rem;
}

/* the emphasis on 27: larger, gold, and set in the display serif's
   lining figures so it sits as a numeral rather than as more caps */
.studio .wordmark .n27 {
  color: var(--gold);
  font-size: 1.45em;
  letter-spacing: 0.04em;
  padding-inline: 0.06em;
}

.studio .mainnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.5rem, 3.4vw, 3.25rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.studio .mainnav a {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.studio .mainnav a:hover,
.studio .mainnav a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }

.studio .mainnav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ---------- hero ---------- */

.studio .hero {
  background: var(--cream);
  border-top: 1px solid var(--rule-faint);
  overflow: hidden;
}

.studio .hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
  min-height: clamp(26rem, 46vw, 36rem);
  padding-right: 0;           /* the art bleeds to the right edge */
}

.studio .hero-copy { padding-block: clamp(3rem, 6vw, 4.5rem); }

.studio .eyebrow { margin-bottom: clamp(1rem, 1.8vw, 1.5rem); }

.studio h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.4vw, 5.25rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  max-width: 11ch;
}

/* the short gold rule under the headline */
.studio .hero-rule {
  width: 4.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(1.5rem, 2.4vw, 2rem);
}

.studio .hero-lede {
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.55vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 29ch;
}

/* COMING SOON, with the rule trailing off to its right */
.studio .status {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(2rem, 3.6vw, 3rem);
  color: var(--gold-ink);
}

.studio .status .label { color: inherit; }
.studio .status::after {
  content: "";
  flex: none;
  width: 4rem;
  height: 1px;
  background: var(--gold-lo);
}

.studio .hero-art {
  position: relative;
  align-self: stretch;
  min-height: 100%;
}

.studio .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
  /* feather the cut edge so the illustration's paper meets the band
     without a visible seam */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%);
}

/* ---------- current projects ---------- */

.studio .projects { padding-block: clamp(2.5rem, 4.5vw, 3.5rem) clamp(2rem, 3.5vw, 3rem); }

/* section title with the hairline running out to the right margin */
.studio .section-head {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 2.6vw, 2.25rem);
}

.studio .section-head h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  flex: none;
}

.studio .section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.studio .project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.7vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- project card (reusable component) ----------
   .card--<variant> sets ground + art only; structure is shared.
   A new project = one <li> and one variant class. */

.studio .card {
  position: relative;
  display: block;
  aspect-ratio: 425 / 208;
  min-height: 9.5rem;
  padding: clamp(1.4rem, 2.4vw, 2rem);
  background-color: var(--card-cream);
  border-radius: 2px;              /* near-square; no SaaS rounding */
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(.2,.7,.3,1), box-shadow 0.35s ease;
}

/* the art sits in its own layer so each variant can place and feather it
   independently of the card's ground */
.studio .card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  pointer-events: none;
}

.studio .card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 66%;
}

.studio .card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.05vw, 1.9rem);
  line-height: 1.1;
  text-wrap: balance;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.studio .card .label { font-size: 0.625rem; letter-spacing: 0.24em; }

.studio .card .arrow {
  margin-top: auto;
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  color: var(--ink-soft);
  position: relative;
  opacity: 0.75;
  transition: width 0.35s cubic-bezier(.2,.7,.3,1);
}

.studio .card .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.studio a.card:hover,
.studio a.card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -18px rgba(12, 30, 38, 0.55);
}

.studio a.card:hover .arrow,
.studio a.card:focus-visible .arrow { width: 2.75rem; }

/* variants — ground on .card, art on its .card-art layer */

.studio .card--saturn .card-art {
  background-image: url("/assets/art/card-saturn.webp");
}

.studio .card--gyf .card-art {
  background-image: url("/assets/art/card-gyf.webp");
  background-size: auto 104%;
  background-position: right -0.25rem center;
}

.studio .card--night { background-color: var(--night); }

/* the night art has no flat paper to match the ground, so its layer is
   narrowed to the art itself and feathered in from the left */
.studio .card--night .card-art {
  left: auto;
  width: 52%;
  background-image: url("/assets/art/card-night.webp");
  background-size: cover;
  background-position: right center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 38%, #000 88%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.5) 38%, #000 88%);
}

.studio .card--night h3 { color: #f2ece2; }
.studio .card--night .label { color: rgba(242, 236, 226, 0.7); }
.studio .card--night .arrow { color: rgba(242, 236, 226, 0.8); }

/* ---------- footer ---------- */

.studio .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  border-top: 1px solid var(--rule);
  padding-block: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.5rem, 3vw, 2.5rem);
  margin-inline: var(--gutter);
  padding-inline: 0;
}

.studio .foot .label { color: var(--ink-mute); }
.studio .foot ul {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.studio .foot li + li::before { content: "/"; margin-right: 0.6rem; color: var(--rule); }
.studio .foot a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.studio .foot a:hover, .studio .foot a:focus-visible { border-bottom-color: var(--gold); }

/* ---------- accessibility ---------- */

.studio :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.studio .skip { position: absolute; left: -9999px; }
.studio .skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 0.6rem 1rem;
  font-family: var(--sans);
  font-size: 0.8125rem;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .studio .card, .studio .card .arrow { transition: none; }
  .studio a.card:hover, .studio a.card:focus-visible { transform: none; }
}

/* =========================================================
   TABLET — the hero stays side-by-side but loosens; the three
   cards become a row of taller cards, then stack.
   ========================================================= */

@media (max-width: 62rem) {
  .studio .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    min-height: 0;
  }
  .studio h1 {
    font-size: clamp(2.4rem, 5.6vw, 3.4rem);
    max-width: 10ch;
  }
  .studio .hero-lede { max-width: 26ch; }
  /* the column is too narrow to crop into — show the whole illustration */
  .studio .hero-art { min-height: 24rem; }
  .studio .hero-art img {
    object-fit: contain;
    object-position: right bottom;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .studio .card { aspect-ratio: 5 / 4; }
  .studio .card-body { max-width: 100%; }
  .studio .card-art { background-size: auto 62%; background-position: right bottom; }
  .studio .card--night .card-art { width: 100%; background-size: cover; }
  .studio .card--gyf .card-art { background-size: auto 62%; background-position: right -0.25rem bottom; }
}

/* =========================================================
   PHONE — restack: wordmark, nav, then headline, then the art
   as a full-bleed band, then the cards as full-width editorial
   plates. Not a squeezed desktop.
   ========================================================= */

@media (max-width: 48rem) {
  .studio .masthead {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding-bottom: 1rem;
  }
  .studio .mainnav ul { gap: 0.3rem 1.5rem; }
  .studio .mainnav a { padding-bottom: 0.25rem; }

  .studio .hero-in {
    display: block;
    padding-right: 0;
  }
  .studio .hero-copy { padding-block: clamp(2.25rem, 8vw, 3rem) 0; }
  .studio h1 {
    font-size: clamp(2.3rem, 11.8vw, 3.75rem);
    max-width: 12ch;
  }
  .studio .hero-lede { max-width: 32ch; }
  .studio .status { margin-bottom: clamp(1.75rem, 6vw, 2.5rem); }

  /* art escapes the gutter and bleeds edge to edge */
  .studio .hero-art {
    position: relative;
    min-height: 0;
    height: clamp(14rem, 56vw, 20rem);
    margin-inline: calc(var(--gutter) * -1);
  }
  .studio .hero-art img { object-position: center bottom; }

  .studio .projects { padding-block: clamp(2rem, 7vw, 2.75rem); }
  .studio .project-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .studio .card {
    aspect-ratio: 16 / 7;
    min-height: 8.5rem;
  }
  .studio .card-art { background-position: right center; background-size: auto 92%; }
  .studio .card--night .card-art { width: 58%; background-size: cover; }
  .studio .card-body { max-width: 64%; }
  .studio .card--gyf .card-art { background-size: auto 96%; background-position: right -0.25rem center; }

  .studio .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
}

@media (max-width: 26rem) {
  .studio .card { aspect-ratio: auto; min-height: 0; }
  .studio .card-body { max-width: 68%; min-height: 7.5rem; }
  .studio .wordmark { font-size: 1.05rem; letter-spacing: 0.14em; }
}

/* the homepage footer carries a second, quieter row for the legal links;
   the reference's IDEAS / TOOLS / CONNECTIONS line is unchanged above it */
.studio .foot { flex-direction: column; align-items: stretch; gap: 0; }
.studio .foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
}
.studio .foot-legal { margin-top: 0.85rem; }
.studio .foot-legal .label { color: var(--ink-mute); }
.studio .foot-legal a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.studio .foot-legal a:hover,
.studio .foot-legal a:focus-visible { color: var(--ink); border-bottom-color: var(--gold); }

@media (max-width: 48rem) {
  .studio .foot-row { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .studio .foot-legal { margin-top: 1.1rem; }
}
