/* robgentul.com: a sister to the booking page at book.robgentul.com.
   Light tokens come from Builds/Scheduler/worker/src/app.css. Dark mode is night teal (Rob, 2026-10-16, Q1/Q12);
   the booking page takes the same dark tokens at launch. Change both together.
   Type: the device's own fonts (SF Pro and the New York serif on Apple devices). */

:root {
  color-scheme: light;
  --page: #eef6f2; --surface: #ffffff; --forest: #1f3d34; --on-forest: #f1f8f5; --on-forest-muted: #a9c9bd;
  --pine: #2d6a56; --mint: #dcf1e9; --mint-soft: #eef8f4; --ink: #17231f; --ink-soft: #33463f; --muted: #5d6e67; --line: #dbe5e1;
  --btn: #1f3d34; --btn-ink: #f1f8f5; --ghost-line: #b9d3c7; --hover: #dcf1e9; --fig: #1f3d34;
  --glass: rgb(255 255 255 / .55); --hero-glow: #e3f3ea; --cta: #1f3d34; --cta-muted: #a9c9bd;
  --stem: #5d7f4f; --leaf1: #2f6b45; --leaf2: #3f8a55; --leaf3: #5f9f62; --variegate: #e8e6a8;
  --shadow: 0 18px 36px -24px rgb(16 40 32 / .45);
  --sans: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-small: 10px; --r-card: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b181b; --surface: #11242a; --forest: #0f2a26; --on-forest: #e3f1eb; --on-forest-muted: #93b8ab;
    --pine: #8fd6bd; --mint: #173530; --mint-soft: #132b2c; --ink: #e4efea; --ink-soft: #c3d4ce; --muted: #93aaa5; --line: #1f3a3c;
    --btn: #8fd6bd; --btn-ink: #0b181b; --ghost-line: #2c4f4b; --hover: #16322f; --fig: #a8e3cd;
    --glass: rgb(17 36 42 / .62); --hero-glow: #10302f; --cta: #133a34; --cta-muted: #93b8ab;
    --stem: #4f7652; --leaf1: #2b6648; --leaf2: #367a55; --leaf3: #4a8c62; --variegate: #c6c487;
    --shadow: 0 18px 36px -24px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0; }
p { margin: 0 0 14px; }
a { color: var(--pine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--pine); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: var(--r-small); }
.skip:focus { top: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }

/* ---- header */
.header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; position: relative; z-index: 2; }
.identity { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--pine); text-decoration: underline; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: var(--r-small);
  background: var(--btn); color: var(--btn-ink); font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap; transition: filter .2s; }
.btn:hover { filter: brightness(1.1); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .9rem; }
.btn.ghost { background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1px var(--ghost-line); }

