/* ============================================================
   SMOVECITY HOLDING — warm & sophisticated holding-company site
   Fraunces (display) · Inter (body) · IBM Plex Mono (labels)
   Navy ink + terracotta accent on warm paper.
   ============================================================ */

:root {
  /* Warm paper surfaces */
  --paper:    #f7f3ea;
  --paper-2:  #f1ebdf;  /* alternating band */
  --paper-3:  #ece4d5;  /* deeper card wells */

  /* Ink & text (navy family) */
  --ink:      #15314e;  /* headings */
  --ink-2:    #2f4256;  /* subheads */
  --body:     #55504a;  /* warm stone body */
  --muted:    #8a8175;  /* mono labels, meta */
  --faint:    #a49b8c;

  /* Lines */
  --line:        #e3daca;
  --line-strong: #d3c8b3;

  /* Accent — muted terracotta */
  --accent:      #a15a39;
  --accent-deep: #874629;
  --accent-tint: rgba(161, 90, 57, 0.10);

  /* Type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Metrics */
  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --nav-h: 68px;

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

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--paper); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); }
.section--alt { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
}

.display {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  font-weight: 300;
}

.prose { max-width: 46rem; }
.prose p { color: var(--body); }
.prose p + p { margin-top: 1.3rem; }

.measure { max-width: 42rem; }

/* Mono eyebrow / labels */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--accent { color: var(--accent); }

.accent-word { color: var(--accent); font-style: italic; }

/* Section header with index number */
.sec-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head .idx {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  padding-top: 0.5rem;
}
.sec-head .sec-titles { flex: 1; }
.sec-head h2 { margin-top: 0.35rem; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  color: var(--ink); background: transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--accent { border-color: var(--accent); color: var(--paper); background: var(--accent); }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn svg { width: 0.95em; height: 0.95em; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font-weight: 500;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.arrow-link svg { width: 1rem; height: 1rem; transition: transform .3s var(--ease); }
.arrow-link:hover { color: var(--accent); gap: 0.75rem; }
.arrow-link:hover svg { transform: translate(2px, -2px); }

/* Animated underline link */
.u-link { position: relative; color: var(--ink); }
.u-link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.u-link:hover { color: var(--accent); }
.u-link:hover::after { transform: scaleX(1); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.brand .mark {
  width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 0.85rem; font-family: var(--serif); flex: none;
}
.brand b { font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-links .btn { padding: 0.6rem 1.1rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 1.75rem var(--gutter) 2rem;
    transform: translateY(-120%); transition: transform .45s var(--ease); z-index: 99;
  }
  .nav.open .nav-links { transform: translateY(0); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)); padding-bottom: 0; }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero .display { margin-bottom: 2rem; max-width: 15ch; }
.hero .lead { max-width: 40rem; margin-bottom: 2.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-bottom: clamp(3.5rem, 7vw, 5.5rem); }

/* Snapshot band */
.snapshot {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.snapshot .cell { padding: 1.75rem 1.5rem 1.9rem 0; border-right: 1px solid var(--line); }
.snapshot .cell:last-child { border-right: 0; }
.snapshot .cell .eyebrow { margin-bottom: 0.7rem; }
.snapshot .cell .val { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.2; }
@media (max-width: 820px) {
  .snapshot { grid-template-columns: 1fr 1fr; }
  .snapshot .cell { padding: 1.4rem 1.25rem; border-bottom: 1px solid var(--line); }
  .snapshot .cell:nth-child(even) { border-right: 0; }
  .snapshot .cell:nth-last-child(-n+1) { border-bottom: 0; }
}
@media (max-width: 460px) {
  .snapshot { grid-template-columns: 1fr; }
  .snapshot .cell { border-right: 0; }
}

/* ---------- Vision ---------- */
.pullquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.3; color: var(--ink);
  border-left: 3px solid var(--accent); padding: 0.4rem 0 0.4rem 1.6rem; margin: 0 0 2.5rem; max-width: 34rem;
}

/* ---------- Themes ---------- */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.theme {
  padding: 2rem 2rem 2rem 0; border-bottom: 1px solid var(--line); position: relative;
}
.theme:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--line); }
.theme:nth-child(even) { padding-left: 2.5rem; }
.theme .t-top { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.9rem; }
.theme .t-num { font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.theme h3 { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; color: var(--ink); letter-spacing: 0; }
.theme p { font-size: 0.95rem; color: var(--body); margin: 0 0 0.75rem; }
.theme .pill {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-tint); padding: 0.25rem 0.6rem; border-radius: 999px;
}
@media (max-width: 720px) {
  .themes { grid-template-columns: 1fr; }
  .theme, .theme:nth-child(odd) { padding: 1.75rem 0; border-right: 0; }
  .theme:nth-child(even) { padding-left: 0; }
}

