/* Simon Patole, one-page portfolio. Built from the chosen mockup (round 3, R2 ink, Calm2).
   The rate card is dark water with a real-time fluid simulation in it (assets/ink.js). */

/* Bricolage Grotesque, self-hosted (SIL Open Font License, see fonts/OFL.txt). One variable file per subset. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 300 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback for the moment before the webfont arrives (body text width measured against Arial). */
@font-face {
  font-family: "Bricolage Fallback";
  src: local("Arial"), local("Helvetica"), local("Arial MT");
  size-adjust: 104%;
  ascent-override: 89.4%;
  descent-override: 26%;
  line-gap-override: 0%;
}

:root {
  --bg: #f1f2f5;
  --paper: #ffffff;
  --ink: #121628;
  --muted: #535a6f;
  --rule: #d6d9e2;
  --ultra: #2b3cc4;
  --night: #0b0f1e;
  --night-text: #e9ebf3;
  --night-muted: #a9afc4;
  --f: "Bricolage Grotesque", "Bricolage Fallback", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 40px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); font-variation-settings: "opsz" 14; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ultra); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

.bar .wrap { display: flex; justify-content: space-between; align-items: center; height: 72px; gap: 16px; }
.name { font-weight: 700; font-size: 17px; font-variation-settings: "opsz" 24; }
.name span { color: var(--muted); font-weight: 400; }
@media (max-width: 520px) { .name span { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 999px; white-space: nowrap; border: 1.5px solid var(--ink); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ultra); border-color: var(--ultra); }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--paper); color: var(--ink); border-color: var(--ink); }

