/* TOPSICO LLC - editorial property house
   Cinematic photography, high-contrast serif display, asymmetric grid.
   No pure #000 / #fff anywhere. */

:root {
  --bone: #F0EFEB;
  --paper: #FBFAF7;
  --sky: #A9CDE6;
  --sky-2: #C9E0EF;
  --sky-deep: #4E85AE;
  --cta: #24506E;
  --cta-2: #1A3D55;
  --ink: #16181B;
  --ink-2: #383D44;
  --muted: #5C626A;
  --line: #DBD8D1;
  --line-2: #C6C2B9;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- rhythm ---------- */

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 56px); }
.band { padding: clamp(70px, 10vw, 150px) 0; }
.band.tight { padding: clamp(48px, 6vw, 84px) 0; }

/* 12-col editorial grid, content deliberately off-centre */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.c-1-3   { grid-column: 1 / span 3; }
.c-4-12  { grid-column: 4 / span 9; }
.c-1-5   { grid-column: 1 / span 5; }
.c-1-6   { grid-column: 1 / span 6; }
.c-2-7   { grid-column: 2 / span 6; }
.c-3-8   { grid-column: 3 / span 7; }
.c-7-12  { grid-column: 7 / span 6; }
.c-8-12  { grid-column: 8 / span 5; }
.c-full  { grid-column: 1 / -1; }

/* ---------- type ---------- */

.display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.012em;
  margin: 0;
  color: var(--ink);
}
h1.display { font-size: clamp(40px, 6.4vw, 92px); }
h2.display { font-size: clamp(32px, 4.6vw, 62px); }
h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.16; letter-spacing: -.008em; margin: 0;
}

.label {
  font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}

p { margin: 0 0 1.1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); }
.small { font-size: 15px; }
.muted { color: var(--muted); }

/* parenthetical micro-CTA, borrowed from the reference */
.paren {
  display: inline-block;
  font-size: 15px; letter-spacing: .02em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.paren::before { content: "("; }
.paren::after { content: ")"; }
.paren:hover { color: var(--sky-deep); }

/* ---------- top nav ---------- */

.nav {
  position: absolute; inset: 0 0 auto; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: clamp(20px, 2.6vw, 34px) clamp(20px, 4vw, 56px);
}
.nav img { width: clamp(126px, 13vw, 176px); }
.nav .links { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.nav a { font-size: 14.5px; text-decoration: none; color: var(--paper); opacity: .92; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav .book {
  border: 1px solid rgba(251,250,247,.55); border-radius: 999px;
  padding: 8px 20px; opacity: 1;
}
.nav .book:hover { background: rgba(251,250,247,.14); text-decoration: none; }

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

.hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: stretch; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,22,32,.62) 0%, rgba(14,22,32,.30) 42%, rgba(14,22,32,.06) 72%, rgba(14,22,32,.20) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; align-self: center; padding: clamp(120px, 14vw, 190px) 0 clamp(44px, 6vw, 70px); }
.hero .display { color: var(--paper); }
.hero .kicker { color: rgba(251,250,247,.90); font-size: 14.5px; line-height: 1.5; max-width: 27ch; }
.hero .paren { color: var(--paper); margin-top: clamp(22px, 3vw, 34px); }
.hero .paren:hover { color: var(--sky-2); }

/* ---------- intake ---------- */

.intake { background: var(--paper); border: 1px solid var(--line); }
.intake .cap { padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.4vw, 32px) 0; }
.intake .cap h2 { margin-bottom: 8px; }
.intake .body { padding: clamp(18px, 2.2vw, 26px) clamp(20px, 2.4vw, 32px) clamp(24px, 2.6vw, 32px); }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  margin-top: auto;
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-2);
  padding: 9px 2px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 70px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8A8F96; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--cta); border-bottom-width: 2px; padding-bottom: 8px; }

