/* ===========================================================
   Portfolio — matched to the Olo design system
   Inter type, light surfaces, Olo-blue accent, card-based.
   =========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:#11181c; --ink-2:#3b474e; --muted:#6a7c8b; --line:#e6ebef;
  --bg:#ffffff; --bg-2:#f6f8fa; --bg-3:#eef2f5;
  --olo:#0071E4; --olo-600:#005bb5; --olo-50:#eaf5ff; --olo-300:#a6d5ff;

  --r:14px; --rs:8px; --maxw:1120px;
  --shadow:0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: Inter, system-ui, sans-serif;
  --brand: "Inter Tight", Inter, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: "cv11","ss01";
}
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--brand); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olo-600); }

/* ---------- custom cursor: one translucent circle ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(106,124,139,0.28); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%); will-change: transform;
  transition: width .2s var(--ease), height .2s var(--ease), background .2s var(--ease); }
.cursor.hover { width: 46px; height: 46px; background: rgba(0,113,228,0.30); }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px; transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease); }
.nav.scrolled { background: rgba(255,255,255,0.9); backdrop-filter: saturate(150%) blur(12px); padding: 12px 28px; box-shadow: 0 1px 0 var(--line); }
.nav .logo { font-family: var(--brand); font-weight: 600; font-size: 19px; letter-spacing: 0.05em; }
.nav .logo .dot { color: var(--olo); }
.nav .links { display: flex; gap: 26px; align-items: center; }
.nav .links a { font-size: 14.5px; color: var(--muted); transition: color .2s var(--ease); }
.nav .links a:hover { color: var(--ink); }
.nav .links a.btn-sm { color: var(--olo); font-weight: 600; }
.nav .links a.btn-sm:hover { color: var(--olo-600); }
.menu-btn { display: none; background: none; border: none; font-size: 24px; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 150px 0 80px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.hero .pill { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--bg); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; }
.hero .pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4daf57; box-shadow: 0 0 0 4px rgba(77,175,87,0.18); }
.hero h1 { font-size: clamp(40px, 6vw, 68px); max-width: 18ch; }
.hero h1 em { font-style: normal; color: var(--olo); }
.hero .lead { margin-top: 24px; font-size: clamp(18px, 2.1vw, 22px); color: var(--ink-2); max-width: 60ch; }
.hero .cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; padding: 13px 24px; border-radius: var(--rs);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.btn-primary { background: var(--olo); color: #fff; }
.btn-primary:hover { background: var(--olo-600); box-shadow: 0 10px 24px rgba(0,113,228,0.25); }
.btn-ghost { border: 1px solid var(--line); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateY(3px); }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 44px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); max-width: 22ch; }
.sec-head p { color: var(--muted); max-width: 56ch; margin-top: 14px; }

/* ---------- work ---------- */
.work-list { display: flex; flex-direction: column; gap: 22px; }
.work-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg);
  overflow: hidden; transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.work-card:hover { border-color: var(--olo-300); transform: translateY(-3px); box-shadow: 0 6px 14px rgba(16,24,40,.08), 0 18px 40px rgba(16,24,40,.10); }
