/* Home — deck layout */

/* Cover */
.cover { background: var(--black); color: #f5f5f4; min-height: 100svh; display: flex; flex-direction: column; padding: 0 var(--gutter); }
.cover-top { display: flex; justify-content: space-between; align-items: center; height: 96px; font-size: 16px; }
.cover-top .g-brand .mark { font-size: 26px; }
.cover-nav { display: flex; gap: 28px; font-size: 15px; }
.cover-nav a:hover { opacity: .6; }
.cover-info { margin-top: auto; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: clamp(14px, 1.15vw, 18px); padding-bottom: 18px; }
.cover-info a:hover { text-decoration: underline; }
.cover .giant { padding-bottom: clamp(12px, 2vw, 28px); }
@media (max-width: 700px) { .cover-nav { display: none; } }

/* Section shell */
.page { padding: clamp(56px, 7vw, 96px) var(--gutter) 0; }
.page.dark { background: var(--black); color: #f5f5f4; }
.page.dark .folio-row { color: #f5f5f4; }
.page > .giant { margin-bottom: clamp(32px, 6vw, 96px); }

/* Contents */
.toc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 8vw, 140px); max-width: 1100px; margin: 0 auto; }
.toc a { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 8px 0; font-size: clamp(18px, 2vw, 30px); text-transform: none; letter-spacing: -0.02em; transition: opacity .2s; }
.toc a:hover { opacity: .45; }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr; } }

/* About */
.about { position: relative; }
.about .giant { position: relative; z-index: 1; }
.about-body { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 32px; align-items: start; margin-top: clamp(-120px, -7vw, -40px); position: relative; z-index: 2; }
.about-body .lead { font-size: clamp(20px, 2vw, 32px); line-height: 1.12; text-transform: none; letter-spacing: -0.02em; padding-top: clamp(120px, 14vw, 230px); }
.about-shot { margin-top: clamp(-90px, -5vw, -24px); }
.about-shot img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.12)); }
.about-body .copy { font-size: 16px; line-height: 1.5; color: var(--ink-3); font-weight: 300; text-align: justify; padding-top: clamp(120px, 14vw, 230px); }
@media (max-width: 860px) {
  .about-body { grid-template-columns: 1fr; margin-top: 24px; }
  .about-body .lead, .about-body .copy { padding-top: 0; }
  .about-shot { margin-top: 0; max-width: 420px; margin-inline: auto; }
}

/* What I bring */
.bring { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px clamp(24px, 3vw, 48px); }
.bring .item h3 { font-size: clamp(22px, 2.3vw, 38px); font-weight: 800; text-transform: none; letter-spacing: -0.05em; line-height: .95; }
.bring .item h3::after { content: ""; display: block; width: 52px; height: 2px; background: var(--ink); margin: 14px 0 12px; }
.bring .item .sub { font-size: 17px; line-height: 1.3; }
.bring .item .det { margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); font-weight: 300; }
.bring .num { font-size: clamp(110px, 13vw, 210px); font-weight: 200; line-height: .8; letter-spacing: -0.06em; }
.bring .n1 { grid-area: 2 / 1; } .bring .i1 { grid-area: 1 / 1; }
.bring .n2 { grid-area: 1 / 2; } .bring .i2 { grid-area: 2 / 2; }
.bring .n3 { grid-area: 2 / 3; } .bring .i3 { grid-area: 1 / 3; }
.bring .n4 { grid-area: 1 / 4; } .bring .i4 { grid-area: 2 / 4; }
@media (max-width: 960px) {
  .bring { grid-template-columns: auto 1fr; align-items: center; }
  .bring .num { font-size: 96px; }
  .bring .n1 { grid-area: 1 / 1; } .bring .i1 { grid-area: 1 / 2; }
  .bring .n2 { grid-area: 2 / 1; } .bring .i2 { grid-area: 2 / 2; }
  .bring .n3 { grid-area: 3 / 1; } .bring .i3 { grid-area: 3 / 2; }
  .bring .n4 { grid-area: 4 / 1; } .bring .i4 { grid-area: 4 / 2; }
}

