/* Corner Lot Studio — cornerlotstudio.com
   Palette: brand/brand.json (Hedge & Daylight) · Type: Satoshi (self-hosted)
   Layout language: daylight paper, hairlines, asymmetry, hedge as ink. */

@font-face { font-family: 'Satoshi'; font-weight: 400; font-style: normal; font-display: swap;
  src: url('../brand/fonts/Satoshi-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 500; font-style: normal; font-display: swap;
  src: url('../brand/fonts/Satoshi-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Satoshi'; font-weight: 700; font-style: normal; font-display: swap;
  src: url('../brand/fonts/Satoshi-Bold.woff2') format('woff2'); }

:root {
  --daylight: #fbfaf6;
  --hedge: #29483a;
  --hedge-deep: #1f3a2e;
  --sage: #c9d4c2;
  --ink: #1d211e;
  --ink-soft: #4a544d;
  --ink-faint: #6f7a72;
  --panel: #f1efe7;
  --line: #e3e0d4;
  --night: #101216;

  --space-xs: 8px; --space-sm: 12px; --space-md: 24px;
  --space-lg: 48px; --space-xl: 96px; --space-2xl: clamp(96px, 14vw, 180px);

  --text-xs: 0.6875rem;   /* 11 — labels */
  --text-sm: 0.8125rem;   /* 13 — captions, menu notes */
  --text-base: 1rem;      /* 16 — body */
  --text-md: 1.3125rem;   /* 21 — lede */
  --text-lg: clamp(1.75rem, 3.2vw, 2.625rem);   /* section titles */
  --text-xl: clamp(2.75rem, 7.2vw, 6.5rem);     /* hero statement */

  --track-label: 0.22em;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--daylight);
  color: var(--ink);
  font-family: 'Satoshi', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--hedge); color: var(--daylight); }

img, video, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--hedge); outline-offset: 3px; }

