@font-face { font-family: 'Space Grotesk'; src: url(/fonts/SpaceGrotesk.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #F6F6F3; --card: #FFFFFF; --ink: #141416; --soft: #5D5E66; --faint: #8A8B94; --line: #E4E4DF;
  --card-top: #FFFFFF; --sheen: rgba(255, 255, 255, .9);
  --l-green: #006837; --l-brown: #B5651B; --l-ochre: #E79C49; --l-red: #811C24;
  --accent: #3B5BFF; --live: #1F8F5A; --live-bg: #E3F5EC; --dev: #8A6100; --dev-bg: #FBF0D2;
  --shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 18px 40px -22px rgba(20, 20, 22, .28);
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F0F11; --card: #18181B; --ink: #F2F2F0; --soft: #A6A7AF; --faint: #7C7D86; --line: #2A2A2F;
    --card-top: #1D1D21; --sheen: rgba(255, 255, 255, .06);
    --l-green: #3DAA6E; --l-brown: #C9772C; --l-ochre: #E9A353; --l-red: #B03440;
    --accent: #8197FF; --live: #5BD69A; --live-bg: #12301F; --dev: #F2CE6B; --dev-bg: #33290F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F0F11; --card: #18181B; --ink: #F2F2F0; --soft: #A6A7AF; --faint: #7C7D86; --line: #2A2A2F;
  --card-top: #1D1D21; --sheen: rgba(255, 255, 255, .06);
    --l-green: #3DAA6E; --l-brown: #C9772C; --l-ochre: #E9A353; --l-red: #B03440;
    --accent: #8197FF; --live: #5BD69A; --live-bg: #12301F; --dev: #F2CE6B; --dev-bg: #33290F;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 18px 40px -22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); }
a { color: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 24px; }
.label { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 20px; }

/* header */
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 0; }
nav { display: flex; align-items: center; gap: 24px; font-size: 15px; }
nav a { text-decoration: none; color: var(--soft); }
nav a:hover { color: var(--ink); }
nav .lang { font: 500 13px var(--mono); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* intro */
.intro { padding-block: 72px 48px; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--soft); margin: 0 0 26px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--live-bg); }
h1 { width: fit-content; font-size: clamp(34px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 600; margin: 0 0 22px; max-width: 21ch; text-wrap: balance; }
h1 span { color: var(--faint); }
.lede { font-size: 19px; color: var(--soft); max-width: 58ch; margin: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 30px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); }
.meta b { color: var(--ink); font-weight: 600; }