/* Worked for */
.wf-sub { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; padding: 16px 0; font-size: clamp(16px, 1.8vw, 26px); color: var(--ink-3); margin-bottom: clamp(32px, 5vw, 64px); }
.wf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.wf-grid div { padding: clamp(26px, 3.4vw, 52px) 12px; text-align: center; }
.wf-grid b { display: block; font-size: clamp(20px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.05em; }
.wf-grid span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .wf-grid { grid-template-columns: 1fr 1fr; } }

/* Achieved */
.ach-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: start; }
.ach-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; font-size: 13px; line-height: 1.4; color: var(--ink-2); font-weight: 300; text-align: justify; }
.ach-big { margin-bottom: clamp(32px, 5vw, 72px); }
.ach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(36px, 4vw, 64px) clamp(20px, 3vw, 48px); }
.ach-grid h3 { font-size: clamp(20px, 2.1vw, 34px); font-weight: 400; text-transform: none; letter-spacing: -0.03em; line-height: 1; }
.ach-grid p { margin-top: 12px; font-size: 15.5px; line-height: 1.4; color: var(--ink-3); font-weight: 300; }
@media (max-width: 960px) { .ach-head { grid-template-columns: 1fr; } .ach-notes { grid-template-columns: 1fr; } .ach-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ach-grid { grid-template-columns: 1fr; } }