/* ---- pothos. Default: fully grown and still. Motion is added only when allowed. */
.pothos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pothos .stem { fill: none; stroke: var(--stem); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pothos .petiole { stroke: var(--stem); stroke-width: 1.6; }
.pothos .leaf { stroke: rgb(0 0 0 / .06); stroke-width: .6; }
.pothos .l1 { fill: var(--leaf1); } .pothos .l2 { fill: var(--leaf2); } .pothos .l3 { fill: var(--leaf3); }
.pothos .var { fill: var(--variegate); opacity: .75; }
.pothos .rib { stroke: rgb(255 255 255 / .28); stroke-width: .9; fill: none; }
.pothos .unfurl, .pothos .sway { transform-box: fill-box; transform-origin: 50% 100%; }
.pothos .vine { transform-origin: 0 0; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes unfurl { from { transform: scale(0) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sway { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@keyframes drift { from { transform: rotate(-.6deg); } to { transform: rotate(.8deg); } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero vines grow in once on load, then sway gently for good (Rob, Q11). */
  .pothos:not(.scroll) .stem { animation: draw 4.2s cubic-bezier(.3,.1,.2,1) both; }
  .pothos:not(.scroll) .unfurl { animation: unfurl 1.1s cubic-bezier(.2,.9,.3,1.2) both; }
  .pothos .sway { animation: sway 9s ease-in-out infinite alternate; }
  .pothos .vine.drift-a { animation: drift 14s ease-in-out infinite alternate; }
  .pothos .vine.drift-b { animation: drift 17s ease-in-out infinite alternate; }
}
/* Section vines grow as the section scrolls in, where the browser supports scroll-driven animation. */
.grow { position: relative; view-timeline: --grow block; }
@supports (animation-timeline: view()) and (animation-range: cover 0% cover 10%) {
  @media (prefers-reduced-motion: no-preference) {
    .pothos.scroll .stem { animation: draw linear both; animation-timeline: --grow; }
    .pothos.scroll .unfurl { animation: unfurl linear both; animation-timeline: --grow; }
  }
}

/* ---- home hero */
.hero { position: relative; min-height: min(86vh, 760px); overflow: hidden; background: radial-gradient(120% 90% at 85% 10%, var(--hero-glow) 0%, var(--page) 60%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--page)); pointer-events: none; }
.hero-copy { padding: clamp(80px, 14vh, 150px) 0 64px; max-width: 640px; }
.hero h1 { font-size: clamp(3.2rem, 2rem + 5vw, 6rem); font-weight: 500; letter-spacing: -.02em; margin: 14px 0 18px; }
.hero .line { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--ink-soft); max-width: 34ch; margin: 0 0 30px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-impact { position: relative; z-index: 1; padding-bottom: 8px; }
.hero-impact .impact { background: var(--glass); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: var(--r-small); border: 1px solid var(--line); padding: 0 24px; }
.pothos.phone { display: none; }
.page-top { position: relative; }

/* ---- impact strip (Chad) */
.impact { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.impact > div { padding: 24px 24px 22px 0; display: flex; flex-direction: column; }
.impact > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.impact .fig { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--fig); white-space: nowrap; line-height: 1.2; }
.impact.four .fig { font-size: 2.2rem; }
.impact .lab { font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.impact .ctx { font-size: .88rem; color: var(--muted); margin: 4px 0 12px; }
.impact .more { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--pine); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px; padding-bottom: 2px; transition: background-size .3s; }
.impact .more span, .row .arrow { display: inline-block; transition: transform .3s; }
.impact .more:hover, .impact .more:focus-visible { background-size: 100% 1px; }
.impact .more:hover span { transform: translateX(4px); }
.impact-note { font-size: .8rem; color: var(--muted); margin: 10px 0 0; }

/* ---- sections */
main { position: relative; z-index: 0; }
.section { margin-top: 88px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 1.9rem; }

/* ---- work rows with hover (Mike / Brittany) */
.rows { list-style: none; margin: 0; padding: 0; }
.row a { display: grid; grid-template-columns: 44px 1fr auto; gap: 6px 20px; align-items: baseline; padding: 24px 18px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; border-radius: var(--r-small);
  background: linear-gradient(90deg, var(--hover) 0 0) no-repeat 0 0 / 0% 100%; transition: background-size .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.row:last-child a { border-bottom: 1px solid var(--line); }
.row .num { font-family: var(--serif); color: var(--muted); }
.row h3 { font-size: 1.5rem; display: inline; background: linear-gradient(var(--pine), var(--pine)) no-repeat 0 100% / 0% 2px; transition: background-size .35s .05s; padding-bottom: 2px; }
.row .arrow { color: var(--pine); margin-left: 8px; }
.row .sub { grid-column: 2; color: var(--muted); margin: 2px 0 0; font-size: .98rem; }
.row .chips { grid-column: 2; }
.row .stat { grid-row: 1 / span 2; grid-column: 3; text-align: right; }
.row .stat b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--fig); white-space: nowrap; }
.row .stat span { font-size: .78rem; color: var(--muted); }
.row a:hover, .row a:focus-visible { background-size: 100% 100%; }
.row a:hover h3, .row a:focus-visible h3 { background-size: 100% 2px; }
.row a:hover .arrow, .row a:focus-visible .arrow { transform: translateX(6px); }
.rows:hover .row a:not(:hover) { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: .75rem; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); }

/* ---- open source */
.os { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.os a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; color: inherit; text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.os a:hover, .os a:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--ghost-line); }
.os .repo { font-family: var(--mono); font-size: .85rem; color: var(--pine); }
.os h3 { font-size: 1.15rem; margin: 6px 0; } .os p { margin: 0; color: var(--muted); font-size: .94rem; }
.os .soon { margin-top: auto; padding-top: 12px; font-size: .75rem; font-weight: 600; color: var(--muted); }

/* ---- experience */
.xp { list-style: none; margin: 0; padding: 0; }
.xp li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.xp .when { color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; padding-top: 3px; }
.xp strong { font-family: var(--serif); font-size: 1.12rem; } .xp p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }

