/* SOPINT homepage. Paper and ink, a serif for display, one bronze accent.
   Proportions follow the golden ratio (1.618 : 1): the hero split, the
   idea rows, the type scale. No external requests. */

:root {
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", ui-serif, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --paper: #f6f4ee;
  --paper-deep: #efece4;
  --ink: #141a22;
  --body: #3d444d;
  --muted: #6b717a;
  --rule: #dcd8cd;
  --line: #c9c4b6;
  --accent: #8f7448;
  --on-ink: #f1efe9;
  --on-ink-muted: #a3a9b1;
  --ink-rule: #2c343f;
  --gutter: clamp(22px, 5.5vw, 84px);
  --measure: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* -- top ---------------------------------------------------------------------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--paper-deep); border-bottom: 1px solid var(--rule);
}
.wordmark { font: 600 14px var(--sans); letter-spacing: 0.46em; }
/* The symbol (phi standing on the infinity), drawn in the current colour. */
.mark {
  display: inline-block; width: 26px; aspect-ratio: 198 / 204;
  background: currentColor;
  -webkit-mask: url(/assets/symbol.svg) center / contain no-repeat;
  mask: url(/assets/symbol.svg) center / contain no-repeat;
}
.mark-large { display: block; width: clamp(104px, 11vw, 148px); margin: 0 auto 44px; }
.wordmark.small { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 14px; color: var(--muted); }
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--ink); }
.nav-signin {
  color: var(--ink); padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color 0.2s ease;
}
.nav-signin:hover { border-color: var(--ink); }