/* Selected work */
.cases { border-top: 1px solid var(--ink); }
.case-row { display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: 24px clamp(24px, 3vw, 56px); padding: clamp(28px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.case-row .cn { font-size: clamp(40px, 4.4vw, 72px); font-weight: 200; line-height: .8; letter-spacing: -0.05em; }
.case-row h3 { font-size: clamp(30px, 3.6vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: .9; text-transform: none; }
.case-row .meta { margin-top: 12px; font-size: 14px; text-transform: none; letter-spacing: .02em; color: var(--ink-3); }
.case-row p { margin-top: 16px; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 32em; }
.case-row .kpis { margin-top: 18px; display: flex; gap: 28px; flex-wrap: wrap; }
.case-row .kpis b { display: block; font-size: 30px; font-weight: 400; letter-spacing: -0.04em; }
.case-row .kpis span { font-size: 13px; color: var(--ink-3); }
.case-row .go { margin-top: 22px; display: inline-flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 500; border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.case-row .go svg { width: 15px; height: 15px; transition: transform .2s; }
.case-row:hover .go svg { transform: translate(2px, -2px); }
.case-row .thumb { border-radius: 6px; overflow: hidden; background: var(--soft); height: clamp(220px, 22vw, 320px); display: flex; align-items: center; justify-content: center; }
.case-row .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; transition: transform .5s; }
.case-row:hover .thumb img { transform: scale(1.02); }
.case-row .thumb .mock-scale { zoom: .74; display: flex; gap: 14px; align-items: center; }
@media (max-width: 960px) { .case-row { grid-template-columns: 56px 1fr; } .case-row .thumb { grid-column: 1 / -1; } .case-row .thumb .mock-scale { zoom: .58; } }

/* Timeline */
.tl { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 200px 1.1fr 1.2fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.tl-row .when { font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tl-row b { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; letter-spacing: -0.03em; text-transform: none; }
.tl-row span { color: var(--ink-3); font-size: 15px; line-height: 1.45; }
@media (max-width: 760px) { .tl-row { grid-template-columns: 1fr; gap: 4px; } }

/* Contact */
.contact-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid rgba(245,245,244,.25); padding-top: 22px; font-size: clamp(15px, 1.3vw, 20px); }
.contact-info small { display: block; font-size: 12px; text-transform: none; letter-spacing: .06em; color: rgba(245,245,244,.5); margin-bottom: 6px; }
.contact-info a:hover { text-decoration: underline; }
@media (max-width: 760px) { .contact-info { grid-template-columns: 1fr 1fr; } }

/* Liquid headline (js/liquid.js) */
.cover { position: relative; }
.cover > :not(.liquid) { position: relative; z-index: 1; }
.cover .liquid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cover.liquid-on .giant { color: transparent; }

/* Wanya thumbnail: three devices in 3D, floating, with live tilt */
.case-row .thumb.wanya-thumb { position: relative; overflow: hidden; perspective: 1100px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(155,225,93,.22), transparent 65%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #0f3328 0%, #0a231c 60%, #071a14 100%); }
.w-glow { position: absolute; left: 50%; top: 30%; width: 60%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(155,225,93,.32), transparent); filter: blur(20px); animation: wglow 6s ease-in-out infinite; }
@keyframes wglow { 50% { opacity: .55; transform: translate(-50%, -46%) scale(1.08); } }
.w-stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1);
  }
.wanya-thumb .dev { position: absolute; top: 12%; width: 31%; max-width: 178px; transform-style: preserve-3d;
  transition: transform 1.1s cubic-bezier(.2,.8,.2,1), opacity .8s; }
.wanya-thumb .d2 { left: 50%; top: 8%; z-index: 3; transform: translateX(-50%); }
.wanya-thumb .d1 { left: 50%; top: 16%; z-index: 2; transform: translateX(-128%) scale(.9); }
.wanya-thumb .d3 { left: 50%; top: 16%; z-index: 2; transform: translateX(28%) scale(.9); }
.wanya-thumb .phone { position: relative; padding: 4px; border-radius: 28px;
  background: linear-gradient(150deg, #3b4b44 0%, #121a17 35%, #050807 70%, #26332e 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 30px 60px -18px rgba(0,0,0,.75), 0 10px 20px -10px rgba(0,0,0,.5);
  }
.wanya-thumb .phone img { width: 100%; aspect-ratio: 375/812; object-fit: cover; object-position: top; border-radius: 24px; display: block; transform: none !important; }
.wanya-thumb .phone::after { content: ""; position: absolute; inset: 4px; border-radius: 24px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 47%, transparent 58%); background-size: 260% 100%;
  background-position: 120% 0; animation: wsheen 7s ease-in-out infinite; mix-blend-mode: screen; }
.wanya-thumb .d1 .phone::after { animation-delay: 1.2s; } .wanya-thumb .d3 .phone::after { animation-delay: 2.4s; }
@keyframes wsheen { 0%, 60% { background-position: 120% 0; } 85%, 100% { background-position: -40% 0; } }
.case-row:hover .wanya-thumb .d1 { transform: translateX(-134%) translateY(-2%) scale(.9); }
.case-row:hover .wanya-thumb .d3 { transform: translateX(34%) translateY(-2%) scale(.9); }
.case-row:hover .wanya-thumb .d2 { transform: translateX(-50%) translateY(-3%); }
@media (prefers-reduced-motion: reduce) {
  .wanya-thumb .phone::after, .w-glow { animation: none; }
}
.case-row .thumb { border-radius: 20px; overflow: hidden; }
.wf-grid > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
.wf-logo { height: clamp(26px, 2.6vw, 38px); width: auto; max-width: 78%; object-fit: contain; display: block; opacity: .9; transition: opacity .2s; }
.wf-logo.sq { height: clamp(46px, 4.6vw, 68px); }
.wf-grid > div:hover .wf-logo { opacity: 1; }
.wf-grid span { margin-top: 0; }
.wf-more { margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); padding-top: clamp(24px, 3vw, 36px); display: grid; gap: 22px; justify-items: center; }
.wf-more-l { font-size: 13px; color: var(--ink-3); }
.wf-more-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(24px, 4vw, 64px); }
.wf-more-row .wf-logo { height: clamp(20px, 2vw, 28px); opacity: .6; }
.wf-more-row .wf-logo.sq { height: clamp(36px, 3.4vw, 48px); }
.wf-more-row .wf-logo:hover { opacity: 1; }