/* ---- call to action */
.cta { margin: 88px 0 40px; background: var(--cta); color: var(--on-forest); border-radius: var(--r-card); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta > div, .cta > .actions { position: relative; z-index: 1; }
.cta h2 { color: var(--on-forest); font-size: 1.9rem; } .cta p { margin: 4px 0 0; color: var(--cta-muted); }
.cta .btn { background: var(--on-forest); color: #0f2a26; }
.cta .btn.ghost { background: transparent; color: var(--on-forest); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }

/* ---- section vines */
.pothos.side { inset: auto; position: absolute; top: -20px; width: 220px; height: calc(100% + 40px); z-index: -1; }
.pothos.side.right { right: -200px; } .pothos.side.left { left: -210px; }
.pothos.cta-vine { inset: -30px -10px auto auto; width: 520px; height: 260px; z-index: 0; }

/* ---- case study (Chad) */
.back { display: inline-block; margin: 28px 0 30px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--pine); }
.case h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.2rem); font-weight: 500; letter-spacing: -.02em; max-width: 18ch; margin: 12px 0 18px; }
.case h1 em { font-style: normal; color: var(--pine); }
.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 54ch; margin: 0 0 28px; }
.meta { display: flex; flex-wrap: wrap; gap: 14px 44px; padding: 22px 0; margin: 0; border-top: 1px solid var(--line); }
.meta dt { font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); } .meta dd { margin: 2px 0 0; }
.case > .chips { padding-bottom: 30px; margin-top: 0; }
.visual { margin: 56px 0 0; }
.visual img { display: block; width: 100%; height: auto; border-radius: var(--r-card); border: 1px solid var(--line); }
.visual .slot { aspect-ratio: 16 / 9; border: 2px dashed var(--ghost-line); border-radius: var(--r-card); display: grid; place-items: center; text-align: center; color: var(--muted); background: var(--mint-soft); padding: 20px; }
.visual .slot strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 6px; }
.visual figcaption { color: var(--muted); font-size: .86rem; margin-top: 10px; }
.block { display: grid; grid-template-columns: 280px 1fr; gap: 24px 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.visual + .block { border-top: 0; }
.block h2 { font-size: 1.75rem; } .block .body { max-width: 66ch; color: var(--ink-soft); }
.beat { padding: 0 0 22px 22px; border-left: 2px solid var(--line); position: relative; }
.beat::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--page); border: 2px solid var(--pine); }
.beat h3 { font-size: 1.2rem; margin: 0 0 6px; color: var(--ink); } .beat p { margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.checks li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-small); }
.checks b { color: var(--ink); }
.note { font-size: .86rem; color: var(--muted); }

/* ---- fictional Slack demo (Voice Journal) */
.slack-demo { border: 1px solid var(--line); border-radius: var(--r-small); padding: 18px 20px; background: var(--surface); }
.slack-from { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slack-avatar { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--forest); color: var(--on-forest); font-family: var(--serif); font-weight: 600; font-size: .9rem; }
.ask { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.ask p { margin: 0; } .ask-title { font-weight: 600; margin-top: 6px; color: var(--ink); } .ask-quote { color: var(--muted); font-size: .92rem; font-style: italic; }
.ask-buttons { display: flex; gap: 6px; flex: none; } .ask-buttons span { border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; font-size: .86rem; white-space: nowrap; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--mint); color: var(--pine); font-size: .78rem; font-weight: 600; }

/* ---- about */
.page-head { padding: 40px 0 8px; } .page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); font-weight: 500; margin: 12px 0 14px; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; margin-top: 40px; }
.how { list-style: none; padding: 0; margin: 0; }
.how li { padding: 14px 0; border-top: 1px solid var(--line); } .how strong { display: block; font-family: var(--serif); font-size: 1.08rem; } .how span { color: var(--muted); font-size: .96rem; }

/* ---- footer */
.footer { color: var(--muted); font-size: .88rem; padding: 24px 0 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; } .footer nav { display: flex; gap: 18px; flex-wrap: wrap; } .footer a { color: var(--muted); } .footer a:hover { color: var(--pine); }

/* ---- responsive */
@media (max-width: 1500px) { .pothos.side.right { right: -150px; } .pothos.side.left { left: -160px; } }
@media (max-width: 1300px) { .pothos.side { opacity: .35; } }
/* Below 1100px the canopy would grow over the name, so swap to the compact strip above the text. */
@media (max-width: 1100px) {
  .hero { min-height: auto; } .hero-copy { padding: 190px 0 48px; }
  .hero > .pothos.desk { display: none; } .pothos.phone { display: block; height: 210px; inset: 0 0 auto auto; }
}
@media (max-width: 760px) { .hero-copy { padding-top: 170px; } .pothos.phone { height: 190px; } }
@media (max-width: 900px) {
  .block { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; }
  .impact.four { grid-auto-flow: row; grid-template-columns: 1fr 1fr; } .impact.four > div:nth-child(3) { padding-left: 0; border-left: 0; } .impact.four > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; } .wrap { padding: 0 16px; } .nav { gap: 14px; } .nav .hide-sm { display: none; }
  .impact, .impact.four { grid-auto-flow: row; grid-template-columns: 1fr; }
  .impact > div + div, .impact.four > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .row a { grid-template-columns: 1fr; padding: 20px 12px; } .row .sub, .row .chips { grid-column: 1; } .row .stat { grid-row: auto; grid-column: 1; text-align: left; } .row .num { display: none; }
  .os { grid-template-columns: 1fr; } .xp li { grid-template-columns: 1fr; }
  .pothos.side { display: none; } .pothos.cta-vine { width: 340px; height: 170px; inset: -20px -20px auto auto; }
  .cta { padding: 28px 22px; } .ask { flex-direction: column; } .section { margin-top: 64px; }
}
@media (max-width: 380px) { .nav .btn { display: none; } }
