/* Swisspec Ventures: swisspecventures.com
   A flat warm-grey shell (one solid ground, ivory type, hairline borders, mono
   for small labels). Each product sits in its own large rounded panel with its
   own tone: Family Tree Studio in soft cream, My Car Collection in flat night.
   Both panels share one grammar: one typeface, the name, one line, a small
   button. Plain CSS, no build step. */

:root {
  color-scheme: dark;
  --ground: #262624;
  --ink: #f5f4ef;
  --dim: #a3a199;
  --faint: #7a7870;
  --line: rgba(222, 220, 209, 0.12);
  --clay: #d97757;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gut: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }

/* ---------- shell ---------- */
.top { padding-block: 22px 0; }
.top .wrap { display: flex; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.top b { color: var(--ink); font-weight: 500; }
.top a:hover { color: var(--ink); }

.hero { padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 88px); }
.hero h1 { margin: 0; font-size: clamp(44px, 8vw, 96px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; text-wrap: balance; }

/* Matches the "Swisspec Ventures" line in the top left: mono, small, ivory. */
.projects-title { margin: 0 0 clamp(28px, 4vw, 44px); text-align: center; font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink); }

.section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-block: 0 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.section-label a:hover { color: var(--ink); }

.panel { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.55); }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--line); }
.specs div { padding: 20px 16px 22px 0; min-width: 0; }
.specs dt { font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.specs dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- shared panel grammar ---------- */
.name { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.line { margin: 10px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--p-dim); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 14px; border-radius: 999px; background: var(--p-ink); color: var(--p-ground); font-size: 14px; font-weight: 500; transition: opacity 0.2s ease; }
.btn:hover { opacity: 0.86; }
.meta { font-family: var(--mono); font-size: 11.5px; color: var(--p-faint); }
.web { font-size: 14px; color: var(--p-dim); }
.web:hover { color: var(--p-ink); }

/* ---------- Family Tree Studio: soft cream ---------- */
/* The copy beside a line-drawn tree, and the printed posters it becomes
   running off the panel's bottom edge. */
.fts { --p-ground: #f5efe3; --p-ink: #2b2721; --p-dim: #7c7466; --p-faint: #a39a8a; background: var(--p-ground); color: var(--p-ink); border-color: transparent; }
.fts .combo { padding: clamp(40px, 6vw, 72px) clamp(28px, 5vw, 64px) 0; }
.fts .top-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.fts .copy, .fts .tree { min-width: 0; }
.fts .tree { display: flex; justify-content: center; }
.fts .tree svg { width: min(100%, 440px); height: auto; overflow: visible; }
.fts .stroke { stroke: var(--p-faint); stroke-width: 1; fill: none; }
.fts .node { fill: var(--p-ground); stroke: var(--p-ink); stroke-width: 1.2; }
.fts .you { fill: var(--p-ink); }
.fts .tree text { font-family: var(--text); font-size: 12px; fill: var(--p-ink); text-anchor: middle; }
.fts .tree text.y { font-family: var(--mono); font-size: 9.5px; fill: var(--p-faint); }
.fts .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin-top: clamp(44px, 6vw, 72px); height: clamp(220px, 28vw, 340px); overflow: hidden; }
.fts .print { align-self: start; background: #fff; padding: 6px; border-radius: 3px; box-shadow: 0 1px 2px rgba(43, 39, 33, 0.06), 0 24px 48px -28px rgba(43, 39, 33, 0.35); }
.fts .print:nth-child(2) { margin-top: 28px; }
.fts .print img { border-radius: 1px; }

/* ---------- My Car Collection: flat night ---------- */
/* The copy on the left and one garage photo on the right. */
.mcc { --p-ground: #16171a; --p-ink: #f1f1f3; --p-dim: #9b9ea6; --p-faint: #6c6f77; background: var(--p-ground); color: var(--p-ink); }
.mcc .one { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding: clamp(40px, 7vw, 96px); }
.mcc .copy { min-width: 0; }
.mcc .photo { margin: 0; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 5; width: min(100%, 380px); max-width: 100%; justify-self: center; }
.mcc .photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact + footer ---------- */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 0 clamp(72px, 10vw, 120px); }
.contact h2 { margin: 0; font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.contact h2 span { color: var(--dim); }
.routes { margin: 0; border-top: 1px solid var(--line); }
.routes div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.routes dt { color: var(--faint); }
.routes dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.routes a { border-bottom: 1px solid var(--line); }
.routes a:hover { border-color: var(--dim); }
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding-block: 28px 48px; font-size: 13px; color: var(--faint); }
.fine { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 36px; }
.fine .abn { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.foot nav { display: flex; gap: 20px; }
.foot a:hover { color: var(--ink); }

/* ---------- privacy page ---------- */
.legal { max-width: 68ch; padding-block: clamp(56px, 9vw, 112px) clamp(64px, 9vw, 112px); }
.legal h1 { margin: 0; font-size: clamp(34px, 5vw, 52px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.legal .stamp { margin: 14px 0 34px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.legal h2 { margin: 36px 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.legal p, .legal li { color: var(--dim); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--line); }
.legal a:hover { border-color: var(--dim); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .fts .top-row { grid-template-columns: 1fr; }
  .fts .tree { justify-content: flex-start; }
  .mcc .one { grid-template-columns: 1fr; }
  .mcc .photo { justify-self: start; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section-label a { display: none; }
  .specs { grid-template-columns: 1fr; }
  .specs div { padding-block: 12px; }
  .fts .row { grid-template-columns: repeat(2, minmax(0, 1fr)); height: 230px; }
  .fts .print:nth-child(3) { display: none; }
  .routes div { grid-template-columns: 1fr; gap: 2px; }
  .panel { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