/* Worked for — fixed, ordered logo grid */
.wf-grid { gap: 12px; }
.wf-grid > div { height: 168px; padding: 0 16px 18px; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 16px; gap: 0; }
.wf-grid > div::before { content: ""; }
.wf-logo, .wf-logo.sq, .wf-more-row .wf-logo, .wf-more-row .wf-logo.sq { width: 140px; height: 48px; max-width: 100%; object-fit: contain; opacity: 1; }
.wf-grid .wf-logo { margin-top: 40px; }
.wf-grid span { font-size: 12.5px; text-align: center; }
.wf-more-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; width: 100%; }
.wf-cell { height: 96px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 14px; padding: 0 16px; }
.wf-more-row .wf-logo { width: 120px; height: 36px; opacity: .55; transition: opacity .2s; }
.wf-cell:hover .wf-logo { opacity: 1; }
@media (max-width: 760px) { .wf-grid > div { height: 140px; } .wf-grid .wf-logo { margin-top: 30px; width: 120px; height: 40px; } .wf-more-row { grid-template-columns: repeat(2, 1fr); } }

.wf-more-row .wf-logo.sm { width: 104px; height: 30px; }
.wf-grid .wf-logo.sm { width: 120px; height: 40px; margin-top: 44px; }
@media (max-width: 760px) { .wf-grid .wf-logo.sm { width: 104px; height: 34px; margin-top: 33px; } }