/* -- shared type -------------------------------------------------------------- */
.eyebrow {
  font: 600 12px var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.display {
  font: 400 clamp(32px, 4.4vw, 56px)/1.12 var(--serif);
  letter-spacing: -0.015em;
}

/* -- hero --------------------------------------------------------------------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.618fr 1fr; align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto;
  padding: 130px var(--gutter) 80px;
}
.hero-copy > * { animation: rise 1s ease both; }
.hero-copy > :nth-child(1) { animation-delay: 0.15s; }
.hero-copy > :nth-child(2) { animation-delay: 0.3s; }
.hero-copy > :nth-child(3) { animation-delay: 0.45s; }
.hero-copy > :nth-child(4) { animation-delay: 0.6s; }
h1 {
  margin-top: 26px;
  font: 400 clamp(46px, 6.6vw, 98px)/1.02 var(--serif);
  letter-spacing: -0.022em;
}
.lede { margin-top: 30px; max-width: 30em; font-size: clamp(17px, 1.45vw, 20px); color: var(--body); }
.actions { margin-top: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 30px; }
.button {
  display: inline-block; padding: 14px 28px; border-radius: 2px;
  background: var(--ink); color: var(--on-ink);
  font: 600 15px var(--sans); letter-spacing: 0.01em;
  transition: background 0.25s ease;
}
.button:hover { background: #2a3440; }
.quiet-link {
  font-size: 15px; color: var(--muted);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.quiet-link:hover { color: var(--ink); border-color: var(--ink); }
.contact {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 20px; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  animation: appear 0.4s ease both;
}
.contact-address { font-size: 16px; font-weight: 500; user-select: all; -webkit-user-select: all; }
.contact-copy {
  min-width: 80px; height: 38px; padding: 0 14px; border: 0; border-radius: 1px; cursor: pointer;
  background: var(--ink); color: var(--on-ink); font: 600 14px var(--sans);
  transition: background 0.2s ease;
}
.contact-copy:hover { background: #2a3440; }

figure { margin: 0; }
.hero-art { justify-self: end; width: 100%; max-width: 440px; animation: appear 1.8s ease 0.3s both; }
.hero-art img, .lead-art img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* The golden rectangle and its spiral, drawn in hairlines: a small ornament. */
.ornament { width: 40px; margin: 0 0 30px; }
.ornament svg { display: block; width: 100%; height: auto; overflow: visible; }
.grid-line { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.spiral {
  fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 3.2s cubic-bezier(0.45, 0, 0.2, 1) 0.3s;
}
.reveal.in .spiral { stroke-dashoffset: 0; }

/* -- lead: the stair beside the one-line thesis ------------------------------- */
.lead {
  display: grid; grid-template-columns: 1fr 1.618fr; align-items: stretch;
  gap: clamp(36px, 6vw, 96px);
  padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(48px, 6vw, 84px);
}
/* The stair takes its height from the thesis: top level with the ornament,
   bottom level with the last line of text. */
.lead-art { position: relative; }
.lead-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thesis .display { margin-bottom: -0.14em; }
.thesis em { font-style: italic; color: var(--accent); }

/* -- ideas: one row of three -------------------------------------------------- */
.ideas-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.idea { padding: 34px 32px 40px 0; }
.idea + .idea { padding-left: 32px; border-left: 1px solid var(--rule); }
.num { display: block; margin-bottom: 12px; font: italic 400 19px var(--serif); color: var(--accent); }
.idea h2 { font: 400 clamp(26px, 2.7vw, 34px)/1.15 var(--serif); letter-spacing: -0.012em; }
.idea p { margin-top: 12px; color: var(--body); font-size: 16px; }

/* -- who ---------------------------------------------------------------------- */
.who { padding-top: clamp(72px, 8.5vw, 116px); padding-bottom: clamp(72px, 8.5vw, 116px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .display { margin-top: 20px; }
.section-lede { margin-top: 24px; font-size: 18px; max-width: 32em; }
.kinds { border-top: 1px solid var(--rule); }
.kinds li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 17px 0; border-bottom: 1px solid var(--rule);
  font: 400 clamp(20px, 2vw, 25px) var(--serif);
  transition: padding-left 0.35s ease;
}
.kinds li:hover { padding-left: 12px; }
.kind-note { font: 400 15px var(--sans); color: var(--muted); text-align: right; }
.kinds li:last-child > span:first-child { font-style: italic; color: var(--accent); }

/* -- security (a deeper paper) ------------------------------------------------ */
.security { background: var(--paper-deep); padding: clamp(72px, 8.5vw, 116px) 0 clamp(40px, 5vw, 68px); }
.security .section-lede { color: var(--body); }
.measures { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(28px, 4vw, 56px); }
.measures > div { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.measures dt { font: 400 21px/1.3 var(--serif); margin-bottom: 12px; }
.measures dd { color: var(--body); font-size: 15.5px; }

/* -- closing ------------------------------------------------------------------ */
/* The open horizon. The deeper paper above fades into the photograph's sky. */
.closing {
  padding: clamp(48px, 6.5vw, 92px) var(--gutter) clamp(230px, 27vw, 400px); text-align: center;
  background:
    linear-gradient(180deg, var(--paper-deep) 0%, rgba(239, 236, 228, 0) 46%),
    var(--paper) url("assets/horizon.jpg") center bottom / cover no-repeat;
}
.closing .display { font-size: clamp(38px, 5.6vw, 76px); }
.closing .actions { justify-content: center; }

/* -- foot --------------------------------------------------------------------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding: 28px var(--gutter); border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--muted);
}

/* -- motion ------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .hero-art, .contact { animation: none; }
  .spiral { stroke-dashoffset: 0; transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .kinds li { transition: none; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 56px; }
  .hero { min-height: 0; padding-bottom: 56px; }
  /* Stacked, the tall arch would fill the screen: a capped square keeps the
     curve and the horizon. */
  .hero-art { justify-self: start; max-width: 400px; }
  .hero-art img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; }
  /* The thesis line comes between the two photographs, not after both. */
  .lead { grid-template-columns: 1fr; }
  .lead-art { order: 2; }
  .lead-art img { position: static; height: auto; aspect-ratio: 1.618 / 1; }
  .thesis .display { margin-bottom: 0; }
  .ideas-list { grid-template-columns: 1fr; }
  .idea, .idea + .idea { padding: 28px 0; border-left: 0; }
  .idea + .idea { border-top: 1px solid var(--rule); }
  .measures { grid-template-columns: 1fr; }
  .kinds li { flex-direction: column; gap: 4px; }
  .kind-note { text-align: left; }
  .nav a:not(.nav-signin) { display: none; }
}