/* projects */
section { padding-block: 40px; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project { position: relative; z-index: 1; display: flex; flex-direction: column; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: inset 0 1px 0 var(--sheen), 0 1px 2px rgba(20, 20, 22, .04), 0 14px 34px -22px rgba(20, 20, 22, .3); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.project:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 var(--sheen), var(--shadow); }
.cover { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.cover img, .cover video { width: 100%; height: 100%; object-fit: cover; }
.cover.uko { background: #E3E8F4; }
.cover.subflow { background: #F4F2EC; }
.info { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.info .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.info h3 { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.live { color: var(--live); background: var(--live-bg); }
.pill.dev { color: var(--dev); background: var(--dev-bg); }
.info p { margin: 0; color: var(--soft); font-size: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font: 500 12px var(--mono); color: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.go { margin-top: auto; padding-top: 12px; font-size: 15px; font-weight: 600; }
.go small { font-weight: 400; color: var(--faint); font-size: 14px; }
.project:hover .go { color: var(--accent); }
.more { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 0; font-size: 15px; }
.more a { color: var(--soft); text-underline-offset: 3px; }

/* now + about */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .when { font: 500 13px var(--mono); color: var(--faint); padding-top: 3px; }
.timeline b { font-weight: 600; display: block; }
.timeline span { color: var(--soft); font-size: 15px; }
.about p { margin: 0 0 18px; color: var(--soft); font-size: 19px; max-width: 62ch; }
.about p strong { color: var(--ink); font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.stack li { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

/* company + contact */
.company { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.company div { padding: 16px 18px; border-left: 1px solid var(--line); }
.company div:first-child { border-left: 0; }
.company dt { font-size: 13px; color: var(--faint); margin-bottom: 2px; }
.company dd { margin: 0; font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; }
.legal-note { font-size: 14px; color: var(--faint); margin: 12px 0 0; }
.legal-note a { color: var(--soft); }
.contact { margin-top: 24px; }
.contact h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; margin: 0 0 16px; max-width: 18ch; text-wrap: balance; }
.contact .elsewhere { margin: 14px 0 0; font-size: 15px; }
.contact .elsewhere a { color: var(--soft); text-underline-offset: 3px; }
.contact a.mail { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 32px 44px; color: var(--faint); font-size: 14px; }
footer { border-top: 1px solid var(--line); margin-top: 56px; }
footer nav { font-size: 14px; gap: 18px; }

.doc { padding-block: 48px 20px; }
.doc h1 { font-size: 40px; max-width: none; }
.doc h2 { font-size: 21px; margin: 28px 0 8px; font-weight: 600; }
.doc p { color: var(--soft); max-width: 70ch; }

@media (max-width: 820px) {
  .projects, .cols { grid-template-columns: 1fr; }
  .cols { gap: 40px; }
  .company { grid-template-columns: repeat(2, 1fr); }
  .company div:nth-child(3) { border-left: 0; }
  .company div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .wrap { padding-inline: 16px; }
  header nav a[href^="#"] { display: none; }
  .intro { padding-block: 40px 24px; }
  .lede { font-size: 17px; }
  .timeline li { grid-template-columns: 76px 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .project { transition: none; } }

/* Uko, the guide */
.guide { position: fixed; right: 22px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 92px; height: 138px; z-index: 40; }
.guide-bubble { position: fixed; left: 0; top: 0; z-index: 41; max-width: 230px; padding: 9px 13px; border-radius: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4; pointer-events: none; animation: bubble-in .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes bubble-in { from { opacity: 0; scale: .92; } }
@media (max-width: 560px) { .guide { right: 8px; width: 58px; height: 87px; } .guide-bubble { max-width: 190px; font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { .guide-bubble { animation: none; } }

/* a support for Uko: the about and the contact are cards */
.panel { position: relative; z-index: 1; background: linear-gradient(180deg, var(--card-top), var(--card)); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px 30px; box-shadow: inset 0 1px 0 var(--sheen), 0 1px 2px rgba(20, 20, 22, .04), 0 14px 34px -22px rgba(20, 20, 22, .3); }
.panel .label { margin-bottom: 14px; }
@media (max-width: 560px) { .panel { padding: 22px 20px 24px; } }

/* Uko's look: a button bottom left, and its card */
.look-btn { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 42; height: 46px; min-width: 46px; padding: 0 16px 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 8px; font: 600 14px var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; transition: transform .2s ease; }
.look-btn:hover { transform: scale(1.06); }
.look-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.look-card { position: fixed; left: 18px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 43; width: min(300px, calc(100vw - 36px)); padding: 16px 16px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 14px; animation: bubble-in .2s cubic-bezier(.2, .8, .2, 1); }
.look-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 16px; }
.look-x { border: 0; background: none; color: var(--soft); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.look-label { margin: 12px 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.look-chars { display: flex; flex-wrap: wrap; gap: 6px; }
.look-chip { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.look-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.look-hair { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--paper); }
.look-hair-name { flex: 1; text-align: center; font-weight: 600; }
.look-arrow { width: 32px; height: 30px; border: 0; border-radius: 9px; background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.look-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.look-swatch { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(20, 20, 22, .18); cursor: pointer; }
.look-swatch[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.look-random { margin-top: 14px; width: 100%; font: inherit; font-weight: 600; padding: 9px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.look-random:hover, .look-chip:hover, .look-arrow:hover { border-color: var(--soft); }
@media (prefers-reduced-motion: reduce) { .look-card { animation: none; } .look-btn { transition: none; } }
@media (max-width: 560px) { .look-btn { padding: 0; justify-content: center; } .look-btn-text { display: none; } }

/* the logo: the A and its hat (Uko can borrow the hat) */
/* the first A of the name is the logo's A, wearing its hat */
.brand-logo { height: 1.02em; width: auto; display: inline-block; vertical-align: baseline; overflow: visible; margin: 0 .01em -.03em -.04em; transform: translateY(.03em); }
.l-green { fill: var(--l-green); } .l-brown { fill: var(--l-brown); } .l-ochre { fill: var(--l-ochre); } .l-red { fill: var(--l-red); } .l-white { fill: #FFFFFF; }
.l-brown-s { fill: none; stroke: var(--l-brown); }
.logo-hat { transition: opacity .2s ease; }
.brand.hat-off .logo-hat { opacity: 0; }
.logo-hat-hit { position: absolute; z-index: 2; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: 8px; }
.logo-hat-hit:focus { outline: none; }
.logo-hat-hit:focus-visible { outline: 2px solid var(--accent); }
.hat-layer { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; overflow: visible; pointer-events: none; }
.hat-click { pointer-events: visiblePainted; cursor: pointer; outline: none; filter: drop-shadow(0 2px 2px rgba(20, 20, 22, .18)); }
.hat-click:focus-visible { outline: 2px solid var(--accent); }
.hat-strap { fill: none; stroke: var(--l-brown); stroke-linecap: round; }
/* the Claude features of each product */
.ai { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 7%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); font-size: 14px; color: var(--soft); }
.ai b { display: block; font-size: 12px; letter-spacing: .02em; color: var(--accent); margin-bottom: 4px; }
.ai ul { margin: 0; padding-left: 18px; }
.ai li { margin: 2px 0; }