/* Nivala thumbnail: same device stage as Wanya, in Nivala's indigo + lavender, live-scrolling home */
.case-row .thumb.wanya-thumb.nv-thumb {
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(167,150,255,.30), transparent 65%),
    radial-gradient(40% 60% at 85% 100%, rgba(110,170,250,.22), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #262a66 0%, #1a1c4a 60%, #11122f 100%); }
.nv-thumb .nv-glow { background: radial-gradient(closest-side, rgba(150,135,255,.38), transparent); }
.nv-thumb .phone { background: linear-gradient(150deg, #4a4d6e 0%, #16172a 35%, #07070f 70%, #33354f 100%); }
.nv-thumb .phone > img { aspect-ratio: 390 / 844; }
/* static: no glow pulse, no sheen, no hover movement */
.nv-thumb .nv-glow, .nv-thumb .phone::after { animation: none; }
.nv-thumb .phone::after { display: none; }
.nv-thumb .dev { transition: none; }
.case-row:hover .nv-thumb .d1 { transform: translateX(-128%) scale(.9); }
.case-row:hover .nv-thumb .d3 { transform: translateX(28%) scale(.9); }
.case-row:hover .nv-thumb .d2 { transform: translateX(-50%); }
/* Nivala: size phones by the card height so the middle one shows its bottom navigation */
.nv-thumb .dev { width: auto; max-width: none; height: calc(100% - 32px); top: 16px; }
.nv-thumb .dev .phone { height: 100%; }
.nv-thumb .dev .phone > img { height: 100%; width: auto; }
.nv-thumb .d1, .nv-thumb .d3 { top: 30px; }
.nv-thumb .phone { border-radius: 16px; padding: 3px; }
.nv-thumb .phone > img { border-radius: 13px; }

/* Variabl thumbnail: web platform window + seller app phone on a light, lime-lit stage */
.case-row .thumb.vb-thumb { position: relative; display: block; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(14,15,12,.045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(14,15,12,.045) 0 1px, transparent 1px 48px),
    linear-gradient(160deg, #f5f5f0 0%, #e6e7df 100%); }
.vb-thumb .vb-glow { position: absolute; right: -8%; top: -30%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(205,236,90,.75), rgba(205,236,90,0)); filter: blur(10px); }
.vb-thumb .vb-win { position: absolute; left: 6%; top: 13%; width: 70%; border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px rgba(14,15,12,.08), 0 30px 60px -28px rgba(14,15,12,.45); }
.vb-thumb .vb-win img { width: 100%; height: auto; object-fit: initial; display: block; transform: none !important; }
.vb-thumb .vb-ph { position: absolute; right: 7%; top: 21%; width: 21%; padding: 3px; border-radius: 16px; background: #1c1c1e;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 34px 60px -20px rgba(14,15,12,.6); }
.vb-thumb .vb-ph img { width: 100%; height: auto; aspect-ratio: 402 / 874; object-fit: cover; object-position: top; border-radius: 13px; display: block; transform: none !important; }
@media (max-width: 560px) { .vb-thumb .vb-win { left: 4%; width: 74%; } .vb-thumb .vb-ph { width: 26%; right: 4%; padding: 2px; border-radius: 12px; } .vb-thumb .vb-ph img { border-radius: 10px; } }

/* BCP thumbnail: BCP blue stage with orange touches — the doodle illustration and the app home on a phone */
.case-row .thumb.bcp-thumb { position: relative; display: block; overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.045) 0 1px, transparent 1px 48px),
    radial-gradient(60% 80% at 20% 0%, rgba(60,120,255,.35), transparent 70%),
    linear-gradient(160deg, #0a2fa8 0%, #002a8d 50%, #001b63 100%); }
.bcp-thumb .bcp-doodle { position: absolute; left: 2%; bottom: -4%; height: 92%; aspect-ratio: 1; background: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 96%), linear-gradient(0deg, #000 70%, transparent 100%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 96%), linear-gradient(0deg, #000 70%, transparent 100%); mask-composite: intersect; }
.bcp-thumb .bcp-doodle img { width: 100%; height: 100%; object-fit: cover; display: block; transform: none !important; opacity: .95; }
.bcp-thumb .bcp-ph { position: absolute; z-index: 2; right: 15%; top: 8%; width: 28%; padding: 4px; border-radius: 24px;
  background: linear-gradient(150deg, #4a5584 0%, #121733 35%, #05070f 70%, #343c5e 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 30px 60px -18px rgba(0,6,30,.8), 0 10px 20px -10px rgba(0,0,0,.5); }
.bcp-thumb .bcp-ph img { width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 20px; display: block; transform: none !important; }
/* the same glass sheen as the Wanya phones */
.bcp-thumb .bcp-ph::after { content: ""; position: absolute; inset: 4px; border-radius: 20px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 47%, transparent 58%); background-size: 260% 100%;
  background-position: 120% 0; animation: wsheen 7s ease-in-out infinite; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .bcp-thumb .bcp-ph::after { animation: none; } }
@media (max-width: 560px) { .bcp-thumb .bcp-ph { width: 33%; right: 9%; padding: 3px; border-radius: 17px; } .bcp-thumb .bcp-ph img, .bcp-thumb .bcp-ph::after { border-radius: 14px; } .bcp-thumb .bcp-ph::after { inset: 3px; } }

/* All home-card devices: one corner shape (latest iPhone: display corner ≈ 14% of the width)
   and the same glass sheen as Wanya. Radii are width% / height% so they stay round at any size. */
.wanya-thumb .phone, .nv-thumb .phone, .vb-thumb .vb-ph, .bcp-thumb .bcp-ph { border-radius: 16.5% / 7.6%; }
.wanya-thumb .phone img, .nv-thumb .phone > img, .vb-thumb .vb-ph img, .bcp-thumb .bcp-ph img { border-radius: 14.5% / 6.7%; }
.wanya-thumb .phone::after, .vb-thumb .vb-ph::after, .bcp-thumb .bcp-ph::after { border-radius: 14.5% / 6.7%; }
/* turn the sheen back on for Nivala and add it to Variabl */
.nv-thumb .phone::after { display: block; inset: 3px; animation: wsheen 7s ease-in-out infinite; }
.nv-thumb .d1 .phone::after { animation-delay: 1.2s; } .nv-thumb .d3 .phone::after { animation-delay: 2.4s; }
.vb-thumb .vb-ph { position: absolute; }
.vb-thumb .vb-ph::after { content: ""; position: absolute; inset: 3px; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.2) 47%, transparent 58%); background-size: 260% 100%;
  background-position: 120% 0; animation: wsheen 7s ease-in-out infinite; animation-delay: .8s; mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .nv-thumb .phone::after, .vb-thumb .vb-ph::after { animation: none; } }
