:root {
  /* beige theme: sand paper, espresso ink, one deep clay accent */
  --paper: #ece5d8;
  --card: #f6f1e7;
  --ink: #231c17;
  --muted: #655a4f;
  --accent: #8a3d1e;   /* 6:1 on paper, so it never sinks into the background */
  --line: rgba(35, 28, 23, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(18px, 4vw, 64px);
  /* the work section tints itself per project */
  --work-bg: var(--paper);
  --work-fg: var(--ink);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; overflow-x: clip; scrollbar-color: var(--ink) var(--paper); }
body { background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.8125rem; }
.sec { font-family: var(--serif); font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }

/* top bar */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; padding: 24px var(--gutter); }
.brand { font-weight: 600; text-decoration: none; }
.top nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.top nav a { text-decoration: none; font-weight: 500; position: relative; }
.top nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.top nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: 104px var(--gutter) 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 27vw, 380px); gap: clamp(20px, 4vw, 64px); align-items: center; }
.hero-name { position: relative; }
.name { font-family: var(--serif); font-weight: 500; font-size: clamp(4rem, 13vw, 12.5rem); line-height: 0.88; letter-spacing: -0.035em; }
.name .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; } /* room for the j descender */
.name .in { display: inline-block; position: relative; }
.name .ch { display: inline-block; will-change: transform; }
.name .l2 { font-style: italic; padding-left: 0.5em; } /* same ink as line one, so it never sinks */


/* the photo: floats, drifts with the cursor, four discipline chips around it */
.hero-photo { position: relative; justify-self: end; width: 100%; }
.photo-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 180px 180px 18px 18px; overflow: hidden; background: var(--card);
  display: grid; place-items: center; box-shadow: 0 40px 60px -34px rgba(35, 28, 23, 0.55); animation: float 7s ease-in-out infinite; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.photo-mono { display: none; font-family: var(--serif); font-style: italic; font-size: clamp(3.5rem, 7vw, 6rem); color: var(--accent); }
.photo-frame.mono-on { outline: 1.5px dashed var(--line); outline-offset: -10px; }
.photo-frame.mono-on .photo-mono { display: block; }
@keyframes float { 50% { transform: translateY(-14px); } }
.chip { position: absolute; padding: 7px 15px; border-radius: 999px; background: var(--card); color: var(--ink); font-size: 0.8125rem; font-weight: 600;
  box-shadow: 0 10px 20px -12px rgba(35, 28, 23, 0.6), inset 0 0 0 1px var(--line); white-space: nowrap; }
.chip.c1 { top: 11%; left: -13%; }
.chip.c2 { top: 36%; right: -9%; background: var(--accent); color: #fff; box-shadow: 0 10px 20px -12px rgba(35, 28, 23, 0.6); }
.chip.c3 { bottom: 25%; left: -15%; }
.chip.c4 { bottom: 7%; right: -7%; }

.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: clamp(20px, 4vw, 64px); align-items: end; border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: clamp(28px, 5vh, 56px); }
.role { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; }
.intro { color: var(--muted); max-width: 48ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; border: 0; transition: transform 0.3s var(--ease), background 0.3s; white-space: nowrap; }
.pill:hover { transform: translateY(-2px); }
.pill-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.pill-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- statement + showreel ---------- */
.statement-wrap { padding: clamp(96px, 14vw, 190px) var(--gutter); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1500px; margin: 0 auto; }
.statement { font-size: clamp(1.5rem, 3.1vw, 2.75rem); line-height: 1.24; letter-spacing: -0.025em; font-weight: 500; max-width: 26ch; }
.statement .w { opacity: 0.16; }
.statement-side { display: grid; gap: 14px; justify-items: center; }
.reel { position: relative; width: clamp(210px, 25vw, 310px); aspect-ratio: 4 / 5; border: 0; padding: 0; border-radius: 18px; overflow: hidden;
  background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 40px 60px -34px rgba(35, 28, 23, 0.6); }
.reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35, 28, 23, 0.25), rgba(35, 28, 23, 0.6)); transition: background 0.5s var(--ease); }
.reel.no-poster::after { background: radial-gradient(120% 90% at 30% 15%, rgba(138, 61, 30, 0.75), transparent 70%); }
.reel:hover::after { background: linear-gradient(180deg, rgba(35, 28, 23, 0.15), rgba(35, 28, 23, 0.5)); }
.reel-ring { position: relative; z-index: 1; display: grid; place-items: center; width: 62%; aspect-ratio: 1; pointer-events: none; }
.reel-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.reel-ring text { font: 600 15px "Instrument Sans", sans-serif; letter-spacing: 0.1em; text-transform: uppercase; fill: #fff; }
.reel-play { width: 42%; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; font-size: 1.3rem;
  transition: transform 0.45s var(--ease), background 0.3s; }
.reel:hover .reel-play { transform: scale(1.12); background: var(--accent); color: #fff; }
.reel-cap { color: var(--muted); }
.magnet span { display: block; pointer-events: none; }

/* ---------- services dial ---------- */
.services { padding: clamp(64px, 9vw, 130px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.services .sec { margin-bottom: clamp(36px, 6vw, 72px); max-width: 16ch; }
.dial-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.dial { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: var(--ink); color: var(--paper);
  box-shadow: 0 40px 60px -30px rgba(35, 28, 23, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dial::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from var(--half), transparent 0 calc(var(--step) - 0.4deg), rgba(236, 229, 216, 0.18) calc(var(--step) - 0.4deg) var(--step)); }
.wedge { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--half), var(--accent) 0 var(--step), transparent var(--step)); }
.ring { position: absolute; inset: 0; border-radius: 50%; }
.seg { position: absolute; left: 50%; top: 50%; width: 28%; height: 19%; margin: -9.5% 0 0 -14%; background: none; border: 0; color: inherit;
  display: grid; place-items: center; align-content: center; gap: 3px; font-weight: 600; font-size: clamp(0.7rem, 1.15vw, 0.875rem); line-height: 1.15; text-align: center; border-radius: 12px; }
.seg i { font-size: 1.5em; opacity: 0.85; }
.seg:hover { background: rgba(236, 229, 216, 0.08); }
.hub { position: absolute; inset: 35%; border-radius: 50%; background: var(--paper); color: var(--accent); display: grid; place-items: center; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  box-shadow: 0 0 0 10px rgba(236, 229, 216, 0.08), 0 14px 30px -12px rgba(0, 0, 0, 0.6); }
.pointer { position: absolute; left: 50%; top: -14px; width: 0; height: 0; margin-left: -10px; border: 10px solid transparent; border-top: 14px solid var(--ink); border-bottom: 0; }
.dial-text h3 { font-family: var(--serif); font-size: clamp(2.2rem, 4.2vw, 3.5rem); letter-spacing: -0.02em; line-height: 1; font-weight: 500; }
.dial-text h3 .svc-kw { display: block; font-size: 0.32em; font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.dial-text p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; max-width: 42ch; }
.dial-text ul { margin-top: 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.dial-text li { display: flex; gap: 12px; align-items: baseline; }
.dial-text li::before { content: ""; width: 14px; height: 1.5px; background: var(--accent); flex: none; transform: translateY(-4px); }
.dial-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 30px; }
.round-sm { width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; font-size: 1.125rem; flex: none; transition: background 0.2s, color 0.2s; }
.round-sm:hover { background: var(--ink); color: var(--paper); }
.hint { color: var(--muted); margin-left: 8px; }

/* ---------- work: 3D coverflow ---------- */
.work { overflow: hidden; padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(110px, 12vw, 150px); background: var(--work-bg); color: var(--work-fg); transition: background 0.6s var(--ease), color 0.6s var(--ease); }
.work-head, .flow-info, .dots, .flow { max-width: 1500px; margin-left: auto; margin-right: auto; }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 0; background: transparent; padding: 9px 17px; border-radius: 999px; font-weight: 500; font-size: 0.9375rem; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.55; transition: opacity 0.2s, background 0.2s, color 0.2s; }
.filters button:hover { opacity: 1; }
.filters button[aria-pressed="true"] { opacity: 1; background: var(--work-fg); color: var(--work-bg); }

.flow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 2vw, 28px); }
.flow .round-sm { box-shadow: inset 0 0 0 1.5px currentColor; }
.flow .round-sm:hover { background: var(--work-fg); color: var(--work-bg); }
.flow-stage { position: relative; height: clamp(260px, 42vw, 520px); perspective: 1600px; outline: none; touch-action: pan-y; cursor: grab; }
.flow-stage.drag { cursor: grabbing; }
.card { position: absolute; top: 50%; left: 50%; width: min(62%, 760px); aspect-ratio: 16 / 10; margin: 0; border-radius: 16px; overflow: hidden; background: var(--card);
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease); box-shadow: 0 50px 70px -40px rgba(0, 0, 0, 0.65); }
.card img, .card video { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card .empty { width: 100%; height: 100%; display: grid; place-items: center; gap: 8px; align-content: center; text-align: center; padding: 20px; color: var(--muted);
  outline: 2px dashed var(--line); outline-offset: -14px; }
.card .empty i { font-size: 2rem; }
.card .veil { position: absolute; inset: 0; background: rgba(35, 28, 23, 0.45); opacity: 0; transition: opacity 0.6s var(--ease); }
.card[data-side] .veil { opacity: 1; }
.card[data-side] { cursor: pointer; }
.card .kind { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(35, 28, 23, 0.82); color: #f6f1e7; font-size: 0.75rem; font-weight: 600; }

.flow-info { margin-top: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end; min-height: 150px; }
.flow-info h3 { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1; letter-spacing: -0.03em; font-weight: 500; }
.flow-info p { margin-top: 12px; max-width: 46ch; opacity: 0.86; }
.flow-info .tags { margin-top: 10px; opacity: 0.78; }
.flow-info .pill { background: var(--work-fg); color: var(--work-bg); }
.dots { display: flex; gap: 8px; margin-top: 28px; }
.dots button { width: 34px; height: 4px; border: 0; padding: 0; border-radius: 99px; background: currentColor; opacity: 0.25; transition: opacity 0.3s; }
.dots button[aria-selected="true"] { opacity: 1; }

/* ---------- process ---------- */
.process { padding: clamp(80px, 10vw, 140px) var(--gutter); background-color: var(--paper); color: var(--ink);
  background-image: linear-gradient(rgba(35, 28, 23, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 28, 23, 0.07) 1px, transparent 1px); background-size: 32px 32px; }
.process .sec, .notes { max-width: 1500px; margin-left: auto; margin-right: auto; }
.process .sec { margin-bottom: clamp(36px, 6vw, 72px); max-width: 16ch; }
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.note { position: relative; background: var(--card); padding: 44px 28px 32px; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 18px 30px -18px rgba(35, 28, 23, 0.35); transition: transform 0.5s var(--ease); }
.note:nth-child(1) { transform: rotate(-2.4deg); }
.note:nth-child(2) { transform: rotate(1.6deg) translateY(28px); }
.note:nth-child(3) { transform: rotate(-1deg); }
.note:hover { transform: rotate(0) translateY(-6px); }
.clip { position: absolute; top: -18px; left: 28px; font-size: 2.6rem; color: var(--muted); transform: rotate(-12deg); }
.note h3 { font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
.note p { margin-top: 12px; color: var(--muted); }

/* ---------- skills ---------- */
.skills { padding: clamp(80px, 10vw, 140px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.skills-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.skills-note { color: var(--muted); max-width: 36ch; }
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.skill-card { position: relative; overflow: hidden; background: var(--card); border-radius: 18px; padding: clamp(24px, 3vw, 36px); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), color 0.5s var(--ease); }
.skill-card:nth-child(even) { margin-top: clamp(0px, 3vw, 40px); }
.skill-watermark { position: absolute; right: -14px; top: -18px; font-size: clamp(5rem, 9vw, 7.5rem); color: var(--ink); opacity: 0.05; transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.skill-card:hover { transform: translateY(-5px); background: var(--ink); color: var(--card); box-shadow: inset 0 0 0 1px var(--ink), 0 30px 46px -28px rgba(35, 28, 23, 0.6); }
.skill-card:hover .skill-watermark { opacity: 0.14; color: var(--card); transform: rotate(-8deg) scale(1.06); }
.skill-card:hover .skill-use { color: #c8bdb0; }
.skill-card:hover .skill-no { color: #d99874; }
.skill-card:hover .logo { background: rgba(246, 241, 231, 0.07); box-shadow: inset 0 0 0 1px rgba(246, 241, 231, 0.2); }
.skill-card:hover .mark { background: var(--accent); color: #fff; }
.skill-top, .skill-use, .logos { position: relative; }
.skill-top { display: flex; align-items: baseline; gap: 12px; }
.skill-card h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.25rem); letter-spacing: -0.02em; font-weight: 500; line-height: 1; }
.skill-no { color: var(--accent); }
.skill-use { margin-top: 10px; color: var(--muted); max-width: 40ch; transition: color 0.5s var(--ease); }
.logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--paper); font-size: 0.875rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.5s var(--ease); }
.mark { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none;
  background: var(--ink); color: var(--card); font-size: 10px; font-weight: 700; transition: background 0.3s, transform 0.3s var(--ease); }
.logo:hover .mark { background: var(--accent); transform: rotate(-6deg); }
.logo:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- contact ---------- */
.contact {  background: var(--ink); color: var(--paper); padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(96px, 18vw, 140px); overflow: hidden; }
.contact > :not(.marquee) { max-width: 1500px; margin-left: auto; margin-right: auto; }
.contact h2 { font-family: var(--serif); font-size: clamp(3.6rem, 11vw, 10.5rem); line-height: 0.9; letter-spacing: -0.035em; font-weight: 500; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  margin-top: 56px; padding-top: 56px; border-top: 1px solid rgba(236, 229, 216, 0.16); align-items: start; }
.contact-lead { color: #c8bdb0; font-size: 1.125rem; max-width: 34ch; }
.details { list-style: none; padding: 0; margin-top: 36px; display: grid; gap: 22px; }
.details li { display: grid; gap: 4px; }
.d-label { color: #9a8d7e; }
.details a { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.75rem); text-decoration: none; width: fit-content;
  background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease); }
.details a:hover { background-size: 100% 1.5px; }

.cbox { background: rgba(246, 241, 231, 0.05); border-radius: 20px; padding: clamp(22px, 3vw, 36px); box-shadow: inset 0 0 0 1px rgba(236, 229, 216, 0.16); }
.cbox-q { font-weight: 600; margin-bottom: 14px; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { border: 0; background: transparent; color: var(--paper); padding: 8px 15px; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  box-shadow: inset 0 0 0 1.5px rgba(236, 229, 216, 0.28); transition: background 0.25s, color 0.25s, box-shadow 0.25s; }
.pick:hover { box-shadow: inset 0 0 0 1.5px var(--paper); }
.pick[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.fields { display: grid; gap: 14px; margin-top: 26px; }
.fields label { display: grid; gap: 7px; font-size: 0.875rem; color: #c8bdb0; }
.fields input, .fields textarea { font: 400 1rem "Instrument Sans", sans-serif; color: var(--paper); background: rgba(35, 28, 23, 0.45);
  border: 0; box-shadow: inset 0 0 0 1px rgba(236, 229, 216, 0.22); border-radius: 12px; padding: 13px 15px; width: 100%; resize: vertical; }
.fields input::placeholder, .fields textarea::placeholder { color: #9c9186; }
.fields input:focus-visible, .fields textarea:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.cbox-error { margin-top: 14px; color: #f0b49a; font-size: 0.9375rem; }
.cbox-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cbox-actions .pill { background: var(--paper); color: var(--ink); }
.pill-wa { background: var(--accent); color: #fff; }
.pill-wa:hover { background: #a24a26; color: #fff; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--paper); }
.contact :focus-visible { outline-color: var(--paper); }
.marquee { margin: clamp(64px, 9vw, 110px) calc(var(--gutter) * -1) 0; overflow: hidden; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; color: rgba(236, 229, 216, 0.5); font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.6rem); }
.marquee-track i { font-size: 0.5em; color: var(--accent); }
.foot { display: flex; justify-content: space-between; margin-top: clamp(56px, 9vw, 110px); font-size: 0.9375rem; color: #b3a898; }

/* ---------- dock ---------- */
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 20; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(35, 28, 23, 0.88); backdrop-filter: blur(12px);
  transform: translate(-50%, 140%); transition: transform 0.6s var(--ease); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.5); }
.dock.show { transform: translate(-50%, 0); }
.dock a { white-space: nowrap; color: #efe8dc; text-decoration: none; padding: 9px 16px; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; transition: background 0.2s; }
.dock a:hover { background: rgba(255, 255, 255, 0.1); }
.dock .dock-cta { background: var(--accent); color: #fff; }
.dock .dock-cta:hover { background: #a24a26; color: #fff; }

/* ---------- showreel lightbox ---------- */
#reel { margin: auto; border: 0; padding: 0; width: min(1000px, 92vw); background: var(--ink); border-radius: 18px; overflow: visible; color: var(--paper); }
#reel::backdrop { background: rgba(20, 15, 12, 0.72); backdrop-filter: blur(4px); }
#reel video { display: block; width: 100%; border-radius: 18px; }
.reel-close { position: absolute; top: -18px; right: -18px; background: var(--paper); color: var(--ink); box-shadow: none; }
.reel-note { padding: clamp(32px, 6vw, 64px); text-align: center; color: #c8bdb0; }
.reel-note strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--paper); margin-bottom: 10px; font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .dial-wrap, .skills-head { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .dial-text { padding: 0 6px; }
  .dial-text h3 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
  .dial-text h3 .svc-kw { font-size: 0.6rem; letter-spacing: 0.12em; }
  .dial-text p { font-size: 1rem; }
  .dial-text li { font-size: 0.9375rem; }
  .dial { width: min(100%, 340px); }
  .dial-ctrl { margin-top: 22px; flex-wrap: wrap; }
  .dial-ctrl .round-sm { width: 42px; height: 42px; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { justify-self: start; width: min(52vw, 260px); margin: 24px 0 0 15%; }
  }
@media (max-width: 980px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .statement-wrap { grid-template-columns: 1fr; justify-items: start; }
  .statement-side { justify-items: start; }
}
@media (max-width: 860px) {
  .notes { grid-template-columns: 1fr; gap: 40px; }
  .note:nth-child(2) { transform: rotate(1.6deg); }
  .skill-grid { grid-template-columns: 1fr; }
  .hero-foot { grid-template-columns: 1fr; gap: 16px; }
  .top nav { display: none; }
  .hint { display: none; }
  .card { width: 82%; }
  .flow-info { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* room at the hero's foot so the fixed dock never sits on the CTA buttons */
  .hero-foot { padding-bottom: clamp(104px, 26vw, 150px); }
  .flow { grid-template-columns: 1fr; }
  .flow .round-sm { display: none; }
  .flow-stage { height: 58vw; }
  .card { width: 92%; }
  .chip.c1 { left: -6%; } .chip.c3 { left: -8%; } .chip.c2, .chip.c4 { right: -4%; }
  /* five dock items do not fit a phone: keep the two that matter */
  .dock a { padding: 9px 13px; font-size: 0.875rem; }
  .dock a:nth-child(3), .dock a:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .statement .w { opacity: 1; }
}

/* main focus vs also offer */
.svc-groups { position: relative; display: inline-flex; gap: 4px; padding: 5px; margin-bottom: clamp(28px, 4vw, 48px); border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); max-width: 100%; }
.g-pill { position: absolute; left: 0; top: 5px; bottom: 5px; width: 0; border-radius: 17px; background: var(--ink); }
.g-btn { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 12px 20px; border-radius: 17px; color: var(--ink); transition: color 0.3s; }
.g-btn .g-star { grid-row: span 2; font-size: 1.25rem; color: var(--accent); transition: color 0.3s; }
.g-btn b { font-weight: 600; line-height: 1.2; }
.g-btn small { font-size: 0.8125rem; opacity: 0.75; line-height: 1.3; }
.g-btn[aria-pressed="true"] { color: var(--card); }
.g-btn[aria-pressed="true"] .g-star { color: #e9b98c; }
.seg { transition: opacity 0.35s; }
.seg.dim { opacity: 0.4; }
@media (max-width: 640px) { .svc-groups { display: flex; flex-direction: column; width: 100%; } .g-pill { display: none; } .g-btn[aria-pressed="true"] { background: var(--ink); } }
@media (prefers-reduced-motion: no-preference) { .g-btn[aria-pressed="true"] .g-star { animation: wob 2.4s ease-in-out infinite; } @keyframes wob { 50% { transform: rotate(14deg) scale(1.12); } } }

.steps { list-style: none; counter-reset: s; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; }
.steps li { counter-increment: s; font-size: 0.875rem; line-height: 1.3; padding: 7px 12px 7px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 0.9; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; margin-right: 8px; border-radius: 50%; background: currentColor; font-size: 0.75rem; font-weight: 600; }
.steps li::before { color: var(--work-bg); }

.chat-mock { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 0 clamp(12px, 3%, 28px) clamp(12px, 3%, 24px); background: #f3efe6; color: #231c17; overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 8px; margin: 0 calc(-1 * clamp(12px, 3%, 28px)) 4px; padding: 12px clamp(12px, 3%, 28px) 12px 64px; background: #3e4630; color: #f6f1e7; font-weight: 600; font-size: clamp(0.75rem, 1.4vw, 0.95rem); }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #9fd18b; }
.chat-mock .m { max-width: 78%; padding: 8px 13px; border-radius: 16px; font-size: clamp(0.7rem, 1.35vw, 0.92rem); line-height: 1.35; }
.chat-mock .me { align-self: flex-end; background: #3e4630; color: #f6f1e7; border-bottom-right-radius: 4px; }
.chat-mock .bot { align-self: flex-start; background: #fff; box-shadow: 0 0 0 1px rgba(35, 28, 23, 0.1); border-bottom-left-radius: 4px; }

.leads-mock { gap: 6px; }
.lead { padding: 7px 12px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(35, 28, 23, 0.1); }
.lead-row { display: flex; align-items: center; gap: 10px; font-size: clamp(0.72rem, 1.4vw, 0.92rem); }
.lead-row b { min-width: 5.2em; }
.lead-row em { font-style: normal; font-weight: 600; min-width: 1.8em; text-align: right; }
.lead-bar { flex: 1; height: 7px; border-radius: 4px; background: rgba(35, 28, 23, 0.1); overflow: hidden; }
.lead-bar i { display: block; height: 100%; background: #8a3d1e; border-radius: 4px; }
.lead small { color: #655a4f; font-size: clamp(0.65rem, 1.2vw, 0.8rem); }
.lead-msg { font-size: clamp(0.65rem, 1.2vw, 0.8rem); color: #655a4f; margin-top: auto; }

/* hero backdrop: warm light drifting behind the name, a dot grid the cursor lights up */
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; }
.hero-bg .b1 { width: 46vw; height: 46vw; left: -8vw; top: -10vw; background: rgba(138, 61, 30, 0.26); animation: drift1 24s ease-in-out infinite alternate; }
.hero-bg .b2 { width: 40vw; height: 40vw; right: -6vw; top: 12vh; background: rgba(211, 173, 85, 0.38); animation: drift2 30s ease-in-out infinite alternate; }
.hero-bg .b3 { width: 34vw; height: 34vw; left: 30vw; bottom: -14vw; background: rgba(62, 70, 48, 0.2); animation: drift3 27s ease-in-out infinite alternate; }
.hero-bg .dots { position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(35, 28, 23, 0.5) 1px, transparent 1.6px) 0 0 / 30px 30px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 70%) var(--my, 35%), #000 0%, rgba(0, 0, 0, 0.22) 100%);
  mask-image: radial-gradient(circle 260px at var(--mx, 70%) var(--my, 35%), #000 0%, rgba(0, 0, 0, 0.22) 100%); }
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@keyframes drift1 { to { transform: translate(14vw, 10vw) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, 8vw) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -8vw) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .hero-bg .blob { animation: none; } }
@media (max-width: 640px) { .hero-bg .blob { filter: blur(50px); } .hero-bg .dots { background-size: 24px 24px; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* about: a short story and two polaroids */
.about { padding: clamp(64px, 9vw, 130px) var(--gutter); max-width: 1500px; margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-big { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 14ch; }
.story { margin-top: clamp(20px, 3vw, 36px); display: grid; gap: 1.1em; max-width: 54ch; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.55; }
.story + .pill { margin-top: clamp(22px, 3vw, 34px); }
.peek-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.14em; text-decoration-color: rgba(138, 61, 30, 0.35); transition: text-decoration-color 0.25s; }
.peek-link:hover, .peek-link:focus-visible { text-decoration-color: var(--accent); }
.polaroids { position: relative; aspect-ratio: 1 / 1.1; }
.pol { position: absolute; margin: 0; padding: 12px 12px 14px; background: #fffdf8; border-radius: 4px; box-shadow: 0 18px 30px -18px rgba(35, 28, 23, 0.55), 0 0 0 1px rgba(35, 28, 23, 0.08); transition: transform 0.5s var(--ease); }
.pol img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: var(--paper); }
.pol figcaption { margin-top: 10px; text-align: center; font: 500 0.9rem "JetBrains Mono", monospace; color: var(--muted); }
.pol .tape { position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; background: rgba(236, 212, 151, 0.85); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(35, 28, 23, 0.2); }
.p1 { width: 62%; left: 0; top: 4%; transform: rotate(-4deg); z-index: 2; }
.p2 { width: 56%; right: 0; bottom: 0; transform: rotate(5deg); }
.p2 .tape { transform: rotate(5deg); }
.pol:hover { transform: rotate(0deg) scale(1.04); z-index: 3; }
.peek { position: fixed; left: 0; top: 0; width: clamp(200px, 22vw, 320px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; box-shadow: 0 24px 40px -18px rgba(35, 28, 23, 0.6), 0 0 0 4px var(--paper); will-change: transform; }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .polaroids { width: min(88vw, 400px); margin: 10px auto 0; } .peek { display: none; } }
@media (prefers-reduced-motion: reduce) { .pol { transition: none; } }

.foot-name { font-family: var(--serif); font-size: 1.5rem; }
.pol figcaption { font-size: 0.8rem; }
