/* Redd: friendly, clean, hand-built. Warm paper, frog green, a little blue and a dot of red (the tie). */
@font-face { font-family: "Google Sans Flex"; src: url("/assets/fonts/gsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --bg: #f6f3ea; --card: #ffffff; --ink: #1d2520; --muted: #667064; --line: #e3ddcc;
  --blue: #4a73b3; --blue-d: #365a93; --blue-t: #e4ecf8;
  --green: #86b74e; --green-d: #52802a; --green-t: #e7f1d6;
  --red: #ef3b36; --gold: #f5c542; --gold-t: #fdf0c4;
  --sans: "Google Sans Flex", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 22px; --shadow: 0 1px 2px rgba(29, 37, 32, .06), 0 14px 30px -18px rgba(29, 37, 32, .35);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 17px/1.6 var(--sans); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
  background-image: radial-gradient(rgba(29, 37, 32, .06) 1.2px, transparent 1.5px); background-size: 22px 22px; }
img, svg { max-width: 100%; }
a { color: var(--blue-d); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--green); color: #12200a; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(246, 243, 234, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav-in { width: min(1080px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 1.2rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.3rem; margin-right: auto; }
.brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; transition: rotate .3s var(--spring); }
.brand:hover img { rotate: -10deg; }
.links { display: flex; gap: .2rem; }
.links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .98rem; padding: .5rem .85rem; border-radius: 999px; transition: background .2s; }
.links a:hover { background: var(--green-t); }
.pill-btn { text-decoration: none; background: var(--ink); color: #fff; font-weight: 600; font-size: .95rem; padding: .6rem 1.1rem; border-radius: 999px; transition: background .2s, transform .2s var(--spring); }
.pill-btn:hover { background: var(--blue-d); color: #fff; transform: translateY(-1px); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 600 1rem/1 var(--sans); padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid var(--ink); transition: transform .2s var(--spring), box-shadow .2s, background .2s; box-shadow: 0 4px 0 var(--ink); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-d); color: #fff; }
.btn-line { background: #fff; color: var(--ink); }
.btn-line:hover { background: var(--green-t); color: var(--ink); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding: 4.5rem 0 3rem; }
.tag { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .9rem; background: var(--green-t); color: var(--green-d); border-radius: 999px; padding: .4rem .9rem; margin-bottom: 1.2rem; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-d); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(82, 128, 42, 0); } 0% { box-shadow: 0 0 0 0 rgba(82, 128, 42, .5); } }
.hero h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: .98; margin-bottom: 1.2rem; }
.door { all: unset; color: var(--green); cursor: default; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.45; max-width: 30rem; margin-bottom: 1.8rem; font-weight: 500; }
.typed { color: var(--blue-d); font-weight: 700; white-space: nowrap; }
.caret { display: inline-block; width: 3px; height: 1.05em; background: var(--blue-d); margin-left: 3px; vertical-align: -.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cta-row { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-frog { position: relative; display: grid; justify-items: center; padding-top: 4.4rem; }
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.b1 { width: 78%; aspect-ratio: 1; background: var(--green-t); bottom: -4%; left: 4%; }
.b2 { width: 34%; aspect-ratio: 1; background: var(--gold-t); top: 14%; right: -2%; }
.frog { position: relative; z-index: 1; width: min(340px, 78%); padding: 0; border: 0; background: none; cursor: pointer; transition: transform .3s var(--spring); -webkit-tap-highlight-color: transparent; }
.frog img { width: 100%; height: auto; display: block; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 10px 12px 0 var(--ink); background: var(--blue); }
.frog:hover { transform: translateY(-4px) rotate(-2deg); }
.frog.hop { animation: hop .55s var(--spring); }
@keyframes hop { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(6px) scale(1.06, .94); } 60% { transform: translateY(-26px) scale(.96, 1.05); } 100% { transform: translateY(0) scale(1, 1); } }
.bubble { position: absolute; z-index: 2; top: 0; left: 50%; translate: -30% 0; max-width: 250px; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: .65rem 1rem; font-weight: 600; font-size: 1rem; line-height: 1.3; box-shadow: 4px 4px 0 var(--ink); margin: 0; }
.bubble::after { content: ""; position: absolute; left: 34px; bottom: -13px; width: 20px; height: 20px; background: #fff; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); rotate: 45deg; }
.bubble.pop { animation: pop .4s var(--spring); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* ---------- sections ---------- */
.block { padding: 4.5rem 0 1rem; }
.label { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-d); background: var(--blue-t); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1rem; }
.label-w { background: rgba(255, 255, 255, .18); color: #fff; }
.block h2, .contact h2 { font-size: clamp(2rem, 4.8vw, 3.2rem); margin-bottom: .9rem; }
.sub { font-size: 1.15rem; max-width: 40rem; color: var(--muted); margin-bottom: 2rem; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.tile { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r); padding: 1.6rem; box-shadow: 0 5px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 9px 0 var(--ink); }
.t-green { background: var(--green-t); } .t-blue { background: var(--blue-t); }
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--green); border: 2px solid var(--ink); margin-bottom: 1rem; }
.ico-blue { background: var(--blue); } .ico-red { background: var(--red); } .ico-gold { background: var(--gold); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ico-blue svg, .ico-red svg { stroke: #fff; }
.tile h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.tile p { margin: 0; color: #3f4a3f; }

.work-card { display: grid; grid-template-columns: 300px 1fr; gap: 2rem; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: 26px; padding: 1.6rem; box-shadow: 0 6px 0 var(--ink); }
.work-art { position: relative; background: var(--gold-t); border-radius: 20px; aspect-ratio: 1; overflow: hidden; }
.work-art img { position: absolute; left: 1.1rem; right: 1.1rem; top: 1.1rem; bottom: 0; width: calc(100% - 2.2rem); height: calc(100% - 1.1rem); object-fit: contain; object-position: center bottom; }
.work-kicker { font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-d); margin-bottom: .4rem; }
.work-body h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: .6rem; }
.work-body > p { color: #3f4a3f; max-width: 34rem; }
.chips { list-style: none; margin: 1.1rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { font-weight: 600; font-size: .88rem; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: .35rem .8rem; }

.contact { margin-top: 5rem; background: var(--blue); color: #fff; padding: 4.5rem 0; border-block: 2px solid var(--ink); background-image: radial-gradient(rgba(255, 255, 255, .13) 1.4px, transparent 1.8px); background-size: 20px 20px; }
.contact-in { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.contact .sub { color: rgba(255, 255, 255, .9); }
.mail { display: inline-block; text-decoration: none; background: #fff; color: var(--blue-d); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.35rem); padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid var(--ink); box-shadow: 0 5px 0 var(--ink); transition: transform .2s var(--spring), box-shadow .2s; overflow-wrap: anywhere; }
.mail:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); color: var(--blue-d); }
.peek { width: 160px; height: 160px; border-radius: 50%; border: 4px solid var(--ink); rotate: 6deg; box-shadow: 6px 6px 0 var(--ink); }

.foot { padding: 2.2rem 0 2.6rem; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: .6rem; margin: 0; font-weight: 700; font-size: 1.15rem; }
.foot-brand img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); }
.foot-note { margin: 0; color: var(--muted); font-size: .95rem; }
.foot-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.foot-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.foot-links a:hover { color: var(--blue-d); text-decoration: underline; }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity .6s ease, translate .6s var(--spring); }
.js [data-reveal].in { opacity: 1; translate: 0 0; }

/* ---------- passcode gate (hidden door) ---------- */
.gate { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(29, 37, 32, .55); backdrop-filter: blur(4px); }
.gate[hidden] { display: none; }
.gate-card { width: min(340px, calc(100vw - 40px)); background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); padding: 1.6rem; text-align: center; }
.gate-label { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; }
.gate-card input { width: 100%; background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; color: var(--ink); font: 1.1rem var(--sans); letter-spacing: .3em; text-align: center; padding: .75rem; }
.gate-card input:focus { outline: none; box-shadow: 0 0 0 4px var(--blue-t); border-color: var(--blue-d); }
.gate-msg { min-height: 1.4em; margin: .8rem 0 0; font-size: .9rem; font-weight: 600; color: var(--muted); }
.gate-msg.bad { color: var(--red); }
.gate-card.shake { animation: nope .35s ease; }
@keyframes nope { 20% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 80% { transform: translateX(-4px); } }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 4rem 0 3rem; }
.nf .big { font-size: clamp(5rem, 22vw, 11rem); line-height: .9; color: var(--blue); text-shadow: 6px 6px 0 var(--ink); margin: 1rem 0; }
.nf img { width: 190px; height: 190px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 5px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); rotate: -5deg; }
.nf h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: .8rem; }
.nf .sub { margin-inline: auto; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 2.4rem; gap: 1rem; }
  .hero-frog { order: -1; max-width: 400px; margin-inline: auto; width: 100%; }
  .tiles { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-art { aspect-ratio: 16 / 10; max-width: 320px; }
  .contact-in { grid-template-columns: 1fr; }
  .peek { display: none; }
  .foot-in { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 640px) {
  .links { display: none; }
  .bubble { max-width: 210px; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; translate: 0 0; }
}
.work-card + .work-card { margin-top: 1.6rem; }
.work-dark .work-art { background: radial-gradient(70% 90% at 50% 100%, rgba(239, 59, 54, .55), transparent 70%), #1a1614; }

/* private clients */
.pv-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.pv-card { position: relative; display: flex; flex-direction: column; gap: .15rem; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1rem 1.1rem 1rem; box-shadow: 0 4px 0 var(--ink); }
.pv-card b { font-size: 1.05rem; }
.pv-card small { color: var(--muted); font-size: .85rem; }
.pv-num { font-weight: 700; font-size: .8rem; letter-spacing: .06em; color: var(--blue-d); background: var(--blue-t); border-radius: 999px; padding: .1rem .55rem; align-self: flex-start; margin-bottom: .45rem; }
.pv-note { margin: 1.2rem 0 0; color: var(--muted); font-size: .95rem; }