.work-card .media { position: relative; background: var(--bg-3); border-right: 1px solid var(--line); min-height: 280px; overflow: hidden; }
.work-card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .4s var(--ease); }
.work-card:hover .media img { transform: scale(1.03); }
.work-card .media.contain { background: var(--bg-2); }
.work-card .media.contain img { object-fit: contain; object-position: center; padding: 22px; }
.work-card .media.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.work-card .media .grad { position: absolute; inset: 0; }
.grad-2 { background: linear-gradient(135deg, #eaf5ff, #a6d5ff); }
.grad-3 { background: linear-gradient(135deg, #edf7ee, #b8dfbc); }
.work-card .info { padding: 32px 34px; display: flex; flex-direction: column; }
.work-card .num { font-family: var(--brand); font-size: 14px; color: var(--olo-600); letter-spacing: 0.06em; }
.work-card h3 { font-size: clamp(22px, 2.6vw, 30px); margin: 8px 0 12px; }
.work-card p { color: var(--ink-2); margin-bottom: 18px; font-size: 15.5px; }
.work-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.work-card .tags span { font-size: 12.5px; color: var(--ink-2); background: var(--bg-3); padding: 5px 12px; border-radius: 999px; }
.work-card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--olo-600); font-size: 15px; }
.work-card .more .arrow { transition: transform .2s var(--ease); }
.work-card:hover .more .arrow { transform: translateX(4px); }
.work-card .soon { margin-top: auto; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
.portrait { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: linear-gradient(160deg, #d5ebff, #a6d5ff);
  display: flex; align-items: flex-end; justify-content: center; font-size: 120px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-grid h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 12px 0 18px; max-width: 18ch; }
.about-grid .body p { color: var(--ink-2); margin-bottom: 14px; max-width: 60ch; }
.capabilities { margin-top: 28px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
.capabilities div { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.capabilities .tick { color: var(--olo); font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.stat .n { font-family: var(--brand); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; }
.stat .l { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact h2 { font-size: clamp(30px, 5.5vw, 56px); max-width: 16ch; margin: 12px auto 16px; }
.contact h2 em { font-style: normal; color: var(--olo); }
.contact p { color: var(--muted); max-width: 44ch; margin: 0 auto 32px; }
.contact .email { display: inline-block; font-family: var(--brand); font-size: clamp(22px, 4vw, 36px); color: var(--ink);
  border-bottom: 2px solid var(--line); padding-bottom: 6px; transition: border-color .25s var(--ease), color .25s var(--ease); }
.contact .email:hover { border-color: var(--olo); color: var(--olo); }
.socials { margin-top: 34px; display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; }
.socials a { color: var(--muted); transition: color .2s var(--ease); font-size: 15px; }
.socials a:hover { color: var(--ink); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

/* ---------- lock screen ---------- */
.lock-body { background: var(--bg-2); }
.lock { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.lock-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 40px; width: 100%; max-width: 440px; text-align: center; }
.lock-logo { font-family: var(--brand); font-weight: 600; font-size: 18px; letter-spacing: 0.05em; margin-bottom: 24px; }
.lock-logo .dot { color: var(--olo); }
.lock-card h1 { font-size: 26px; margin-bottom: 8px; }
.lock-card p { color: var(--muted); margin-bottom: 24px; font-size: 15.5px; }
.lock-row { display: flex; gap: 10px; }
.pw-wrap { position: relative; flex: 1; }
.lock-row input { width: 100%; font: inherit; font-size: 16px; padding: 12px 44px 12px 14px; border: 1px solid var(--line);
  border-radius: var(--rs); background: var(--bg); color: var(--ink); }
.lock-row input:focus { outline: none; border-color: var(--olo); box-shadow: 0 0 0 3px var(--olo-50); }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; align-items: center;
  justify-content: center; padding: 6px; background: none; border: none; cursor: pointer; color: var(--muted); }
.pw-toggle:hover { color: var(--ink); }
.pw-toggle svg { display: block; }
.lock-row .btn { border: none; cursor: pointer; }
.lock-error { color: #c3342a; font-size: 14px; margin-top: 14px; }
@media (max-width: 480px) { .lock-row { flex-direction: column; } }

/* ---------- easter egg: shy pixel robot peeking from the right wall ---------- */
.egg { position: fixed; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.egg.show { opacity: 1; pointer-events: auto; }
.egg-bubbles { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding: 0 18px 8px 0; }
.egg-bubble { font-family: "Pixelify Sans", monospace; font-size: 17px; line-height: 1.3; color: #241a14;
  background: #fff; border: 3px solid #241a14; border-radius: 6px; padding: 8px 12px; max-width: 270px;
  box-shadow: 4px 4px 0 rgba(36,26,20,0.18); opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .2s var(--ease), transform .2s var(--ease); }
.egg-bubble.in { opacity: 1; transform: none; }
.egg-bubble a { color: var(--olo); text-decoration: underline; word-break: break-all; }
.egg-bubble .caret { animation: eggblink 1s steps(1) infinite; }
@keyframes eggblink { 50% { opacity: 0; } }

.egg-stage { position: relative; width: 132px; height: 104px; }
.egg-bot-wrap { position: absolute; right: 6px; bottom: 0; z-index: 2; transform-origin: 75% 100%;
  transform: translateX(150%); transition: transform .6s var(--ease); }
.egg-stage.peek .egg-bot-wrap { transform: translateX(68%) rotate(-13deg); }   /* shy: barely peeking from the edge */
.egg-stage.out  .egg-bot-wrap { animation: jumpOut .75s cubic-bezier(.34,1.4,.6,1) forwards; }
.egg.jump .egg-bubbles { animation: bubbleHop .75s cubic-bezier(.34,1.4,.6,1) both; }
.egg-bot-wrap canvas { image-rendering: pixelated; display: block; animation: botbob 2.4s ease-in-out infinite; }

@keyframes jumpOut {
  0%   { transform: translate(68%, 0)    rotate(-13deg) scale(1, 1); }
  45%  { transform: translate(10%, -30%) rotate(3deg)   scale(.95, 1.05); }
  72%  { transform: translate(0, 4%)     rotate(-1deg)  scale(1.04, .96); }
  100% { transform: translate(0, 0)      rotate(0)      scale(1, 1); }
}
@keyframes bubbleHop {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-30px); }
  72%  { transform: translateY(5px); }
  100% { transform: translateY(0); }
}
@keyframes botbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .egg-bot-wrap { transition: none; }
  .egg-bot-wrap canvas { animation: none; }
  .egg-stage.out .egg-bot-wrap { animation: none; transform: translateX(0); }
  .egg.jump .egg-bubbles { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .nav .links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); background: var(--bg); flex-direction: column;
    align-items: flex-start; justify-content: center; padding: 40px; gap: 24px; transform: translateX(100%);
    transition: transform .4s var(--ease); box-shadow: -20px 0 60px -30px rgba(16,24,40,0.3); }
  .nav .links.open { transform: none; }
  .nav .links a { font-size: 19px; }
  .menu-btn { display: block; z-index: 60; }
  .work-card { grid-template-columns: 1fr; }
  .work-card .media { border-right: none; border-bottom: 1px solid var(--line); min-height: 220px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