.hero { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 40px 0 64px; }
@media (min-width: 1000px) { .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 64px; padding: 72px 0 96px; align-items: center; } }
.kicker { font-size: 15px; font-weight: 500; color: var(--ultra); margin: 0 0 20px; }
h1 { font-weight: 650; font-size: clamp(36px, 4.7vw, 64px); line-height: 1.02; letter-spacing: -0.022em; font-variation-settings: "opsz" 96, "wdth" 90; margin: 0 0 28px; text-wrap: balance; }
.bio { color: var(--muted); font-size: 18px; margin: 0 0 32px; max-width: 34em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* the lit rate card */
.glance { position: relative; isolation: isolate; border-radius: 22px; overflow: hidden; color: var(--night-text);
  background: radial-gradient(120% 90% at 30% 10%, #1c2547 0%, var(--night) 60%); box-shadow: 0 30px 60px -30px rgba(11, 15, 30, .55);
  touch-action: pan-y; }
.glance canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity .8s; }
.glance.lit canvas { opacity: 1; }
.glance-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 28px 8px; min-height: 63px; } /* room for the motion toggle, which appears once the effect starts, so nothing shifts */
.glance-label { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.6; color: var(--night-muted); }
.toggle { appearance: none; border: 1px solid rgba(233, 235, 243, .28); background: rgba(11, 15, 30, .4); color: var(--night-text); font: 500 13px/1 var(--f); padding: 8px 12px; border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.toggle[hidden] { display: none; }
.toggle:hover { border-color: rgba(233, 235, 243, .6); }
.toggle i { width: 8px; height: 8px; border-radius: 50%; background: #9fb2ff; }
.toggle.is-paused i { background: transparent; box-shadow: inset 0 0 0 1.5px #9fb2ff; }
.glance :focus-visible { outline-color: #c9d3ff; }
.glance .rows { padding: 4px 28px 16px; }
.glance a.row { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-top: 1px solid rgba(233, 235, 243, .14); text-decoration: none; }
.glance a.row:first-child { border-top: 0; }
.glance .t { font-weight: 600; font-size: 17px; }
.glance .d { color: var(--night-muted); font-size: 14px; grid-column: 1; }
.glance .p { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; white-space: nowrap; font-weight: 600; font-size: 30px; letter-spacing: -0.01em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 88; font-variant-numeric: tabular-nums; }
.glance .p small { display: block; font-size: 13px; font-weight: 500; color: var(--night-muted); letter-spacing: 0; margin-bottom: 4px; font-variation-settings: "opsz" 14; }
.glance a.row:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* ink in dark water: the text gets a soft dark halo so it reads over the brightest ink */
.glance-label, .glance .t, .glance .d, .glance .p { text-shadow: 0 0 14px rgba(11, 15, 30, .9), 0 0 3px rgba(11, 15, 30, .7); }
@media (max-width: 520px) {
  .glance-head { padding: 20px 18px 4px; min-height: 55px; }
  .glance .rows { padding: 0 18px 8px; }
  .glance .p { font-size: 24px; }
}

.proof { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof .wrap { display: grid; grid-template-columns: 1fr; }
@media (min-width: 860px) { .proof .wrap { grid-template-columns: repeat(3, 1fr); } }
.proof .cell { padding: 32px 0; border-top: 1px solid var(--rule); }
.proof .cell:first-child { border-top: 0; }
@media (min-width: 860px) {
  .proof .cell { padding: 44px 36px 48px; border-top: 0; border-left: 1px solid var(--rule); }
  .proof .cell:first-child { border-left: 0; padding-left: 0; }
}
.big { font-weight: 700; font-size: 68px; line-height: .95; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 85; margin: 0 0 16px; color: var(--ultra); }
.big small { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--muted); font-variation-settings: "opsz" 24, "wdth" 100; }
.proof h2 { font-size: 17px; font-weight: 650; line-height: 1.6; margin: 0 0 6px; }
.proof p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30em; }

.sheet { padding: 88px 0 8px; }
.sheet-head { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; border-bottom: 1.5px solid var(--ink); }
@media (min-width: 820px) { .sheet-head { grid-template-columns: 1fr auto; align-items: end; } }
.num { font-size: 15px; font-weight: 500; color: var(--ultra); margin: 0 0 10px; }
.sheet h2 { font-weight: 650; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 92; margin: 0; text-wrap: balance; }
@media (min-width: 820px) { .price-tag { text-align: right; } }
.price-tag .from { font-size: 14px; color: var(--muted); }
.price-tag .amt { font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "opsz" 96, "wdth" 88; }
.price-tag .terms { font-size: 14px; color: var(--muted); }

.spec { margin: 0; }
.spec > div { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) { .spec > div { grid-template-columns: 200px 1fr; gap: 32px; } }
.spec dt { font-size: 15px; font-weight: 650; color: var(--muted); }
.spec dd { margin: 0; font-size: 17px; max-width: 40em; }
.spec ul { margin: 0; padding: 0; list-style: none; }
.spec li { position: relative; padding-left: 26px; margin: 0 0 10px; }
.spec li:last-child { margin-bottom: 0; }
.spec li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ultra); }

.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 560px; }
.timeline.single { grid-template-columns: 1fr; }
.timeline div { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.timeline b { display: block; font-size: 13px; font-weight: 650; color: var(--ultra); margin-bottom: 2px; }

.day { margin: 72px 0 0; padding: 26px 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
@media (max-width: 520px) { .day { padding: 20px 18px; } }
.day p { margin: 0; color: var(--muted); font-size: 17px; max-width: 42em; }
.day p b { color: var(--ink); }
.day .amt { font-weight: 700; font-size: 32px; letter-spacing: -0.015em; white-space: nowrap; font-variation-settings: "opsz" 96, "wdth" 88; }
.day .amt small { font-weight: 500; font-size: 15px; letter-spacing: 0; color: var(--muted); font-variation-settings: "opsz" 14, "wdth" 100; }

.about { display: grid; grid-template-columns: 1fr; gap: 12px 32px; padding: 88px 0; margin: 0; }
@media (min-width: 820px) { .about { grid-template-columns: 200px 1fr; } }
.about dt { font-size: 15px; font-weight: 650; color: var(--muted); }
.about dd { margin: 0; }
.about p { margin: 0; font-size: 20px; line-height: 1.55; max-width: 36em; }

.contact { background: var(--night); color: var(--night-text); }
.contact :focus-visible { outline-color: #c9d3ff; }
.contact .wrap { padding-top: 72px; padding-bottom: 48px; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.contact h2 { font-weight: 650; font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em; font-variation-settings: "opsz" 96, "wdth" 90; margin: 0 0 12px; }
.contact p { margin: 0; color: var(--night-muted); font-size: 18px; }
.contact .btn { background: #fff; color: var(--night); border-color: #fff; }
.contact .btn:hover { background: #c9d3ff; border-color: #c9d3ff; }
.contact .btn.line { background: transparent; color: #fff; }
.contact .btn.line:hover { background: rgba(255,255,255,.1); }
.contact .meta { width: 100%; font-size: 14px; color: var(--night-muted); border-top: 1px solid #252b44; padding-top: 22px; margin-top: 16px; }