/* ---------- Portfolio / Controlled Assets ---------- */
.portfolio { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.asset {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.asset:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 22px 45px -28px rgba(21, 49, 78, 0.45);
}
.asset .shot { position: relative; aspect-ratio: 16 / 10; background: var(--paper-3); overflow: hidden; }
.asset .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .7s var(--ease); }
.asset:hover .shot img { transform: scale(1.04); }
.asset .num {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--paper); background: rgba(21, 49, 78, 0.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 0.25rem 0.55rem; border-radius: 4px;
}
.asset .body { padding: 1.6rem 1.7rem 1.75rem; display: flex; flex-direction: column; flex-grow: 1; }
.asset .head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.asset .name { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); }
.asset .cat { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; padding-top: 0.35rem; }
.asset .desc { color: var(--body); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
.asset .foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.asset .ctrl { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 0.45rem; }
.asset .ctrl .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 720px) { .portfolio { grid-template-columns: 1fr; } }

/* ---------- Fifteen-minute city ---------- */
.assets-panel {
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 4px;
  padding: clamp(1.75rem, 3vw, 2.5rem); max-width: 44rem;
}
.assets-panel .eyebrow { margin-bottom: 1.5rem; }
.domain-list { display: flex; flex-direction: column; }
.domain-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--line);
  font-family: var(--serif); font-size: 1.15rem; color: var(--ink);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.domain-list a:first-child { border-top: 0; }
.domain-list a:hover { color: var(--accent); padding-left: 0.4rem; }
.domain-list a svg { width: 1rem; height: 1rem; flex: none; opacity: 0.5; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.domain-list a:hover svg { opacity: 1; transform: translate(2px, -2px); }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.founder-card { border-top: 2px solid var(--ink); padding-top: 1.5rem; }
.founder-card .name { font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.35rem); color: var(--ink); line-height: 1.05; margin-bottom: 0.5rem; }
.founder-card .role { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.75rem; }
.founder-card .note { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 760px) { .founder-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: #d9e0e7; }
.contact .eyebrow { color: #7f93a6; }
.contact h2 { color: var(--paper); }
.contact .display { color: var(--paper); }
.contact .lead { color: #b9c4cf; }
.contact a.big {
  font-family: var(--serif); font-size: clamp(1.75rem, 5vw, 3.25rem); color: var(--paper);
  display: inline-flex; align-items: center; gap: 0.6rem; line-height: 1.1;
  border-bottom: 1px solid rgba(217,224,231,0.25); padding-bottom: 0.35rem;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.contact a.big:hover { color: #e6b79d; border-color: var(--accent); }
.contact a.big svg { width: 0.55em; height: 0.55em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #93a3b3; padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid rgba(255,255,255,0.08); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.foot-brand { font-family: var(--serif); font-size: 1.5rem; color: var(--paper); max-width: 22rem; }
.foot-brand span { display: block; font-family: var(--sans); font-size: 0.9rem; color: #93a3b3; margin-top: 0.75rem; line-height: 1.5; }
.foot-cols { display: flex; gap: clamp(2.5rem, 6vw, 5rem); flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: #6f8093; font-weight: 500; margin-bottom: 1rem; }
.foot-col a { display: block; color: #b7c4d1; font-size: 0.92rem; padding: 0.3rem 0; transition: color .25s var(--ease); }
.foot-col a:hover { color: var(--paper); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.82rem; color: #7b8b9c; }
.foot-bottom nav { display: flex; gap: 1.75rem; }
.foot-bottom a:hover { color: var(--paper); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .asset, .asset .shot img { transition: none; }
}

/* ---------- Legal / privacy docs ---------- */
.doc-wrap { padding-top: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)); }
.doc { max-width: 44rem; }
.doc .back { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2.5rem; transition: color .25s var(--ease); }
.doc .back:hover { color: var(--accent); }
.doc .back svg { width: 0.95rem; height: 0.95rem; }
.doc h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); margin-bottom: 2rem; }
.doc p { color: var(--body); margin-bottom: 1.4rem; }
.doc .updated { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); margin-top: 2.5rem; }