.container { max-width: 1240px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* ---------- labels & shared type ---------- */
.label {
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-faint);
}
.label--hedge { color: var(--hedge); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--space-md);
  border-top: 1px solid var(--line);
  padding-top: var(--space-sm);
  margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head h2 {
  font-size: var(--text-lg); font-weight: 700; letter-spacing: 0.005em;
  margin: 0; text-wrap: balance;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--daylight);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  padding-block: 14px;
}
.brand-lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-lockup svg { height: 15px; width: auto; }
.brand-lockup .mark { height: 17px; }
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 30px); align-items: center; }
.site-nav a {
  text-decoration: none; font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-soft);
  transition: color 0.25s var(--ease-out);
  white-space: nowrap;
}
.site-nav a:hover { color: var(--hedge); }
.site-nav a.btn { color: var(--daylight); }
.site-nav a.btn:hover { color: var(--daylight); }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--hedge); color: var(--daylight);
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 13px 24px; border: 1px solid var(--hedge);
  transition: background 0.25s var(--ease-out);
}
.btn:hover { background: var(--hedge-deep); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: none; border-bottom: 1px solid var(--ink); padding: 2px 0;
}
.btn--ghost:hover { background: transparent; color: var(--hedge); border-color: var(--hedge); }
@media (max-width: 720px) {
  .site-nav a:not(.btn) { display: none; }
  .hide-sm { display: none; }
  .btn { padding: 11px 18px; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(140px, 20vh, 220px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero .kicker { margin-bottom: var(--space-md); }
.hero h1 {
  font-size: var(--text-xl); font-weight: 700; line-height: 1.02;
  letter-spacing: 0.01em; text-transform: uppercase;
  margin: 0 0 var(--space-lg); max-width: 12ch;
}
.hero h1 .turn { color: var(--hedge); }
.hero .deck {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-lg);
}
.hero .lede { font-size: var(--text-md); line-height: 1.5; max-width: 44ch; color: var(--ink-soft); margin: 0; }
.hero .lede strong { color: var(--ink); font-weight: 700; }
.hero .cta-row { display: flex; align-items: center; gap: var(--space-md); }
.hero .live {
  margin-top: var(--space-xl);
  display: flex; gap: var(--space-md); flex-wrap: wrap;
  justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: var(--space-sm);
}

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding-block: 16px; user-select: none;
}
.marquee .track { display: inline-flex; gap: 0; animation: marquee 36s linear infinite; will-change: transform; }
.marquee span {
  font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-faint);
  padding-right: 3.2em;
}
.marquee span b { color: var(--hedge); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- work bento ---------- */
.work { padding-block: var(--space-xl); }
.bento {
  display: grid; gap: 14px;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(150px, auto);
}
.tile {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
}
.tile .tile-tag {
  position: absolute; top: 14px; left: 16px; z-index: 3;
  font-size: var(--text-xs); font-weight: 500;
  letter-spacing: var(--track-label); text-transform: uppercase;
  max-width: calc(100% - 130px);
}
.tile .tile-price {
  position: absolute; top: 14px; right: 16px; z-index: 3;
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

/* reel tile */
.tile--reel { grid-column: span 4; grid-row: span 2; background: var(--night); border-color: var(--night);
  display: flex; align-items: center; justify-content: center; padding: clamp(24px, 3vw, 44px); }
.tile--reel .tile-tag { color: var(--sage); }
.tile--reel .tile-price { color: var(--sage); }
.phone {
  width: min(240px, 62%); aspect-ratio: 9 / 19; position: relative;
  border-radius: 34px; padding: 9px;
  background: #23282e;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(251,250,246,0.12);
  transform: rotate(-1.5deg);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 26px; overflow: hidden; background: #000; }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone .hint {
  position: absolute; inset: auto 0 14px 0; z-index: 2; text-align: center;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(251,250,246,0.85);
  transition: opacity 0.3s var(--ease-out); pointer-events: none;
}
.phone.playing .hint { opacity: 0; }

/* brochure tile */
.tile--brochure { grid-column: span 8; grid-row: span 2; background: var(--panel);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(28px, 4vw, 56px); perspective: 1400px; }
.brochure3d { position: relative; width: min(560px, 88%); aspect-ratio: 17 / 11; transform-style: preserve-3d; }
.sheet {
  position: absolute; inset: 0; background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(29,33,30,0.16);
}
.sheet--inside { display: grid; grid-template-columns: 1.15fr 1fr; }
.sheet--inside .ph { overflow: hidden; }
.sheet--inside .ph img { width: 100%; height: 100%; object-fit: cover; }
.sheet--inside .txt { padding: clamp(12px, 2.4vw, 28px); display: flex; flex-direction: column; justify-content: space-between; }
.sheet--inside .txt h3 { font-size: clamp(0.95rem, 1.9vw, 1.5rem); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 6px; }
.sheet--inside .txt .addr { font-size: clamp(0.6rem, 1.1vw, 0.8rem); letter-spacing: 0.24em; text-transform: uppercase; color: var(--hedge); font-weight: 500; }
.sheet--inside .txt p { font-size: clamp(0.58rem, 1vw, 0.78rem); line-height: 1.55; color: var(--ink-soft); margin: 10px 0; }
.sheet--inside .txt .specs { display: flex; gap: 14px; font-size: clamp(0.55rem, 0.95vw, 0.72rem); font-variant-numeric: tabular-nums; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.sheet--cover {
  transform-origin: left center; z-index: 2;
  background: var(--hedge); border-color: var(--hedge);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(14px, 2.6vw, 30px);
  backface-visibility: hidden;
  will-change: transform;
}
.sheet--cover .cover-word { color: var(--daylight); font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: clamp(0.7rem, 1.3vw, 1rem); }
.sheet--cover .cover-photo { flex: 1; margin-block: clamp(10px, 2vw, 20px); overflow: hidden; }
.sheet--cover .cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet--cover .cover-line { color: var(--sage); font-size: clamp(0.52rem, 0.95vw, 0.7rem); letter-spacing: 0.26em; text-transform: uppercase; }

/* brand kit tile */
.tile--brand { grid-column: span 4; padding: 24px 20px 20px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; background: #fff; }
.tile--brand .spec-word { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: 0.08em; line-height: 1.05; }
.tile--brand .spec-word span { display: inline-block; }
.tile--brand .chips { display: flex; gap: 6px; }
.tile--brand .chips i { display: block; width: 34px; height: 34px; border: 1px solid var(--line); }
.tile--brand .rider {
  border: 1px solid var(--line); padding: 8px 12px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
}

/* cma tile */
.tile--cma { grid-column: span 4; min-height: 340px; display: flex; align-items: flex-end; justify-content: center; padding: 48px 24px 0; }
.cma-fan { position: relative; width: min(212px, 72%); aspect-ratio: 8.5 / 10; }
.cma-fan .page {
  position: absolute; inset: 0; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(29,33,30,0.12);
  transform-origin: bottom center;
  transition: transform 0.6s var(--ease-out);
  padding: 16px;
}
.cma-fan .page:nth-child(1) { transform: rotate(-7deg) translateX(-8%); }
.cma-fan .page:nth-child(2) { transform: rotate(-2.5deg); }
.tile--cma:hover .page:nth-child(1) { transform: rotate(-11deg) translateX(-13%); }
.tile--cma:hover .page:nth-child(3) { transform: rotate(3deg) translateX(4%); }
.cma-doc .doc-label { font-size: 0.55rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--hedge); font-weight: 500; }
.cma-doc h4 { font-size: 0.95rem; font-weight: 700; margin: 6px 0 2px; }
.cma-doc .doc-sub { font-size: 0.6rem; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; }
.cma-chart { display: flex; align-items: flex-end; gap: 5px; height: 62px; margin-top: 16px; }
.cma-chart i { flex: 1; background: var(--sage); }
.cma-chart i.hot { background: var(--hedge); }
.cma-rows { margin-top: 14px; }
.cma-rows div { display: flex; justify-content: space-between; font-size: 0.58rem; padding-block: 4px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* staging tile */
.tile--staging { grid-column: span 4; min-height: 280px; }
.tile--staging img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile--staging .tile-tag, .tile--staging .tile-price { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.tile--staging .veil {
  position: absolute; inset: auto 0 0 0; padding: 14px 16px;
  background: linear-gradient(transparent, rgba(16,18,22,0.55));
  color: rgba(251,250,246,0.92); font-size: var(--text-xs);
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500;
}

@media (max-width: 900px) {
  .tile--reel { grid-column: span 6; }
  .tile--brochure { grid-column: span 12; order: -1; }
  .tile--brand { grid-column: span 6; }
  .tile--cma { grid-column: span 6; }
  .tile--staging { grid-column: span 6; }
}
@media (max-width: 640px) {
  .tile--reel, .tile--brand, .tile--cma, .tile--staging { grid-column: span 12; }
  /* flat brochure on small screens: the 3D open needs room to read */
  .tile--brochure { perspective: none; padding: 16px; padding-top: 52px; }
  .brochure3d { width: 100%; aspect-ratio: auto; }
  .sheet--inside { position: relative; grid-template-columns: 1fr; }
  .sheet--inside .ph { aspect-ratio: 3 / 2; }
  .sheet--cover { display: none; }
}

/* ---------- services (mad-libs) ---------- */
.services { padding-block: clamp(72px, 10vw, 130px); }
.madlibs {
  font-size: clamp(1.6rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.01em; max-width: 20ch;
}
.madlibs .slot { position: relative; display: inline-block; color: var(--hedge); }
.madlibs select {
  appearance: none; -webkit-appearance: none;
  font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
  background: transparent; border: none; border-bottom: 3px solid var(--sage);
  padding: 0 1.1em 0 0; cursor: pointer; max-width: 100%;
}
.madlibs .slot::after {
  content: "▾"; position: absolute; right: 0; bottom: 0.18em;
  font-size: 0.45em; pointer-events: none; color: var(--hedge);
}
.service-readout {
  margin-top: var(--space-lg);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-md);
  justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: var(--space-md);
}
.service-readout p { margin: 0; max-width: 52ch; color: var(--ink-soft); font-size: var(--text-md); line-height: 1.5; }
.service-readout .from { font-weight: 700; font-size: var(--text-md); color: var(--hedge); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- rates ---------- */
.rates { padding-block: var(--space-xl) var(--space-2xl); }
.founding {
  display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: baseline; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line);
  padding: 18px 22px; margin-bottom: var(--space-lg);
}
.founding p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 60ch; }
.founding p b { color: var(--ink); }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 860px) { .menu-grid { grid-template-columns: 1fr; } }
.menu-col h3 {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: var(--track-label);
  text-transform: uppercase; color: var(--hedge); margin: 0 0 10px;
}
.menu-col + .menu-col h3 { margin-top: 0; }
.menu-item { padding-block: 16px; border-top: 1px solid var(--line); }
.menu-item .row { display: flex; align-items: baseline; gap: 10px; }
.menu-item .name { font-weight: 700; font-size: 1.0625rem; white-space: nowrap; }
.menu-item .dots { flex: 1; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-4px); opacity: 0.55; }
.menu-item .price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-item .price .was { font-weight: 400; color: var(--ink-faint); text-decoration: line-through; margin-right: 8px; font-size: 0.9em; }
.menu-item .desc { margin: 5px 0 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 56ch; }
.menu-item .order-link {
  font-size: var(--text-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500;
  color: var(--hedge); text-decoration: none; border-bottom: 1px solid var(--sage);
}
.menu-item .order-link:hover { border-color: var(--hedge); }
.suite-anchor { background: var(--hedge); border: 1px solid var(--hedge); color: var(--daylight); padding: clamp(24px, 3vw, 40px); margin-bottom: var(--space-md); }
.suite-anchor .label { color: var(--sage); }
.suite-anchor h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; margin: 10px 0 4px; letter-spacing: 0.02em; color: var(--daylight); }
.suite-anchor .suite-price { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; font-variant-numeric: tabular-nums; }
.suite-anchor .suite-price small { font-size: 0.45em; font-weight: 500; letter-spacing: 0.1em; }
.suite-anchor .suite-price .was { font-weight: 400; opacity: 0.55; text-decoration: line-through; font-size: 0.55em; margin-right: 10px; }
.suite-anchor p { color: var(--sage); font-size: var(--text-sm); line-height: 1.6; margin: 12px 0 0; max-width: 58ch; }
.suite-anchor .btn { background: var(--daylight); color: var(--hedge); border-color: var(--daylight); margin-top: 18px; }
.suite-anchor .btn:hover { background: var(--sage); border-color: var(--sage); }
.rates .fine { margin-top: var(--space-lg); font-size: var(--text-sm); color: var(--ink-faint); max-width: 72ch; }

/* ---------- thesis (the idea) ---------- */
.thesis { padding-block: clamp(72px, 10vw, 130px) var(--space-lg); }
.thesis h2 { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--space-md); max-width: 22ch; text-wrap: balance; }
.thesis .bio p { margin: 0 0 1em; color: var(--ink-soft); max-width: 58ch; }
.thesis .bio p b { color: var(--ink); }

/* ---------- studio ---------- */
@cornerlotstudio { background: var(--panel); border-block: 1px solid var(--line); padding-block: var(--space-2xl); }
@cornerlotstudio-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
@media (max-width: 860px) { @cornerlotstudio-grid { grid-template-columns: 1fr; } }
@cornerlotstudio h2 { font-size: var(--text-lg); font-weight: 700; margin: 0 0 var(--space-md); max-width: 18ch; text-wrap: balance; }
@cornerlotstudio .bio p { margin: 0 0 1em; color: var(--ink-soft); max-width: 58ch; }
@cornerlotstudio .bio p b { color: var(--ink); }
.principles { display: flex; flex-direction: column; gap: 0; }
.principle { border-top: 1px solid var(--line); padding-block: 18px; }
.principle .n { font-size: var(--text-xs); letter-spacing: var(--track-label); color: var(--hedge); font-weight: 500; text-transform: uppercase; }
.principle h4 { margin: 6px 0 4px; font-size: 1.0625rem; font-weight: 700; }
.principle p { margin: 0; font-size: var(--text-sm); color: var(--ink-soft); max-width: 44ch; }

/* ---------- faq ---------- */
.faq { padding-block: var(--space-2xl); }
.faq-list { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  padding-block: 20px; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ind { color: var(--hedge); font-weight: 400; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary .ind { transform: rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--ink-soft); max-width: 62ch; }
.faq .a p { margin: 0 0 0.8em; } .faq .a p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--hedge); color: var(--daylight); padding-block: var(--space-xl) var(--space-lg); }
.site-footer .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); margin-bottom: var(--space-xl); }
.site-footer .lockup svg { height: 22px; width: auto; }
.site-footer .cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; }
.site-footer h5 { font-size: var(--text-xs); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--sage); font-weight: 500; margin: 0 0 12px; }
.site-footer a { color: var(--daylight); text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--sage); }
.site-footer .col > div { margin-bottom: 8px; }
.site-footer .legal {
  border-top: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  padding-top: 20px; display: flex; flex-wrap: wrap; gap: var(--space-md); justify-content: space-between;
  font-size: var(--text-xs); letter-spacing: 0.1em; color: var(--sage);
}

/* ---------- reveal defaults (JS enhances) ---------- */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
  html { scroll-behavior: auto; }
}