.consent { grid-column: 1 / -1; display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; margin-top: 4px; }
.consent input { width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--cta); flex: none; }
.consent label { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.consent a { color: var(--cta); }

.btn {
  display: inline-block; font-family: inherit; font-weight: 500; font-size: 16px;
  letter-spacing: .01em; color: var(--paper); text-decoration: none;
  background: var(--cta); border: 0; border-radius: 999px;
  padding: 15px 34px; cursor: pointer;
  transition: background .18s ease;
}
.btn:hover { background: var(--cta-2); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn.wide { display: block; width: 100%; text-align: center; }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #FFFFFF; }

.formnote { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* honeypot: reachable by a bot reading the DOM, never by a person */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* consumer-initiated opt-in, the cleanest consent there is */
.optin { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.optin[hidden] { display: none; }
.optin-line { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(21px, 2.2vw, 27px); line-height: 1.3; margin-bottom: 10px; }
.optin-line strong { font-weight: 400; letter-spacing: .04em; }
.optin-line a { color: var(--cta); text-decoration: none; border-bottom: 1px solid currentColor; }
.formstatus { grid-column: 1 / -1; padding: 13px 16px; font-size: 15px; border-left: 2px solid var(--line-2); background: rgba(0,0,0,.02); }
.formstatus[hidden] { display: none; }
.formstatus.ok { border-left-color: var(--cta); }
.formstatus.err { border-left-color: #A33A2A; color: #7E2A1D; }

/* ---------- terms block, replaces the reference's invented stats ---------- */

.terms { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.2vw, 32px) clamp(20px, 2.6vw, 40px); align-items: start; }
.t-img { grid-column: 1 / span 5; grid-row: 1 / span 2; margin: 0; align-self: stretch; }
.t-img img { width: 100%; height: 100%; object-fit: cover; }
.term { grid-column: span 3; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.term:nth-of-type(1) { grid-column: 7 / span 3; grid-row: 1; }
.term:nth-of-type(2) { grid-column: 10 / span 3; grid-row: 1; }
.term:nth-of-type(3) { grid-column: 7 / span 3; grid-row: 2; }
.term:nth-of-type(4) { grid-column: 10 / span 3; grid-row: 2; }
.term .k { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; display: block; }
.term .v { font-size: 12.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: 12px; display: block; }

/* ---------- ruled lists ---------- */

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { padding: 16px 0; border-top: 1px solid var(--line-2); font-size: 16.5px; }
.rows li:last-child { border-bottom: 1px solid var(--line-2); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: clamp(14px, 2vw, 28px); padding: clamp(20px, 2.6vw, 30px) 0; border-top: 1px solid var(--line-2); }
.steps li:last-child { border-bottom: 1px solid var(--line-2); }
.steps .idx { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 300; font-size: 30px; line-height: 1; color: var(--sky-deep); }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* ---------- mosaic closer ---------- */

.mosaic { position: relative; background: var(--sky); overflow: hidden; }
.mosaic .inner { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(14px, 1.8vw, 26px); align-items: center; padding: clamp(48px, 6vw, 92px) 0; }
.mosaic .shot-a { grid-column: 1 / span 4; }
.mosaic .shot-b { grid-column: 9 / span 4; margin-top: clamp(28px, 5vw, 74px); }
.mosaic .pitch { grid-column: 5 / span 4; background: var(--paper); padding: clamp(26px, 3vw, 40px); }
.mosaic .pitch h2 { margin-bottom: 12px; }
.mosaic .pitch p { font-size: 16px; color: var(--ink-2); margin-bottom: 22px; }
.mosaic img { width: 100%; }

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

.foot { background: var(--ink); color: #C9CDD3; padding: clamp(50px, 6vw, 82px) 0 clamp(30px, 4vw, 46px); }
.foot img { width: 168px; margin-bottom: 22px; }
.foot h4 { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: #8E959E; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.foot li { padding: 4px 0; }
.foot a { color: #E4E7EA; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot address { font-style: normal; font-size: 15px; color: #C9CDD3; line-height: 1.7; }
.footlegal { margin-top: clamp(36px, 4vw, 54px); padding-top: 24px; border-top: 1px solid #2E3238; font-size: 13px; color: #969CA4; }
.footlegal p { max-width: 96ch; margin-bottom: .7em; }

/* ---------- legal documents ---------- */

.docnav { background: var(--ink); }
.docnav .nav { position: static; }
.doc { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 70px); }
.doc h1.display { font-size: clamp(36px, 5vw, 64px); margin-bottom: 12px; }
.doc h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 400; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; margin: 46px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.doc h3 { font-size: 20px; margin: 26px 0 7px; }
.doc p, .doc li { font-size: 16.5px; }
.doc ul, .doc ol { max-width: 66ch; padding-left: 22px; }
.doc li { padding: 4px 0; }
.doc address { font-style: normal; margin: 14px 0; line-height: 1.7; }
.toc { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 2.2vw, 26px); margin-top: 26px; }
.toc ol { margin: 0; max-width: none; columns: 2; column-gap: 36px; }
.toc li { font-size: 15.5px; padding: 3px 0; }
.toc a { color: var(--cta); }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .t-img { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
  .term:nth-of-type(1) { grid-column: 1 / span 6; grid-row: auto; }
  .term:nth-of-type(2) { grid-column: 7 / span 6; grid-row: auto; }
  .term:nth-of-type(3) { grid-column: 1 / span 6; grid-row: auto; }
  .term:nth-of-type(4) { grid-column: 7 / span 6; grid-row: auto; }
  .mosaic .shot-a { grid-column: 1 / span 6; }
  .mosaic .shot-b { grid-column: 7 / span 6; }
  .mosaic .pitch { grid-column: 1 / -1; order: -1; }
}

@media (max-width: 860px) {
  .c-1-5, .c-1-6, .c-2-7, .c-3-8, .c-7-12, .c-8-12 { grid-column: 1 / -1; }
  .nav .links { display: none; }
  .hero { min-height: 0; }
  .hero-inner { padding-top: clamp(104px, 24vw, 150px); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .fields { grid-template-columns: 1fr; }
  .term:nth-of-type(1), .term:nth-of-type(2),
  .term:nth-of-type(3), .term:nth-of-type(4) { grid-column: 1 / -1; }
  .steps li { grid-template-columns: 38px 1fr; }
  .toc ol { columns: 1; }
  .mosaic .shot-a, .mosaic .shot-b { grid-column: 1 / -1; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
