/* ============================================
   DESIGN SYSTEM — paper, black, amber
   ============================================ */

:root {
  /* Palette: warm off-white, true black, amber accent.
     (--blue / --lime keep their names but now hold black / amber.) */
  --blue: #0b0b0c;
  --blue-deep: #000000;
  --lime: #fdb73b;
  --ink: #0b0b0c;
  --paper: #f7f6f1;
  --paper-2: #e9e7df;
  --white: #ffffff;

  /* Gradients: warm paper with an amber glow, soft greys */
  --grad-mesh:
    radial-gradient(80% 70% at 0% 0%, rgba(11, 11, 12, 0.14) 0%, rgba(11, 11, 12, 0) 70%),
    radial-gradient(70% 60% at 100% 100%, rgba(253, 183, 59, 0.9) 0%, rgba(253, 183, 59, 0) 75%),
    linear-gradient(180deg, #f9f8f3 0%, #f8f2e4 62%, #fbe3b0 100%);
  --grad-light: linear-gradient(180deg, #f1efe8 0%, #f8f7f2 55%, #ffffff 100%);
  --grad-light-rev: linear-gradient(180deg, #ffffff 0%, #f8f7f2 45%, #efede5 100%);

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-card: 30px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--blue);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, p, figure, dl, dd {
  margin: 0;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.blue { background: var(--blue); color: var(--white); }
.lime { background: var(--lime); color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Type ---- */
.display {
  font-weight: 800;
  font-size: clamp(4rem, 12vw, 11.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.display span { display: block; }

.label {
  font-size: 1rem;
  font-weight: 600;
}

.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  margin-bottom: 18px;
}

/* ---- Pills ---- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--font);
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}

.pill:hover { transform: translateY(-3px); }
.pill--lg { min-height: 64px; padding: 0 36px; font-size: 20px; }
.pill--lime { background: var(--lime); color: var(--ink); }
.pill--white { background: var(--white); color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--lime); }
.pill--indigo { background: var(--blue); color: var(--lime); }

.pill--outline { background: transparent; border-color: currentColor; }
.blue .pill--outline { color: var(--white); }
.blue .pill--outline:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.lime .pill--outline,
.light .pill--outline { color: var(--ink); }
.lime .pill--outline:hover,
.light .pill--outline:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.pill--lime .dot,
.pill--white .dot { background: var(--blue); }
.pill--ink .dot,
.pill--indigo .dot { background: var(--lime); }

/* ---- Header ---- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 60;
  padding: 26px 0;
  color: var(--white);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 46px;
  height: 46px;
  justify-self: start;
  background: currentColor;
  -webkit-mask: url("../img/logo.png") center / contain no-repeat;
  mask: url("../img/logo.png") center / contain no-repeat;
  transition: transform 0.3s var(--ease);
}

.logo:hover { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4.5vw, 72px);
}

.nav-links a {
  font-size: 17px;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1.5px no-repeat;
  padding-bottom: 3px;
  transition: background-size 0.35s var(--ease);
}

.nav-links a:hover { background-size: 100% 1.5px; }

.nav-right {
  position: relative;
  z-index: 2;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 18px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---- Floating pill header + hero (from the Figma design) ---- */
.float-nav {
  position: fixed;
  z-index: 60;
  top: 26px;
  left: clamp(12px, 2.118vw, 40px);
  right: clamp(12px, 2.118vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border: 1px solid #29b2e9;
  border-radius: 48px;
  color: #232323;
}

.float-logo { position: relative; z-index: 2; display: block; flex-shrink: 0; }
.float-logo img { display: block; width: 46px; height: 46px; }

.float-nav .nav-links { gap: 64.8px; }

.float-nav .nav-links a {
  font-family: "Montserrat", var(--font);
  font-size: 17px;
  font-weight: 500;
  line-height: 24.65px;
  letter-spacing: -0.18px;
  color: #232323;
}

.float-right { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }

.float-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  background: #ffda70;
  border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: 999px;
  color: #232323;
  font: 600 16px/16px "Montserrat", var(--font);
  letter-spacing: -0.16px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease);
}

.float-cta:hover { transform: translateY(-2px); }

.float-nav .nav-toggle { border-color: #232323; }
.float-nav .nav-toggle span { background: #232323; }
.float-nav .nav-toggle[aria-expanded="true"] { border-color: #ffffff; }
.float-nav .nav-toggle[aria-expanded="true"] span { background: #ffffff; }

.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 120px;
  background: #5dcbf7;
  color: #ffffff;
}

.hero-head {
  width: 100%;
  max-width: 1432px;
  padding: 32px 56px 0;
  text-align: center;
}

.hero-heading { font-family: "Montserrat", var(--font); }

.hero-name {
  display: block;
  font-size: clamp(2.6rem, 11.111vw, 10rem);
  font-weight: 800;
  line-height: 1.089;
  letter-spacing: -0.00625em;
  white-space: nowrap;
}

.hero-tagline {
  display: block;
  font-size: clamp(1.05rem, 3.333vw, 3rem);
  font-weight: 500;
  line-height: 1.708;
  letter-spacing: -0.0417em;
  white-space: nowrap;
}

/* hero: three layers (Figma "Hero images"): gradient sky, clouds, and the cut-out of Kasif */
.hero-head { position: relative; z-index: 1; }
.hero-stage { position: relative; width: 100%; aspect-ratio: 1672 / 941; overflow: hidden; }
/* Figma radial gradient (rgb 83,203,253 -> 126,215,249 -> 168,227,245); top edge fades into the flat hero colour */
.hero-sky {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(106.6% 106.6% at 50% -6.6%, rgb(83, 203, 253) 0%, rgb(126, 215, 249) 50%, rgb(168, 227, 245) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
}
.hero-clouds, .hero-fg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-clouds { z-index: 1; transform: scale(1.12); transform-origin: 50% 60%; }
.hero-fg { z-index: 2; transform: scale(1.03); transform-origin: 50% 100%; }
@keyframes cloud-drift { from { translate: -16px 0; } to { translate: 16px -6px; } }
.js .hero-clouds { animation: cloud-drift 14s ease-in-out infinite alternate; }

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1000px) {
  .float-nav .nav-links a { color: #ffffff; font-family: "Montserrat", var(--font); font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
  .float-nav .nav-links { background: #5dcbf7; }
}

@media (max-width: 700px) {
  .float-nav { top: 12px; padding: 10px 14px; }
  .float-logo img { width: 38px; height: 38px; }
  .float-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
  .float-nav .nav-toggle { width: 42px; height: 42px; }
  .float-nav .nav-toggle span { left: 11px; right: 11px; }
  .float-nav .nav-toggle span:nth-child(1) { top: 15px; }
  .float-nav .nav-toggle span:nth-child(2) { top: 23px; }
  .hero { padding-top: 104px; }
  .hero-head { padding: 24px 20px 0; }
  .hero-name { white-space: normal; line-height: 1.15; }
  .hero-tagline { white-space: normal; line-height: 1.35; margin-top: 6px; }
}

/* ---- Marquee ---- */
.marquee {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: clamp(40px, 5.5vw, 76px) 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
  width: max-content;
  animation: marquee 70s linear infinite;
}

.marquee-track span {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.marquee-track i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---- About ---- */
.about {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #f1efe8 0%, #f8f7f2 100%);
  color: var(--ink);
  padding: clamp(60px, 9vw, 150px) 0 clamp(90px, 10vw, 150px);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0 clamp(32px, 6vw, 110px);
  align-items: start;
}

.about-photo {
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin-top: clamp(36px, 6vw, 90px);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(21, 21, 26, 0.28);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.about-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding-top: clamp(0px, 5vw, 70px);
}

.about-side p { max-width: 36ch; font-size: clamp(1.05rem, 1.45vw, 1.35rem); }
.about-side p + p { margin-top: -6px; }

/* ---- Work ---- */
.work {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(60% 45% at 100% 100%, rgba(253, 183, 59, 0.42) 0%, rgba(253, 183, 59, 0) 72%),
    radial-gradient(55% 40% at 0% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 45%, #1d1d1f 100%);
  color: var(--white);
  padding: clamp(90px, 11vw, 170px) 0 clamp(110px, 13vw, 200px);
}

.about .display,
.skills .display,
.journal .display { color: var(--blue); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 110px);
}

.work .display { color: var(--white); }

.section-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  max-width: 34ch;
  text-align: right;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

.work-col {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 76px);
}

.work-col:nth-child(2) { padding-top: clamp(40px, 8vw, 130px); }

.work-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s var(--ease);
}

.work-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.work-card:hover .work-media { transform: translateY(-10px); }
.work-card:hover .work-media img { transform: scale(1.045); }

.work-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px 0;
}

.work-cap small { display: block; color: var(--lime); font-size: 0.95rem; font-weight: 600; }
.work-cap b { display: block; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }

.arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease);
}

.work-card:hover .arrow { transform: rotate(45deg); }

/* ---- Skills ---- */
.skills {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(55% 50% at 0% 100%, rgba(253, 183, 59, 0.3) 0%, rgba(253, 183, 59, 0) 72%),
    var(--grad-light);
  color: var(--ink);
  padding: clamp(90px, 11vw, 170px) 0 clamp(60px, 7vw, 100px);
}

.skills-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}

.skills-head .display { text-align: right; }

.skills-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  max-width: 34ch;
  padding-top: 8px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(48px, 6vw, 96px);
}

.skill-card {
  --shape: var(--lime);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  padding: 26px;
  border-radius: var(--radius-card);
  color: var(--ink);
  box-shadow: 0 26px 50px rgba(11, 11, 12, 0.22);
  transition: transform 0.5s var(--ease);
}

.skill-card:hover { transform: translateY(-8px) rotate(-1deg); }

.skill-card::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  right: -22%;
  top: -14%;
  border-radius: 50%;
  background: var(--shape);
}

.skill-card > * { position: relative; }
.skill-card--pink { background: var(--ink); --shape: var(--lime); color: var(--white); }
.skill-card--cyan { background: linear-gradient(160deg, #ffc65a 0%, #f59e0b 100%); --shape: rgba(255, 255, 255, 0.55); color: var(--ink); }
.skill-card--yellow { background: var(--paper-2); --shape: var(--lime); color: var(--ink); }
.skill-card--blue { background: var(--white); --shape: var(--ink); color: var(--ink); }

.skill-card h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}

.skill-card ul { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-card li {
  padding: 6px 13px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Journal / posts ---- */
.journal {
  position: relative;
  z-index: 1;
  background: var(--grad-light-rev);
  color: var(--ink);
  padding: clamp(60px, 7vw, 110px) 0 clamp(130px, 13vw, 200px);
}

.journal .display { margin-bottom: clamp(36px, 5vw, 72px); }

.post-list { border-bottom: 1.5px solid rgba(21, 21, 26, 0.28); }

.post-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
  padding: 26px 0;
  border-top: 1.5px solid rgba(21, 21, 26, 0.28);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), padding 0.35s var(--ease), border-radius 0.35s var(--ease);
}

.post-row:hover {
  background: var(--blue);
  color: var(--lime);
  border-radius: 34px;
  padding-left: 26px;
  padding-right: 26px;
  border-color: transparent;
}

.post-thumb {
  width: clamp(96px, 14vw, 210px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 20px;
}

.post-date { font-size: 0.95rem; font-weight: 600; opacity: 0.7; margin-bottom: 6px; }

.post-title {
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.post-row .arrow { background: var(--blue); color: var(--lime); }
.post-row:hover .arrow { background: var(--lime); color: var(--ink); transform: rotate(45deg); }

.post-more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }

/* ---- Tail: CTA + footer ---- */
.tail {
  position: relative;
  z-index: 3;
  margin-top: -48px;
  border-radius: 48px 48px 0 0;
  background:
    radial-gradient(65% 50% at 50% 100%, rgba(253, 183, 59, 0.34) 0%, rgba(253, 183, 59, 0) 72%),
    radial-gradient(50% 45% at 100% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #1d1d1f 0%, var(--blue) 40%, var(--blue-deep) 100%);
  color: var(--white);
  overflow: hidden;
}

.cta {
  position: relative;
  text-align: center;
  padding: clamp(100px, 13vw, 200px) 0 clamp(80px, 9vw, 140px);
}

.cta-halo {
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: min(70vw, 860px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 183, 59, 0.28) 0%, rgba(253, 183, 59, 0) 68%);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.cta-title {
  position: relative;
  font-size: clamp(3rem, 13vw, 13rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.065em;
  text-transform: lowercase;
  color: var(--white);
  margin-bottom: clamp(32px, 4vw, 56px);
}

.cta .pill { position: relative; }

.footer-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.footer-row .pill { justify-self: end; }

.footer-links {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  font-size: 17px;
}

.footer-links a:hover { color: var(--lime); }

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 36px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-meta div { display: flex; gap: 22px; }
.footer-meta a:hover { color: var(--lime); }

/* ---- Inner pages ---- */
.page-hero {
  position: relative;
  z-index: 2;
  background:
    radial-gradient(55% 80% at 100% 100%, rgba(253, 183, 59, 0.4) 0%, rgba(253, 183, 59, 0) 72%),
    radial-gradient(50% 60% at 0% 0%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, var(--blue-deep) 0%, var(--blue) 70%, #1d1d1f 100%);
  color: var(--white);
  padding: clamp(130px, 14vw, 190px) 0 0;
}

.page-hero--flat { padding-bottom: clamp(56px, 7vw, 110px); }
.page-hero--center { text-align: center; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
  font-weight: 600;
  font-size: 1rem;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s var(--ease);
}

.draft-note {
  display: inline-block;
  margin: 0 0 18px 18px;
  padding: 6px 14px;
  border: 1.5px solid var(--lime);
  border-radius: 999px;
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 700;
}

.back-link:hover { opacity: 1; transform: translateX(-4px); }

.page-title {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(3rem, 9.5vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: -0.06em;
  max-width: 14ch;
  text-wrap: balance;
}

.page-title--post { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 18ch; }
.page-hero--center .page-title { margin-left: auto; margin-right: auto; }
.lead { max-width: 52ch; margin: 28px auto 0; font-size: 1.25rem; opacity: 0.9; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 22px clamp(28px, 6vw, 90px);
  margin-top: clamp(32px, 5vw, 64px);
}

.meta-item small {
  display: block;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}

.meta-item strong { color: var(--lime); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.03em; }

.cover-card {
  position: relative;
  z-index: 4;
  display: block;
  max-width: 1040px;
  margin: clamp(40px, 6vw, 88px) auto calc(-1 * clamp(70px, 10vw, 150px));
  border-radius: 34px;
  overflow: hidden;
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.45);
}

.cover-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: 50% 100%;
  transition: transform 1s var(--ease);
}

.cover-card:hover img { transform: scale(1.03); }
.cover-card--wide img { aspect-ratio: 16 / 8; object-position: center; }

.page-body {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(50% 35% at 100% 100%, rgba(253, 183, 59, 0.22) 0%, rgba(253, 183, 59, 0) 72%),
    linear-gradient(180deg, #f1efe8 0%, #f8f7f2 50%, #efede5 100%);
  color: var(--ink);
  padding: clamp(120px, 15vw, 240px) 0 clamp(130px, 13vw, 200px);
}

.page-hero--flat + .page-body { padding-top: clamp(56px, 7vw, 110px); }

/* case study blocks */
.cs-block {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(36px, 5vw, 72px) 0;
  border-top: 1.5px solid rgba(21, 21, 26, 0.28);
}

.cs-block:first-child { border-top: 0; padding-top: 0; }

.cs-block h2 {
  color: var(--blue);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.cs-content .intro { font-size: clamp(1.15rem, 1.8vw, 1.5rem); margin-bottom: 18px; }

.cs-content li {
  position: relative;
  padding: 16px 0 16px 30px;
  border-top: 1px solid rgba(21, 21, 26, 0.2);
  font-size: 1.15rem;
}

.cs-content li:first-child { border-top: 0; }

.cs-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}

.cs-content li strong { font-weight: 800; }

.next-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(64px, 9vw, 120px);
}

.next-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 32px;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-card);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}

.next-link:hover { background: var(--blue); border-color: var(--blue); color: var(--lime); transform: translateY(-4px); }
.next-link small { font-size: 0.95rem; font-weight: 600; opacity: 0.7; }
.next-link strong { font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.04em; }
.next-link--next { text-align: right; }
.next-grid--single { grid-template-columns: 1fr; max-width: 520px; }

/* blog prose */
.prose {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prose p { font-size: 1.3rem; line-height: 1.5; }

.prose h2 {
  color: var(--blue);
  margin-top: 28px;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.prose blockquote {
  margin: 14px 0;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-card);
  background: var(--blue);
  color: var(--lime);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

/* contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-weight: 700; font-size: 1rem; }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 18px 22px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
  color: var(--ink);
  font: 500 18px/1.4 var(--font);
  letter-spacing: -0.01em;
  resize: vertical;
  transition: background 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 11, 12, 0.28);
}

.contact-form .pill { align-self: flex-start; }
.form-status { min-height: 1.4em; font-weight: 600; }

.contact-direct { display: flex; flex-direction: column; gap: 18px; }

.contact-direct-item {
  padding: 28px 30px;
  border-radius: var(--radius-card);
  background: var(--blue);
  color: var(--white);
}

.contact-direct-item small {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.contact-direct-item a,
.contact-direct-item p { color: var(--lime); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; word-break: break-word; }

/* ---- Reveal on scroll ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .nav-wrap { grid-template-columns: 1fr auto; }
  .nav-toggle { display: block; }
  .nav-right .pill { display: none; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
    padding: 0 var(--gutter);
    background: var(--blue);
  }

  .nav-links--open { display: flex; }
  .nav-links a { font-size: clamp(2.6rem, 11vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; color: var(--lime); }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: 2; justify-self: start; max-width: 380px; }
  .hero-copy { max-width: 44ch; }

  .about-grid,
  .section-head,
  .skills-head,
  .contact-layout { grid-template-columns: 1fr; }

  .section-side { align-items: flex-start; text-align: left; }
  .skills-head .display { text-align: left; order: -1; }
  .about-side { padding-top: 28px; }

  .work-grid { grid-template-columns: 1fr; }
  .work-col:nth-child(2) { padding-top: 0; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .cs-block { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { aspect-ratio: 5 / 4; }
  .post-row { grid-template-columns: 1fr auto; }
  .post-thumb { display: none; }
  .next-grid { grid-template-columns: 1fr; }
  .next-link--next { text-align: left; }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-row .pill { justify-self: start; }
  .footer-links { flex-wrap: wrap; }
  .footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---- Case studies (mirrors the live structure) ---- */
.page-title--cs { font-size: clamp(2.4rem, 6.6vw, 6.4rem); max-width: 20ch; letter-spacing: -0.05em; }
.cover-card--cs { max-width: 1180px; }
.cover-card--cs img { aspect-ratio: auto; object-fit: initial; }

.cs-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 5vw, 80px);
}

.cs-top { align-items: start; }

.cs-meta { display: flex; flex-direction: column; gap: 26px; }
.cs-meta dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.6; margin-bottom: 4px; }
.cs-meta dd { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }

.cs-col { grid-column: 2; display: flex; flex-direction: column; gap: 18px; }
.cs-top .cs-col { grid-column: auto; }

.cs-col h2 {
  margin-top: 28px;
  color: var(--blue);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.cs-col h2:first-child { margin-top: 0; }
.cs-col h3 { margin-top: 10px; font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.cs-col p { font-size: 1.2rem; line-height: 1.5; }
.cs-col p strong { font-weight: 800; }

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px);
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(28px, 3vw, 44px);
  border-top: 1.5px solid rgba(11, 11, 12, 0.18);
}

.cs-stats strong { display: block; font-size: clamp(2.8rem, 6.4vw, 5.8rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.cs-stats span { display: block; margin-top: 10px; font-size: 1.05rem; font-weight: 600; opacity: 0.75; }

.cs-flow { margin-top: clamp(24px, 4vw, 56px); }
.cs-figure { margin: clamp(40px, 6vw, 88px) 0 clamp(24px, 3vw, 40px); }
.cs-figure img { width: 100%; height: auto; border-radius: 28px; box-shadow: 0 34px 70px rgba(11, 11, 12, 0.28); }

.work-card--static { cursor: default; }
.work-card--static:hover .work-media,
.work-card--static:hover .work-media img { transform: none; }

@media (max-width: 1000px) {
  .cs-row { grid-template-columns: 1fr; gap: 24px; }
  .cs-col { grid-column: auto; }
  .cs-stats { grid-template-columns: 1fr; }
}

/* ---- Blog posts (real content) ---- */
.lead--left { margin: 26px 0 0; max-width: 56ch; text-align: left; }
.cover-card--wide img { aspect-ratio: auto; object-fit: initial; }

.prose h3 { margin-top: 12px; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.prose p em { font-style: italic; font-weight: 600; }

.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose li { position: relative; padding-left: 26px; font-size: 1.2rem; line-height: 1.5; }
.prose li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.prose li strong { font-weight: 800; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: #c27d00; }

.post-figure { margin: 6px 0 14px; }
.post-figure img { max-width: 100%; height: auto; border-radius: 16px; box-shadow: 0 18px 40px rgba(11, 11, 12, 0.18); }

.table-wrap { overflow-x: auto; margin: 6px 0 10px; border-radius: 20px; border: 1.5px solid rgba(11, 11, 12, 0.22); }
.prose table { width: 100%; border-collapse: collapse; font-size: 1.1rem; min-width: 520px; }
.prose th { text-align: left; padding: 16px 20px; background: var(--ink); color: var(--white); font-weight: 700; }
.prose td { padding: 16px 20px; border-top: 1px solid rgba(11, 11, 12, 0.14); }
.prose td:first-child { font-weight: 800; }


/* ============================================================
   HOME — sections from the Figma design (Montserrat, sky / butter / black)
   ============================================================ */
.h-display {
  font-family: "Montserrat", var(--font);
  font-weight: 700;
  font-size: clamp(3.4rem, 11.111vw, 10rem);
  line-height: 1.0584;
  letter-spacing: -0.0648em;
  margin: 0;
}

.h-display span { display: block; white-space: nowrap; }
.h-display--right { text-align: right; }

.h-head {
  display: grid;
  grid-template-columns: 918.36fr 369.64fr;
  gap: 32px;
  align-items: end;
}

/* marquee */
.h-marquee-wrap { position: relative; z-index: 1; }

.h-marquee {
  position: relative;
  overflow: hidden;
  padding: 76px 0;
  background: #0b0b0c;
}

.h-marquee-track {
  display: flex;
  align-items: flex-end;
  gap: 82px;
  width: max-content;
  padding-right: 82px;
  animation: marquee 45s linear infinite;
}

.h-marquee-track span {
  color: #ffffff;
  font: 500 38.4px/55.68px "Montserrat", var(--font);
  letter-spacing: -1.536px;
  white-space: nowrap;
}

.h-marquee-track img { width: 38px; height: 38px; flex-shrink: 0; }

/* statement */
.h-statement {
  position: relative;
  z-index: 1;
  height: 156vh;
  background: #ffda70;
}

.h-statement-pin {
  position: sticky;
  top: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 80px var(--gutter);
}

.h-statement h2 {
  max-width: 1314px;
  margin: 0 auto;
  color: #0b0b0c;
  font: 700 clamp(2.4rem, 8.333vw, 7.5rem) / 1.125 "Montserrat", var(--font);
  letter-spacing: -0.0333em;
  text-align: center;
}

.h-statement em { font-style: italic; font-weight: 800; }

/* work */
.h-work {
  position: relative;
  z-index: 1;
  padding: 158.4px 0 187.2px;
  background: #000000;
  color: #ffffff;
}

.h-work-note {
  justify-self: end;
  width: 454px;
  max-width: 100%;
  margin: 0;
  font: 500 32px/32px "Montserrat", var(--font);
  letter-spacing: -0.18px;
  text-align: right;
}

.h-work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 57.6px;
  margin-top: 100.8px;
}

.h-work-grid { row-gap: 72px; }
.h-col { display: contents; }
/* two cards side by side, the third centred underneath at the same size */
.h-col--offset .h-card { grid-column: 1 / -1; justify-self: center; width: calc(50% - 28.8px); }

.h-card { display: block; }

.h-card-media {
  aspect-ratio: 631 / 440;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.5);
  transition: transform 0.55s var(--ease);
}

.h-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transition: transform 0.9s var(--ease);
}

a.h-card:hover .h-card-media { transform: translateY(-10px); }
a.h-card:hover .h-card-media img { transform: scale(1.045); }

.h-card-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px 0;
}

.h-card-cap small {
  display: block;
  min-height: 23px;
  color: #fdb73b;
  font: 500 24px/22.04px "Montserrat", var(--font);
  letter-spacing: -0.18px;
}

.h-card-cap b {
  display: block;
  min-height: 32px;
  color: #ffffff;
  font: 400 21.6px/31.32px "Montserrat", var(--font);
  letter-spacing: -0.648px;
}

.h-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 26px;
  background: #fdb73b;
  transition: transform 0.4s var(--ease);
}

.h-arrow--dark { background: #0b0b0c; }
.h-arrow img { display: block; width: 20px; height: 20px; }
a.h-card:hover .h-arrow,
a.h-post:hover .h-arrow { transform: rotate(45deg); }

/* skills */
.h-skills {
  position: relative;
  z-index: 1;
  padding: 158.4px 0 100px;
  background: #ffda70;
  color: #0b0b0c;
}

.h-head--skills { grid-template-columns: 916.02fr 371.98fr; align-items: start; }

.h-skills-note {
  max-width: 551px;
  margin: 8px 0 0;
  font: 400 32px/32px "Montserrat", var(--font);
  letter-spacing: -0.18px;
}

.h-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 86.4px;
}

.h-skill {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 386.25px;
  padding: 26px;
  border-radius: 30px;
  overflow: hidden;
  color: #0b0b0c;
}

.h-skill h3 {
  margin: 0;
  font: 700 37.44px/35.568px "Montserrat", var(--font);
  letter-spacing: -1.872px;
}

.h-skill ul { display: flex; flex-wrap: wrap; gap: 8px 1.2px; padding-top: 18px; }

.h-skill li {
  padding: 6px 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font: 500 14.4px/20.88px "Montserrat", var(--font);
  letter-spacing: -0.18px;
  white-space: nowrap;
}

.h-skill--black { background: #0b0b0c; color: #ffffff; }
.h-skill--amber { padding: 28.8px 26px 25.45px; background: linear-gradient(155.536deg, #ffc65a 8.4861%, #f59e0b 91.514%); }
.h-skill--sand { padding: 23.8px 26px 25.45px; background: #e9e7df; }
.h-skill--white { background: #ffffff; }

/* blog */
.h-blog {
  position: relative;
  z-index: 1;
  padding: 100.8px 0 187.2px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f2 45%, #efede5 100%);
  color: #0b0b0c;
}

.h-blog-title {
  margin: 0;
  font: 700 clamp(4rem, 12vw, 10.8rem) / 0.926 "Montserrat", var(--font);
  letter-spacing: -0.06em;
}

.h-post-list { margin-top: 72px; border-bottom: 1px solid rgba(21, 21, 26, 0.28); }

.h-post {
  display: grid;
  grid-template-columns: 201.59px 1fr 52px;
  gap: 43.2px;
  align-items: center;
  padding: 26px 0;
  border-top: 1px solid rgba(21, 21, 26, 0.28);
}

.h-post-thumb { width: 201.6px; height: 134.4px; object-fit: cover; border-radius: 20px; }

.h-post-date {
  margin: 0;
  opacity: 0.7;
  font: 500 15.2px/22.04px "Montserrat", var(--font);
  letter-spacing: -0.18px;
}

.h-post-title {
  margin: 0;
  padding-top: 6px;
  font: 500 46.08px/46.08px "Montserrat", var(--font);
  letter-spacing: -2.304px;
  transition: transform 0.4s var(--ease);
}

a.h-post:hover .h-post-title { transform: translateX(8px); }

.h-more { display: flex; justify-content: center; padding-top: 64px; }

.h-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 0 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #0b0b0c;
  color: #fdb73b;
  font: 600 20px/20px "Inter Tight", var(--font);
  letter-spacing: -0.2px;
  transition: transform 0.25s var(--ease);
}

.h-more-btn:hover { transform: translateY(-3px); }

/* closing section + footer (the .tail container supplies the rounded top + gradient) */
.h-cta {
  position: relative;
  padding: 187.2px 0 129.6px;
  text-align: center;
}

.h-cta-halo {
  position: absolute;
  left: 50%;
  top: 411.95px;
  width: 860px;
  height: 860px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 430px;
  background: radial-gradient(circle 608px at 50% 50%, rgba(253, 183, 59, 0.28) 0%, rgba(253, 183, 59, 0) 68%);
  pointer-events: none;
}

.h-cta-title {
  position: relative;
  margin: 0 0 56px;
  color: #ffffff;
  font: 700 clamp(3rem, 11.111vw, 10rem) / 1.053 "Montserrat", var(--font);
  letter-spacing: -0.07605em;
}

.h-cta-title span { display: block; white-space: nowrap; }

.h-cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #fdb73b;
  color: #0b0b0c;
  font: 500 20px/20px "Montserrat", var(--font);
  letter-spacing: -0.2px;
  transition: transform 0.25s var(--ease);
}

.h-cta-btn:hover { transform: translateY(-3px); }
.h-dot { width: 10px; height: 10px; border-radius: 5px; background: #0b0b0c; }

.h-footer-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.h-footer-logo img { display: block; width: 46px; height: 46px; }

.h-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0c;
  font: 500 16px/16px "Montserrat", var(--font);
  letter-spacing: -0.16px;
}

.h-footer-meta {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.78);
  font: 400 14.4px/20.88px "Montserrat", var(--font);
  letter-spacing: -0.18px;
}

.h-footer-meta div { display: flex; gap: 22px; }
.h-footer-meta a:hover { color: #fdb73b; }

@media (max-width: 1000px) {
  .h-head,
  .h-head--skills { grid-template-columns: 1fr; gap: 24px; }
  .h-head--skills .h-display { order: -1; }
  .h-display--right { text-align: left; }
  .h-work-note { justify-self: start; width: auto; max-width: 30ch; text-align: left; font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.15; }
  .h-skills-note { font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.15; }
  .h-work { padding: clamp(80px, 11vw, 158px) 0 clamp(90px, 13vw, 187px); }
  .h-work-grid { grid-template-columns: 1fr; margin-top: 56px; }
  .h-col--offset .h-card { width: 100%; }
  .h-skills { padding: clamp(80px, 11vw, 158px) 0 80px; }
  .h-skill-grid { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .h-blog { padding: 72px 0 clamp(90px, 13vw, 187px); }
  .h-post { grid-template-columns: 140px 1fr 44px; gap: 20px; }
  .h-post-thumb { width: 140px; height: 94px; }
  .h-post-title { font-size: clamp(1.4rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.04em; }
  .h-arrow { width: 44px; height: 44px; border-radius: 22px; }
  .h-cta { padding: clamp(100px, 18vw, 187px) 0 clamp(80px, 12vw, 130px); }
  .h-cta-halo { top: 38%; width: min(860px, 120vw); height: min(860px, 120vw); }
}

@media (max-width: 560px) {
  .h-marquee { padding: 44px 0; }
  .h-marquee-track { gap: 44px; padding-right: 44px; }
  .h-marquee-track span { font-size: 26px; line-height: 38px; letter-spacing: -0.04em; }
  .h-marquee-track img { width: 26px; height: 26px; }
  .h-skill-grid { grid-template-columns: 1fr; }
  .h-post { grid-template-columns: 96px 1fr; }
  .h-post .h-arrow { display: none; }
  .h-post-thumb { width: 96px; height: 72px; }
  .h-footer-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .h-marquee-track { animation: none; }
}

/* ---- Case studies: live-site layout/colours, Montserrat type ---- */
body.cs { background: #101010; color: rgba(255, 255, 255, 0.5); font-family: "Montserrat", var(--font); }
.csl { font-family: "Montserrat", var(--font); padding: 141px 0 192px; }
.csl-title {
  width: 1314px; max-width: calc(100% - 48px); margin: 0 auto;
  font: 700 clamp(2.4rem, 8.333vw, 7.5rem) / 1.125 "Montserrat", var(--font); letter-spacing: -0.0333em;
  color: rgba(255, 255, 255, 0.75); text-wrap: balance;
}
.csl-hero { width: 1000px; max-width: calc(100% - 48px); margin: 80px auto 0; border-radius: 24px; overflow: hidden; aspect-ratio: 1000 / 529.8; }
.csl-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.csl-wrap { width: 736px; max-width: calc(100% - 48px); margin: 48px auto 0; }
.csl-top { display: grid; grid-template-columns: 235.3px 1fr; column-gap: 30px; align-items: start; }
.csl-meta { display: flex; flex-direction: column; gap: 24px; margin: 0; }
.csl-meta dt { font: 700 18px/25.2px "Montserrat", var(--font); letter-spacing: -0.3px; color: rgba(255, 255, 255, 0.75); }
.csl-meta dd { margin: 8px 0 0; font: 400 20px/28px "Montserrat", var(--font); letter-spacing: -0.3px; color: rgba(255, 255, 255, 0.5); }
.csl--citybankcorporate .csl-meta dt { color: rgb(223, 239, 215); }
.csl-text h2 { margin: 0 0 16px; font: 400 38px/45.6px "Montserrat", var(--font); letter-spacing: -0.7px; color: rgba(255, 255, 255, 0.75); }
.csl-text h3 { margin: 32px 0 18px; font: 500 28px/33.6px "Montserrat", var(--font); letter-spacing: -0.7px; color: #fff; }
.csl-text p { margin: 0 0 18px; font: 400 20px/28px "Montserrat", var(--font); letter-spacing: -0.3px; color: rgba(255, 255, 255, 0.5); }
.csl-text h3 + p { margin-top: 0; }
.csl-text p strong { font-weight: 400; color: #fff; }
.csl-text h2:not(:first-child) { margin-top: 48px; }
.csl-text--top h2:first-child { margin-top: 0; }
.csl-text--top h2:not(:first-child) { margin-top: 48px; }
.csl-stats { display: grid; grid-template-columns: repeat(3, 221px); gap: 24px; margin: 80px 0 0 0; }
.csl-stats strong { display: block; font: 400 48px/57.6px "Montserrat", var(--font); color: rgba(255, 255, 255, 0.75); }
.csl-stats span { display: block; margin-top: 8px; font: 500 14px/16.8px "Montserrat", var(--font); letter-spacing: -0.2px; color: #fff; }
.csl-flow { margin-top: 48px; }
.csl-flow > .csl-text { margin: 96px 0 0; }
.csl-flow > .csl-fig + .csl-text { margin-top: 48px; }
.csl-flow > .csl-fig { --fw: min(1016px, 100vw - 48px); margin: 48px 0 0 calc(50% - var(--fw) / 2); width: var(--fw); border-radius: 24px; overflow: hidden; }
.csl-flow > .csl-fig:first-child { margin-top: 0; }
.csl-flow > .csl-text + .csl-fig { margin-top: 96px; }
.csl-fig img { display: block; width: 100%; height: auto; }
.csl--chaldal-instant-design .csl-flow > .csl-fig { --fw: min(1080px, 100vw - 48px); }
.csl-flow > .csl-text > :last-child { margin-bottom: 0; }

@media (max-width: 700px) {
  .csl { padding: 120px 0 120px; }
  .csl-hero { margin-top: 40px; border-radius: 16px; }
  .csl-wrap { margin-top: 32px; }
  .csl-top { grid-template-columns: 1fr; row-gap: 32px; }
  .csl-meta { flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .csl-text h2 { font-size: 28px; line-height: 34px; }
  .csl-text h3 { font-size: 22px; line-height: 28px; }
  .csl-text p, .csl-meta dd { font-size: 17px; line-height: 25px; }
  .csl-stats { grid-template-columns: 1fr; margin-top: 56px; }
  .csl-flow > .csl-text, .csl-flow > .csl-text + .csl-fig, .csl-flow > .csl-fig { margin-top: 56px; }
  .csl-flow > .csl-fig { border-radius: 16px; }
}

/* ---- Scroll effects: hero parallax + scroll-typed statement ---- */
.hero { overflow: hidden; }
[data-parallax-head] { will-change: transform, opacity; }
[data-parallax-img] { transform-origin: 50% 100%; will-change: transform; }
.type-ch { opacity: 0; }
.type-ch.on { opacity: 1; }
.h-statement em .type-ch { font-style: normal; }
.h-statement em.italic .type-ch { font-style: italic; }
.type-caret {
  display: inline-block; width: 0.06em; height: 0.85em; margin-left: 0.04em;
  background: #0b0b0c; vertical-align: -0.05em; animation: caret 0.9s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.js-no-motion .type-ch { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .h-statement { height: auto; }
  .h-statement-pin { position: static; min-height: 0; padding: clamp(80px, 11.111vw, 160px) var(--gutter); }
  .type-ch { opacity: 1; } .type-caret { display: none; }
  [data-parallax-head], [data-parallax-img] { transform: none !important; opacity: 1 !important; }
}

/* ---- "hooked": hinge-swing + whole-section colour flip (no chip behind the word) when it goes italic ---- */
.h-statement-pin { overflow: hidden; }
.h-statement h2 { position: relative; z-index: 1; }
.h-statement em { display: inline-block; }
/* "hooked": hinge on its bottom-left corner – falls, bounces, then keeps swinging gently */
.h-statement-pin { overflow: hidden; }
.h-statement h2 { position: relative; z-index: 1; }
.h-statement em { display: inline-block; transform-origin: 0 100%; }
.h-statement em.italic {
  animation:
    hinge-fall 1.8s cubic-bezier(0.33, 0, 0.3, 1) both,
    hinge-swing 4.8s ease-in-out 1.8s infinite alternate;
}
@keyframes hinge-fall {
  0%   { transform: rotate(0deg); }
  28%  { transform: rotate(20deg); }
  48%  { transform: rotate(1deg); }
  68%  { transform: rotate(13deg); }
  85%  { transform: rotate(5deg); }
  100% { transform: rotate(8deg); }
}
@keyframes hinge-swing {
  from { transform: rotate(8deg); }
  to   { transform: rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .h-statement em.italic { animation: none; transform: rotate(8deg); }
}

/* inner pages (contact, blog): leave room for the floating pill header */
body.inner .page-hero { padding-top: clamp(150px, 15vw, 210px); }

/* floating pill: hides when scrolling down, comes back as soon as you scroll up */
.float-nav { transition: transform 0.45s var(--ease); }
.float-nav.nav-hidden { transform: translateY(calc(-100% - 40px)); }
@media (prefers-reduced-motion: reduce) { .float-nav { transition: none; } }

/* 404 */
.nf .page-hero { min-height: calc(100vh - 80px); display: grid; align-content: center; padding-bottom: 80px; }
.nf .lead { margin-bottom: 32px; }

/* ---- Page-load intro (runs once when a page opens; uses the individual translate/scale properties so
   it never fights the scroll parallax or the hide-on-scroll nav, which use `transform`) ---- */
@keyframes in-rise { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
@keyframes in-drop { from { opacity: 0; translate: 0 -90px; } to { opacity: 1; translate: 0 0; } }
@keyframes in-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes in-zoom { from { opacity: 0; scale: 1.16; } to { opacity: 1; scale: 1; } }
@keyframes in-clip { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.js .float-nav { animation: in-drop 0.9s var(--ease) 0.15s both; }

/* homepage hero */
.js .hero-name { animation: in-rise 1.1s var(--ease) 0.3s both; }
.js .hero-tagline { animation: in-rise 1.1s var(--ease) 0.5s both; }
.js .hero-stage { animation: in-zoom 1.8s var(--ease) 0.35s both; }

/* case studies */
.js .csl-title { animation: in-rise 1s var(--ease) 0.3s both; }
.js .csl-hero { animation: in-rise 1.1s var(--ease) 0.55s both; }

/* contact, blog, 404 */
.js .page-hero .back-link,
.js .page-hero .eyebrow { animation: in-fade 0.9s var(--ease) 0.3s both; }
.js .page-hero .page-title { animation: in-rise 1s var(--ease) 0.35s both; }
.js .page-hero .lead,
.js .page-hero .cover-card,
.js .nf .page-hero p { animation: in-rise 1s var(--ease) 0.55s both; }

@media (prefers-reduced-motion: reduce) {
  .js .hero-clouds { animation: none; }
  .js .float-nav, .js .hero-name, .js .hero-tagline, .js .hero-stage, .js .csl-title, .js .csl-hero,
  .js .page-hero .back-link, .js .page-hero .eyebrow, .js .page-hero .page-title,
  .js .page-hero .lead, .js .page-hero .cover-card, .js .nf .page-hero p { animation: none; }
}

/* ---- Mobile type: keep the big, bold desktop voice on phones ---- */
@media (max-width: 700px) {
  /* hero: name goes huge on two lines, tagline wraps, illustration is cropped taller */
  .hero { padding-top: 104px; }
  .hero-head { padding: 12px 20px 0; }
  .hero-name { font-size: 22vw; line-height: 0.98; letter-spacing: -0.03em; white-space: normal; }
  .hero-tagline { font-size: 6.4vw; line-height: 1.28; letter-spacing: -0.03em; white-space: normal; margin-top: 14px; padding-bottom: 28px; }
  .hero-stage { aspect-ratio: 4 / 5; }
  .hero-clouds, .hero-fg { object-position: 52% 70%; }

  .h-marquee-track span { font-size: 34px; line-height: 44px; }
  .h-statement h2 { font-size: 12.6vw; line-height: 1.07; letter-spacing: -0.04em; }

  .h-display { font-size: 18vw; line-height: 0.98; letter-spacing: -0.04em; }
  .h-display span { font-size: inherit; }
  .h-work-note, .h-skills-note { font-size: 19px; line-height: 1.4; }
  .h-card-cap small { font-size: 22px; }
  .h-skill { min-height: 0; justify-content: flex-start; gap: 36px; padding: 30px 26px 32px; }
  .h-skill h3 { font-size: 42px; line-height: 1.02; letter-spacing: -0.04em; }
  .h-skill li { font-size: 18px; line-height: 1.25; }
  .h-blog-title { font-size: 26vw; line-height: 0.95; }
  .h-post-title { font-size: 26px; line-height: 1.12; }
  .h-post-date { font-size: 16px; }
  .h-cta-title span { font-size: 15vw; line-height: 1.02; }
  .h-footer-meta span, .h-footer-meta a { font-size: 15px; }

  .float-nav .nav-links a { font-size: 15vw; }

  /* inner pages */
  .page-title { font-size: 16vw; line-height: 0.95; }
  .page-title--post { font-size: 11.6vw; line-height: 1.02; }
  .page-hero .lead { font-size: 21px; line-height: 1.35; }
  .prose p { font-size: 21px; line-height: 1.5; }
  .prose li { font-size: 20px; }
  .prose h2 { font-size: 36px; line-height: 1.05; }
  .prose h3 { font-size: 26px; }

  /* case studies */
  .csl-title { font-size: 12.4vw; line-height: 1.04; }
  .csl-text h2 { font-size: 34px; line-height: 40px; }
  .csl-text h3 { font-size: 24px; line-height: 30px; }
  .csl-text p, .csl-meta dd { font-size: 19px; line-height: 27px; }
  .csl-meta dt { font-size: 18px; }
  .csl-stats strong { font-size: 56px; line-height: 64px; }
  .csl-stats span { font-size: 16px; line-height: 20px; }
}

.h-skills { overflow-x: clip; }

/* ---- Mobile blog lists: big image on top, text underneath ---- */
@media (max-width: 700px) {
  .h-post, .post-row { grid-template-columns: 1fr; gap: 0; align-items: start; padding: 28px 0 32px; }
  .h-post .h-arrow, .post-row .arrow { display: none; }
  .h-post-thumb, .post-thumb { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 24px; margin-bottom: 20px; }
  .h-post-date, .post-date { margin: 0 0 8px; font-size: 16px; }
  .h-post-title { padding-top: 0; font-size: 34px; line-height: 1.06; letter-spacing: -0.04em; }
  .post-title { font-size: 34px; line-height: 1.06; letter-spacing: -0.04em; }
  .post-row:hover { padding-left: 0; padding-right: 0; background: none; color: inherit; border-radius: 0; }
}

/* ---- Core skills: numbered rows with a scroll spotlight (only the row in the middle is lit) ---- */
.h-skill-list { margin-top: 64px; }
.h-row {
  position: relative;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) minmax(0, 430px);
  column-gap: 40px;
  align-items: start;
  padding: 40px 0 64px;
}
.h-row::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(11, 11, 12, 0.2);
  transform-origin: 0 50%;
}
.h-row-num { padding-top: 16px; font: 600 22px/1 "Montserrat", var(--font); letter-spacing: -0.01em; color: rgba(11, 11, 12, 0.42); transition: color 0.5s ease; }
.h-row-title {
  margin: 0; clip-path: inset(0 -60vw 0 -60vw); padding: 0 0 0.14em; margin-bottom: -0.14em;
  font: 800 clamp(3.4rem, 7.4vw, 7rem) / 1.02 "Montserrat", var(--font);
  letter-spacing: -0.065em;
  color: rgba(11, 11, 12, 0.2);
  transition: color 0.6s ease;
}
.h-row-title span { display: block; }
.h-row-body { padding-top: 40px; }
.h-row-body ul { display: flex; flex-wrap: wrap; gap: 10px; }
.h-row-body li {
  padding: 9px 18px; border: 1px solid rgba(11, 11, 12, 0.14); border-radius: 999px;
  background: rgba(11, 11, 12, 0.07);
  font: 500 16px/22px "Montserrat", var(--font); letter-spacing: -0.01em; white-space: nowrap;
  will-change: transform;
}
.h-skill-list .h-row:last-child { padding-bottom: 40px; }

/* spotlight: the active row's title and number go solid; its pills pop in one by one, the rest tuck away */
.h-row.active .h-row-title { color: #0b0b0c; }
.h-row.active .h-row-num { color: #0b0b0c; }
.js .h-row::before { transform: scaleX(0); transition: transform 1.2s var(--ease); }
.js .h-row.in::before { transform: scaleX(1); }
.js .h-row-title span { transform: translateY(112%); transition: transform 1.1s cubic-bezier(0.2, 0.85, 0.2, 1) 0.1s; }
.js .h-row.in .h-row-title span { transform: none; }
.js .h-row-body li {
  opacity: 0; scale: 0.6; translate: 0 12px;
  transition: opacity 0.3s ease, scale 0.35s ease, translate 0.35s ease;
}
.js .h-row.active .h-row-body li {
  opacity: 1; scale: 1; translate: 0 0;
  transition: opacity 0.4s ease calc(0.12s + var(--k, 0) * 0.07s), scale 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) calc(0.12s + var(--k, 0) * 0.07s), translate 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) calc(0.12s + var(--k, 0) * 0.07s);
}
@media (prefers-reduced-motion: reduce) {
  .h-row-title, .h-row-num { color: #0b0b0c; }
  .js .h-row::before { transform: none; transition: none; }
  .js .h-row-title span { transform: none; transition: none; }
  .js .h-row-body li { opacity: 1; scale: 1; translate: 0 0; transition: none; }
}
@media (max-width: 1260px) {
  .h-row { grid-template-columns: 60px minmax(0, 1fr); row-gap: 6px; padding: 34px 0 48px; }
  .h-row-body { grid-column: 2; padding-top: 14px; }
  .h-row-num { font-size: 20px; padding-top: 10px; }
}
@media (max-width: 700px) {
  .h-skill-list { margin-top: 44px; }
  .h-row { grid-template-columns: 1fr; padding: 24px 0 36px; row-gap: 4px; }
  .h-row-body { grid-column: 1; padding-top: 12px; }
  .h-row-num { font-size: 18px; padding: 0 0 4px; }
  .h-row-title { font-size: 15.2vw; letter-spacing: -0.06em; }
  .h-row-body li { font-size: 16px; padding: 8px 16px; }
}

/* resume page */
.rs{padding:clamp(130px,13vw,190px) 0 clamp(60px,8vw,110px)}
.rs-wrap{width:min(880px,100% - 40px);margin:0 auto;font-family:'Montserrat','Inter Tight',sans-serif;color:#f4f4f2}
.rs-name{font:700 clamp(2.2rem,6vw,4.2rem)/1.08 'Montserrat',sans-serif;letter-spacing:-.02em;margin:0}
.rs-role{font-size:clamp(1.05rem,2vw,1.4rem);margin:.6rem 0 0;color:#c9c9c6}
.rs-links{display:flex;flex-wrap:wrap;gap:16px;align-items:center;margin:1rem 0 0}
.rs-links a{text-decoration:underline;text-underline-offset:3px}
.rs-print{font:600 .9rem 'Montserrat',sans-serif;border:1.5px solid #f4f4f2;color:#f4f4f2;background:none;border-radius:999px;padding:8px 18px;cursor:pointer}
.rs-print:hover{background:#f4f4f2;color:#0b0b0c}
.rs-h{font:700 .8rem 'Montserrat',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#8b8b88;margin:clamp(36px,5vw,56px) 0 14px;padding-bottom:10px;border-bottom:1px solid #2e2e2e}
.rs-about{font-size:1.08rem;line-height:1.7;margin:0}
.rs-tags{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:18px 0 0}
.rs-tags li{border:1px solid #444;border-radius:999px;padding:6px 14px;font-size:.88rem}
.rs-job{display:grid;grid-template-columns:190px 1fr;gap:8px 28px;padding:18px 0;border-bottom:1px solid #232323}
.rs-when{font-size:.9rem;color:#8b8b88;padding-top:3px}
.rs-job h3{font:700 1.15rem/1.3 'Montserrat',sans-serif;margin:0}
.rs-org{margin:4px 0 0;color:#b5b5b2}
.rs-job p+p{margin:8px 0 0;line-height:1.65}
@media(max-width:700px){.rs-job{grid-template-columns:1fr}.rs-when{padding:0}}
@media print{.float-nav,.tail,.rs-print{display:none!important}.rs{padding:0}body{background:#fff!important;color:#000!important}.rs-wrap,.rs-role,.rs-org,.rs-when,.rs-h{color:#000!important}}
