:root {
  --bg: #fffef8;
  --ink: #1e1f26;
  --base-black: #272323;
  --shadow-black: #181515;
  --accent: #474faa;
  --grey-light: #757269; /* 4.9:1 on the cream background (WCAG AA) */
  --cream: #f8f5e7;
  --header-bg: rgba(30, 31, 38, 0.04);
  --color-text-heading: #33393e;
  --color-text-secondary: #5d6165;
  --color-success-base: #268052;

  /* Caudex for headings, Work Sans for everything else */
  --font-display: "Caudex", Georgia, serif;
  --font-body: "Work Sans", system-ui, sans-serif;
  --font-sans: "Work Sans", system-ui, sans-serif;

  --container: 1206px;
  --gutter: 117px;
  --radius-xl: 64px;
  --radius-pill: 300px;
  --section: 128px; /* one rhythm for the space between home sections */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

.page {
  max-width: calc(var(--container) + 2 * 16px);
  margin: 0 auto;
  padding: 18px 16px 40px;
}

/* Header */
/* Compact centred bar (proportions after Dia's nav): photo, three links, CV */
.header {
  display: flex;
  align-items: center;
  gap: 44px;
  width: fit-content;
  max-width: 100%;
  height: 56px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(246, 245, 239, 0.82);
  box-shadow: 0 0 0 1px rgba(30, 31, 38, .06), 0 8px 24px -16px rgba(30, 31, 38, .3);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  position: sticky;
  top: 12px;
  z-index: 50;
  transition: box-shadow .4s cubic-bezier(.16, 1, .3, 1), background-color .4s cubic-bezier(.16, 1, .3, 1);
}
.header.is-scrolled {
  background: rgba(246, 245, 239, 0.8);
  box-shadow: 0 0 0 1px rgba(30, 31, 38, .05), 0 10px 30px -14px rgba(30, 31, 38, .25);
}
.header__avatar { position: relative; flex: none; display: block; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; }
/* Soft inner shadow along the bottom edge of the photo */
.header__avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -8px 12px -4px rgba(20, 14, 10, .55); pointer-events: none; }
.header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.header__nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}
.header__nav a:hover, .footer a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.project--feature :focus-visible { outline-color: var(--bg); }
/* CV download: same outlined pill as "Find more on Dribbble", sized for the header */
.btn.header__cv { flex: none; height: 40px; gap: 6px; padding: 0 6px 0 14px; font-size: 12px; }
.btn.header__cv .btn__icon { width: 28px; height: 28px; }
.btn.header__cv:hover .btn__icon svg { transform: translateY(1px); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--base-black);
  color: var(--bg);
  font-size: 14px;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn img { width: 14px; height: 11px; transition: transform .2s ease; }
.btn:has(.btn__icon) { padding-right: 6px; }
.btn__icon { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 2px; border-radius: 50%; background: #151313; }
.btn__icon svg { transition: transform .25s ease; }
.btn:hover .btn__icon svg { transform: translate(1px, -1px); }
.btn:hover { background: #000; }
.btn:hover .btn__icon { background: #262222; }
.btn:hover img { transform: translateX(3px); }
.btn--ghost { background: transparent; color: var(--base-black); border: 1px solid rgba(39, 35, 35, .18); }
.btn--ghost:hover { background: var(--base-black); color: var(--bg); }
.btn--ghost .btn__icon { background: rgba(39, 35, 35, .08); }
.btn--ghost:hover .btn__icon { background: #151313; }

/* Typography */
.display {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 44px;
  max-width: 866px;
}
.display em { font-style: italic; color: var(--accent); }
.lead {
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 0.4px;
  max-width: 560px;
}
.lead--narrow { max-width: 420px; }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 68px 0 var(--section);
  text-align: center;
}
.hero__text { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero__role { text-wrap: balance; }
.br-m { display: none; }
@media (max-width: 720px) { .br-m { display: inline; } .br-d { display: none; } }
.hero .lead { max-width: 600px; margin-top: -6px; text-wrap: balance; } /* ~12% tighter to the headline */
/* Hero orb: a soft, grainy gradient sphere whose colours drift very slowly */
.hero__orb { position: relative; isolation: isolate; clip-path: circle(50% at 50% 50%); -webkit-mask-image: -webkit-radial-gradient(white, black); width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: #4a3b33; }
/* Shadow and entrance live on the wrapper so the orb itself is never transformed (Safari loses the round clip otherwise) */
/* Sits ~15% lower under the nav; the headline below keeps its place */
.hero__orb-wrap { margin: 23px 0 -2px; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(60, 30, 15, .45); }
/* Three soft colour layers swirl at different speeds, like liquid moving inside the orb */
.hero__orb span { position: absolute; inset: -25%; filter: blur(6px) saturate(1.1); }
.hero__orb span:nth-child(1) {
  background: url("assets/claim/karizma-bg.jpg") center / cover, #4a3b33;
  filter: blur(5px) saturate(1.15) brightness(1.05);
  animation: orb-spin 26s linear infinite;
}
.hero__orb span:nth-child(2) {
  background:
    radial-gradient(circle at 70% 70%, rgba(214, 120, 52, .85) 0, rgba(214, 120, 52, 0) 42%),
    radial-gradient(circle at 28% 28%, rgba(176, 64, 40, .7) 0, rgba(176, 64, 40, 0) 38%),
    radial-gradient(circle at 80% 22%, rgba(110, 120, 70, .6) 0, rgba(110, 120, 70, 0) 34%);
  mix-blend-mode: soft-light;
  animation: orb-spin 13s linear infinite reverse, orb-breathe 7s ease-in-out infinite alternate;
}
.hero__orb span:nth-child(3) {
  background: radial-gradient(circle at 55% 45%, rgba(255, 214, 150, .5) 0, rgba(255, 214, 150, 0) 30%);
  animation: orb-wander 9s ease-in-out infinite alternate;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-breathe { from { scale: .92; } to { scale: 1.08; } }
@keyframes orb-wander { 0% { transform: translate(-14%, -8%); } 50% { transform: translate(10%, 6%); } 100% { transform: translate(-4%, 14%); } }
/* On hover the orb stays put; only the colours inside shift, like liquid being stirred */
@media (hover: hover) {
  .hero__orb span:nth-child(1), .hero__orb span:nth-child(3) { transition: translate 1.6s cubic-bezier(.22, .61, .36, 1), scale 1.6s cubic-bezier(.22, .61, .36, 1); }
  .hero__orb-wrap:hover .hero__orb span:nth-child(1) { translate: 10% -6%; scale: 1.15; }
  .hero__orb-wrap:hover .hero__orb span:nth-child(3) { translate: -18% 12%; scale: 1.3; }
}
.hero__orb::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 50%; box-shadow: inset 0 -10px 20px rgba(255, 255, 255, .25); }
.hero__orb::after { content: ""; position: absolute; inset: 0; z-index: 2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); background-size: 160px; mix-blend-mode: overlay; opacity: .22; }
@media (prefers-reduced-motion: reduce) { .hero__orb span { animation: none !important; } }
.hero__companies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 26px;
  color: var(--grey-light);
}
/* Industries: rise in one by one, then a soft highlight passes from tag to tag */
@media (prefers-reduced-motion: no-preference) {
  /* Hero settles in as a sequence: orb, then the words, then the call to action and tags */
  .hero__orb-wrap { animation: orb-in 1.4s cubic-bezier(.22, .61, .36, 1) .1s backwards; }
  .hero__role, .hero .display, .hero .lead, .hero > .btn { animation: hero-in 1.1s cubic-bezier(.22, .61, .36, 1) backwards; }
  .hero__role { animation-delay: .35s; }
  .hero .display { animation-delay: .5s; }
  .hero .lead { animation-delay: .7s; }
  .hero > .btn { animation-delay: .85s; }
  .hero__companies li { opacity: 0; animation: tag-in .9s cubic-bezier(.22, .61, .36, 1) forwards, tag-glow 12.5s ease-in-out 2.6s infinite; }
  .hero__companies li:nth-child(1) { animation-delay: 1.05s, 2.6s; }
  .hero__companies li:nth-child(2) { animation-delay: 1.15s, 5.1s; }
  .hero__companies li:nth-child(3) { animation-delay: 1.25s, 7.6s; }
  .hero__companies li:nth-child(4) { animation-delay: 1.35s, 10.1s; }
  .hero__companies li:nth-child(5) { animation-delay: 1.45s, 12.6s; }
}
@keyframes orb-in { from { opacity: 0; transform: scale(.82); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes tag-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tag-glow { 0%, 22%, 100% { color: var(--grey-light); } 9% { color: var(--ink); } }
.hero__role { margin: 0 0 -12px; font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #77746c; }

/* Projects */
.projects { display: flex; flex-direction: column; gap: 80px; }
.project { border-radius: var(--radius-xl); min-height: 550px; }
.project[hidden] { display: none; }

.project__copy { display: flex; flex-direction: column; gap: 15px; }
.project__copy--dark { gap: 15px; color: var(--base-black); max-width: 320px; }
.project__copy--tight { gap: 8px; max-width: 335px; }
.project__title { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 35px; }
.project__title--serif { font-family: var(--font-display); max-width: 278px; }
.project__desc { font-size: 16px; line-height: 27px; max-width: 246px; }
.project__desc--sans { font-family: var(--font-sans); }

/* Project 1 — dark */
.project--dark { position: relative; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.project__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.project__link { transition: color .4s ease; }
.project--dark:hover .project__link { color: #b8bdf2; }
/* Velory card is dark: light copy, softer label */
.project--dark .project__copy--dark { color: var(--bg); }
.project--dark .project__eyebrow { color: rgba(255, 254, 248, .55); }
.project--guides { position: relative; }
.project--split { position: relative; }
.project--split:hover .project__link { color: #b8bdf2; }
.project--guides:hover .project__link { color: var(--accent); }
.project--guides .guides { position: relative; z-index: 2; pointer-events: none; }
.project--dark .product-cards { position: relative; z-index: 2; }
.project--dark .product-cards { pointer-events: none; }
@media (max-width: 1100px) { .project--dark .product-cards { pointer-events: auto; } }

.project--dark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 63px 40px 80px;
  background: var(--base-black);
  color: var(--bg);
}
.project__info { display: flex; flex-direction: column; gap: 36px; width: 303px; flex: none; }
.project__logo { width: 80px; height: 27px; }

.product-cards { display: flex; gap: 24px; padding-right: 20px; zoom: .765; }
.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 223px;
  height: 283px;
  flex: none;
  padding: 24px 16px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 24px 44px -22px rgba(0, 0, 0, .6);
  text-align: center;
  transition: transform .5s ease, box-shadow .5s ease;
}

/* A small lift on hover */
.project--dark:hover .product-card { transform: translateY(-4px); }

/* Velory cards: the page's one signature moment, rising one by one into view */
@media (prefers-reduced-motion: no-preference) {
  .product-card.rise {
    opacity: 0;
    translate: 0 32px;
    transition: opacity .9s cubic-bezier(.22, .61, .36, 1), translate 1s cubic-bezier(.22, .61, .36, 1), transform .5s ease, box-shadow .5s ease;
    transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
  }
  .product-card.rise.is-in { opacity: 1; translate: none; }
}
.product-card__image { width: 171px; height: 115px; margin-bottom: 8px; display: grid; place-items: center; }
.product-card__image img { object-fit: contain; }
.product-card__title {
  font-family: "Quicksand", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  color: var(--color-text-heading);
  margin-bottom: 4px;
}
.product-card__text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}
.product-card__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-success-base);
}
.product-card__badge img { width: 12px; height: 12px; }

/* Project 2 — split */
.project--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding-right: 90px;
  background: #696b7f;
}
/* Slate card: light copy, like the dark Velory card */
.project--split .project__copy--dark { color: var(--bg); }
.project--split .project__eyebrow { color: rgba(255, 254, 248, .6); }
.project--split .browser { border-color: rgba(255, 255, 255, .25); }
.project__media {
  flex: 0 1 731px;
  align-self: stretch;
  min-height: 548px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 101px 24px; /* equal space above and below centres the preview in the card */
  border-radius: var(--radius-xl);
}
/* Page preview rises from the bottom edge and fades into the card */
.browser {
  width: 100%;
  max-width: 389px;
  display: flex;
  flex-direction: column;
  padding: 22px 31px 0;
  border: 1px solid rgba(211, 206, 203, 0.63);
  border-bottom: 0;
  border-radius: 17px 17px 0 0;
  background: #fff;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
}
.browser img {
  display: block;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  height: 0;
  object-fit: cover;
  object-position: top;
  border-radius: 16px 16px 0 0;
  transition: object-position 4s ease;
}
.project--split:hover .browser img { object-position: 0 40%; }

/* Hand-drawn outline (sketch.js draws the path) */
.sketch {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.sketch path {
  fill: none;
  stroke: #1e1f26;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reveal .sketch path {
  stroke-dasharray: var(--sketch-len, 4000);
  stroke-dashoffset: var(--sketch-len, 4000);
  transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .25, 1) .3s;
}
.reveal.is-visible .sketch path { stroke-dashoffset: 0; }

/* Project 5 — claim your business: a live search card on a soft beige-grey */
.project--claim {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 100px 48px 160px;
  background: #4a3b33;
  color: var(--bg);
  isolation: isolate;
  overflow: hidden;
}
/* Same treatment as the AI app card: blurred venue photo, soft shade, film grain */
.project--claim::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 6, 4, .6), rgba(10, 6, 4, 0) 45%), linear-gradient(90deg, rgba(20, 14, 10, .3), rgba(20, 14, 10, 0) 55%);
  box-shadow: inset 0 -150px 150px -70px rgba(10, 6, 4, .8); /* deep inner shadow along the bottom */
}
.project--claim .project-feature__bg { z-index: 0; filter: blur(24px) saturate(1.05) brightness(.95); }
.project--claim::before, .project--claim::after { z-index: 1 !important; }
.project--claim .project__copy { position: relative; z-index: 2; color: var(--bg); }
.project--claim .project__copy > .project__eyebrow { color: rgba(255, 254, 248, .8); }
.project--claim .project__desc { color: rgba(255, 254, 248, .85); }
.project--claim .project__logo--air { filter: brightness(0) invert(1); opacity: .9; }
.project--claim:hover .project__link { color: #b8bdf2; }
.project--claim:hover .project-feature__bg { scale: 1.06; }
.claim-demo { position: relative; z-index: 3; width: 440px; flex: none; margin-top: -84px; zoom: .81; font-family: "Host Grotesk", var(--font-sans); color: #141416; pointer-events: none; }
.claim-demo__field { padding: 20px 20px 22px; border-radius: 22px; background: #fff; box-shadow: 0 24px 48px -24px rgba(60, 40, 30, .28); }
.claim-demo__label { display: block; margin-bottom: 12px; font-weight: 600; font-size: 17px; line-height: 24px; }
.claim-demo__input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(20, 20, 22, .55); font-size: 15px; color: #6c6c72; }
.claim-demo__q { color: #141416; }
.claim-demo__input i { width: 1.5px; height: 20px; margin-left: -9px; background: #141416; animation: claim-caret 1s steps(1) infinite; }
@keyframes claim-caret { 50% { opacity: 0; } }
.claim-demo__list { position: absolute; top: calc(100% + 12px); left: 0; right: 0; margin: 0; padding: 8px; list-style: none; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -24px rgba(60, 40, 30, .28); opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .45s cubic-bezier(.22, .61, .36, 1); }
.claim-demo__list.has-rows { opacity: 1; transform: none; }
.claim-demo__list:not(.has-rows) { padding-block: 0; transition: opacity .2s ease, transform .45s cubic-bezier(.22, .61, .36, 1), padding .3s ease; }
/* Each row folds open and closed through its grid track, so the list height eases on its own */
.claim-demo__list li { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows .42s cubic-bezier(.22, .61, .36, 1), opacity .3s ease; }
.claim-demo__list li.is-leaving { grid-template-rows: 0fr; opacity: 0; }
.claim-demo__row { display: flex; align-items: center; gap: 14px; min-height: 0; overflow: hidden; padding: 0 8px; border-radius: 12px; transition: background .4s ease; }
.claim-demo__row > * { margin: 8px 0; }
.claim-demo__list li.is-hit .claim-demo__row { background: #f4f0f4; }
.claim-demo__list img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; }
.claim-demo__list b { display: block; font-weight: 600; font-size: 15px; line-height: 21px; }
.claim-demo__list small { display: block; font-size: 13px; line-height: 18px; color: #6c6c72; }
.claim-demo__list em { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: #8f2f72; color: #fff; font-style: normal; font-size: 13px; line-height: 18px; opacity: 0; transform: scale(.9); transition: opacity .35s ease, transform .35s ease; }
.claim-demo__list li.is-hit em { opacity: 1; transform: none; }
.claim-demo__input.is-typing i { animation: none; }

/* Project 4 — AI app feature: blurred photo, tilted phone, copy over the image */
.project--feature {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 80px 0 160px;
  background: #3a2f2a;
  color: var(--bg);
}
.project-feature__bg {
  position: absolute;
  inset: -10%;
  z-index: -2;
  width: 120%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: blur(28px) saturate(.9) brightness(.78);
  transition: scale 1.6s cubic-bezier(.22, .61, .36, 1);
}
/* Film grain over the blurred photo */
.project--feature::after,
.project--claim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: overlay;
  opacity: .32;
}
.project--feature:hover .project-feature__bg { scale: 1.06; }
.project--feature:hover .project-feature__phone img { scale: 1.03; }
.project--feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(20, 14, 10, .4), rgba(20, 14, 10, .05) 60%), linear-gradient(0deg, rgba(20, 14, 10, .3), transparent 55%);
}
.project-feature__badge {
  position: absolute;
  top: 36px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  color: rgba(255, 254, 248, .85);
}
.project-feature__badge span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  letter-spacing: .04em;
}
.project-feature__phone {
  position: absolute;
  top: 96px;
  right: 17%;
  width: 240px;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate .8s cubic-bezier(.16, 1, .3, 1), transform 1s cubic-bezier(.22, .61, .36, 1);
}
.project-feature__phone img {
  display: block;
  width: 100%;
  height: auto;
  border: 9px solid #8f8c86;
  border-radius: 42px;
  box-shadow: 0 0 0 1.5px #c9c6bf, inset 0 0 0 1px rgba(0, 0, 0, .25), 0 40px 60px -10px rgba(0, 0, 0, .45);
  rotate: 9deg;
  transition: scale 1.2s cubic-bezier(.22, .61, .36, 1);
}
.project--feature .project__copy { gap: 15px; max-width: 400px; color: var(--bg); }
.project--feature .project__copy > .project__eyebrow { margin-bottom: 5px; color: rgba(255, 254, 248, .8); }
.project--feature .project__desc { max-width: 340px; color: rgba(255, 254, 248, .85); }
.project--feature:hover .project__link { color: #b8bdf2; }
.project__eyebrow {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--grey-light);
}
.project__copy > .project__eyebrow { margin-bottom: 5px; }
.project__copy--dark > .project__eyebrow { margin-bottom: 5px; }
.project__copy--tight > .project__eyebrow { margin-bottom: 0; }
.project__eyebrow--light { color: rgba(255, 254, 248, .55); }

/* Phone: float + pointer tilt (tilt.js sets --rx/--ry) + glass sheen */
.phone {
  flex: none;
  width: 440px;
  height: 550px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}
.phone__float { animation: phone-float 7s ease-in-out infinite; }
.phone__body {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(-18.1deg);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  filter: drop-shadow(0 40px 40px rgba(120, 60, 40, .18));
}
.phone__body img { width: 279px; height: 564px; object-fit: cover; }
.phone__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .45) 48%, rgba(255, 255, 255, 0) 58%) no-repeat;
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-mask: url("assets/iphone.png") center / 100% 100% no-repeat;
  mask: url("assets/iphone.png") center / 100% 100% no-repeat;
  animation: phone-sheen 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
@keyframes phone-sheen {
  0%, 55% { background-position: 120% 0; }
  85%, 100% { background-position: -20% 0; }
}

.more { display: flex; justify-content: center; padding: 64px 0 var(--section); }

/* Project 2 — state & city guides */
.project--guides {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 0 160px 0 160px;
  background: #f5f3e9;
  overflow: hidden;
}
.guides {
  position: relative;
  flex: 0 1 731px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 40px 0 24px;
  min-width: 0;
}
.guides__fan { position: relative; height: 300px; }
@media (min-width: 1101px) { .guides__fan { zoom: .85; } }
.guide-card {
  --x: 0px; --r: 0deg;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 204px;
  aspect-ratio: 1;
  margin: -102px 0 0 -102px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
  padding: 20px 19px;
  border-radius: 11px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 24px 48px -20px rgba(60, 20, 70, .45);
  transform-origin: 50% 260%;
  transform: rotate(var(--r)) translateY(var(--y, 0px));
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
}
.guide-card > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s cubic-bezier(.16, 1, .3, 1); }
.guide-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .15)); }
.guide-card { isolation: isolate; }
.guide-card__label { font-family: "Public Sans", sans-serif; font-weight: 600; font-size: 9.5px; line-height: 15px; letter-spacing: 1px; text-transform: uppercase; }
.guide-card__title { font-family: "Host Grotesk", sans-serif; font-weight: 600; font-size: 26px; line-height: 31px; }
.guide-card__heart {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e2e2e2;
}
.guide-card__heart img { width: 12px; height: 12px; }
/* Hand-of-cards fan: each card pivots around a point far below it,
   right-most card in front. Opens on scroll-in. */
.guide-card:nth-child(1) { z-index: 1; }
.guide-card:nth-child(2) { z-index: 2; }
.guide-card:nth-child(3) { z-index: 3; }
.project--guides.is-visible .guide-card:nth-child(1) { --r: -16deg; }
.project--guides.is-visible .guide-card:nth-child(3) { --r: 16deg; }
.guide-card:nth-child(1), .guide-card:nth-child(3) { transition-delay: .1s; }
/* Fourth card tucked behind Oregon */
.guide-card--back { z-index: 0; transition-delay: .2s; }
.project--guides.is-visible .guide-card--back { --r: -30deg; }
.project--guides:hover .guide-card { --y: -6px; }

.project--guides .project__copy--dark { max-width: 320px; flex: none; }
.project__logo--air { width: auto; height: 30px; margin-bottom: 35px; align-self: flex-start; }

/* Process */
.process { padding-bottom: var(--section); }
.process__head {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  gap: 48px;
  margin-bottom: 88px;
}
.process__title {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 44px;
  color: var(--ink);
}
.process__title em { font-style: italic; }
.process__intro {
  max-width: 420px;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0.4px;
  color: var(--base-black);
}
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; list-style: none; margin: 0; padding: 0; }
.step {
  display: flex;
  flex-direction: column;
}
.art { display: block; width: 61px; margin-inline: auto !important; height: auto; margin: 0; overflow: visible; fill: none; stroke: #5c574c; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.art .dot { fill: var(--base-black); stroke: none; }
.art .halo { fill: none; stroke: var(--base-black); stroke-width: .8; }
.step__num { margin-top: 20px; font-size: 14px; line-height: 24px; color: var(--grey-light); }
.step { text-align: center; }
.step h3 { margin: 36px 0 14px; font-family: var(--font-display); font-size: 24px; line-height: 32px; color: var(--ink); }
.step p { font-family: var(--font-sans); font-size: 15px; line-height: 24px; color: var(--base-black); opacity: .75; }
.step p.step__tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; margin-top: 14px; font-family: var(--font-display); font-size: 17px; line-height: 24px; color: var(--grey-light); opacity: 1; }
.step__tools span:not(:last-child)::after { content: "·"; margin-left: 8px; }

/* Contact */
.contact { display: flex; flex-direction: column; gap: var(--section); }
.divider { width: 100%; height: 1px; opacity: .6; }
.divider--footer { margin-top: var(--section); }
.about { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto; text-align: center; }
.about__photo { position: relative; display: block; width: 85px; height: 85px; margin-bottom: 23px; border-radius: 50%; overflow: hidden; }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; scale: 1.2; transform-origin: 50% 30%; }
.about__photo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 -12px 18px -6px rgba(20, 14, 10, .55); pointer-events: none; }
.about__kicker { margin: 0; font-size: 12px; line-height: 20px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--grey-light); }
.about__text { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 30px; color: var(--ink); }
.about .display { margin: 4px 0 4px; }
.about__cta { margin-top: 28px; }
.contact__body { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.contact__text { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }

/* Footer: one soft pill, local time on the left, links and copyright on the right */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  /* Full-bleed bar that sits flush on the bottom of the page; content lines up with the page edges */
  margin: 96px calc(50% - 50vw) 0;
  padding: 30px max(16px, calc(50vw - var(--container) / 2));
  background: #fbfaf5;
  box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .07);
  font-size: 14px;
  line-height: 22px;
  color: var(--grey-light);
}
.page:has(> .footer) { padding-bottom: 0; }
.footer__time { margin: 0; white-space: nowrap; }
.footer__time time { color: var(--base-black); font-variant-numeric: tabular-nums; }
.footer__links { display: flex; align-items: center; gap: 36px; white-space: nowrap; }
.footer__links a { color: var(--grey-light); transition: color .25s ease; }
.footer__links a:hover { color: var(--accent); }
.muted { color: var(--grey-light); }

/* Scroll reveal: float in from below, 1.2s, no delay (classes added by reveal.js) */
.reveal {
  opacity: 0;
  translate: 0 48px;
  transition: opacity 1.2s cubic-bezier(.22, .61, .36, 1), translate 1.2s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-visible { opacity: 1; translate: none; }
.project--dark.reveal { transition: opacity 1.2s cubic-bezier(.22, .61, .36, 1), translate 1.2s cubic-bezier(.22, .61, .36, 1), transform .6s cubic-bezier(.16, 1, .3, 1); }
/* About: same entrance as the hero, photo first, then the words */
@media (prefers-reduced-motion: no-preference) {
  .contact.reveal { opacity: 1; translate: none; }
  .contact.reveal:not(.is-visible) :is(.divider, .about > *) { opacity: 0; }
  .contact.is-visible .divider { animation: hero-in 1.1s cubic-bezier(.22, .61, .36, 1) backwards; }
  .contact.is-visible .about__photo { animation: orb-in 1.4s cubic-bezier(.22, .61, .36, 1) .1s backwards; }
  .contact.is-visible :is(.about__kicker, .about__text, .about__cta) { animation: hero-in 1.1s cubic-bezier(.22, .61, .36, 1) backwards; }
  .contact.is-visible .about__kicker { animation-delay: .35s; }
  .contact.is-visible .about__text { animation-delay: .5s; }
  .contact.is-visible .about__cta { animation-delay: .7s; }
}

/* ---------- Tablet ---------- */
/* Desktop: every project card's content starts and ends exactly --card-inset from its edges */
@media (min-width: 1101px) {
  :root { --card-inset: 112px; }
  .project--dark, .project--claim, .project--split, .project--guides { padding-left: var(--card-inset); padding-right: var(--card-inset); }
  .product-cards { padding-right: 0; }
  .project--guides { justify-content: space-between; }
  .project__media { padding-left: 0; padding-right: 0; justify-content: flex-start; }
  /* The fan is lopsided (back card tilts -30deg, front +16deg), so place its pivot where the
     back card's outer corner meets the column's left edge: 102px·cos30° + 530.4px·sin30° = 353.535px */
  .guides__fan { left: calc(353.535px - 50%); }
}
@media (max-width: 1100px) {
  .display { font-size: 32px; line-height: 44px; }
  :root { --section: 96px; }
  .hero { padding: 56px 0 var(--section); }

  .project--dark {
    flex-direction: column;
    align-items: flex-start;
    padding: 64px 48px 72px;
    gap: 48px;
  }
  .project__info { width: auto; }
  .project__title--serif { max-width: 360px; }
  .product-cards {
    width: calc(100% + 96px);
    /* room above and below so the card shadows aren't clipped by the scroller */
    margin: -12px -48px -48px -48px;
    padding: 12px 48px 64px 48px;
    scroll-padding-left: 48px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .product-cards::-webkit-scrollbar { display: none; }
  .project--feature { padding: 0 48px; }
  .project--claim { flex-direction: column-reverse; align-items: flex-start; padding: 48px 48px 190px; }
  .claim-demo { width: 100%; max-width: 440px; margin-top: 0; }
  .project-feature__phone { top: 80px; right: 7%; width: 205px; }
  .product-card { scroll-snap-align: start; }

  .project--split { flex-direction: column; align-items: flex-start; gap: 32px; }
  .project__media { flex: none; width: 100%; min-height: 0; padding: 64px 48px 0; }
  .browser img { flex: none; height: auto; aspect-ratio: 483 / 380; }
  .project--split { padding: 0 0 56px; gap: 8px; }
  .project--split .project__copy--dark { max-width: 480px; padding: 0 48px; }

  .project--guides { flex-direction: column-reverse; align-items: flex-start; gap: 8px; padding: 48px 0 0; }
  .project--guides .project__copy--dark { max-width: 480px; padding: 0 48px; }
  .guides { flex: none; width: 100%; padding-top: 32px; }
  .phone { width: 340px; }
  .phone__body img { width: 230px; height: 465px; }

  .more { padding: 56px 0 var(--section); }

  .process__head { flex-direction: column; align-items: center; gap: 16px; margin-bottom: 64px; }
  .process__title { font-size: 32px; line-height: 44px; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }

  .footer { margin-top: 72px; }
  .footer__links { gap: 24px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .project--guides { padding-top: 40px; }
  .project--guides .project__copy--dark { padding: 0 24px; }
  .guides { padding: 16px 0 20px; gap: 36px; }
  .guides__fan { height: 290px; left: 28px; } /* nudged right to balance the fourth card */
  .guide-card { width: 138px; margin: -69px 0 0 -69px; padding: 14px 12px; border-radius: 10px; }
  .guide-card__title { font-size: 20px; line-height: 24px; }
  .guide-card__label { font-size: 9px; line-height: 14px; }
  .guide-card__heart { width: 24px; height: 24px; top: 8px; right: 8px; }
  .guide-card__heart img { width: 11px; height: 11px; }
  .project--guides.is-visible .guide-card:nth-child(1) { --r: -10deg; }
  .project--guides.is-visible .guide-card:nth-child(3) { --r: 10deg; }
  .project--guides.is-visible .guide-card--back { --r: -20deg; }
  .page { padding-top: 12px; }
  .header { width: auto; gap: 12px; padding: 0 6px 0 10px; height: 56px; }
  .header__avatar { width: 38px; height: 38px; }
  .header__nav { flex: 1; justify-content: center; gap: 20px; font-size: 14px; }
  .btn.header__cv { height: 36px; padding: 0 5px 0 12px; }
  .btn.header__cv .btn__icon { width: 26px; height: 26px; }
}
/* Small phones: the nav, CV button and photo have to share ~350px */
@media (max-width: 420px) {
  .header { gap: 8px; }
  .header__nav { min-width: 0; gap: 12px; font-size: 12px; letter-spacing: 0; }
  .btn.header__cv { padding-left: 10px; gap: 4px; font-size: 12px; }
  .hero .display { font-size: 30px; line-height: 40px; }
}
@media (max-width: 720px) {
  .display { font-size: 32px; line-height: 44px; }
  :root { --section: 72px; }
  .hero { padding: 40px 0 var(--section); gap: 32px; }
  .hero__orb { width: 47px; height: 47px; }
  .hero__orb-wrap { margin: 13px 0 6px; }
  .hero__companies { gap: 8px 24px; margin-top: 24px; font-size: 18px; }
  .hero__text { gap: 20px; }

  .projects { gap: 40px; }
  .project { border-radius: 40px; min-height: 0; }
  .project__title { font-size: 26px; line-height: 32px; }

  .project--dark { padding: 40px 24px 48px; gap: 32px; }
  .product-cards { width: calc(100% + 64px); margin: -12px -32px -48px -32px; padding: 12px 32px 64px 32px; scroll-padding-left: 32px; gap: 20px; }

  .project__media { border-radius: 40px; padding: 32px 16px 0; }
  .project--feature { flex-direction: column; align-items: stretch; padding: 24px 24px 36px; }
  .project-feature__badge { position: static; }
  .project--claim { padding: 36px 24px 170px; gap: 32px; }
  .project-feature__phone { position: static; width: 160px; margin: 32px auto 36px; }
  .project-feature__phone img { border-width: 7px; border-radius: 30px; rotate: 6deg; }
  .project--split { padding-bottom: 40px; }
  .project--split .project__copy--dark { padding: 0 24px; }
  .browser { padding: 12px 16px 0; border-radius: 16px 16px 0 0; }
  .browser img { border-radius: 10px 10px 0 0; }

  .phone { width: 100%; height: 420px; }
  .phone__body { transform: rotate(-12deg) translateY(40px); }
  .phone__body img { width: 200px; height: 404px; }

  .more { padding: 48px 0 var(--section); }

  .process__title { font-size: 32px; line-height: 44px; }
  .process__intro { font-size: 16px; line-height: 27px; }
  .process__grid { grid-template-columns: 1fr; gap: 48px; }
  .art { width: 86px; }

  .contact__body { gap: 32px; }
  .about__text { font-size: 16px; line-height: 27px; }

  .footer { flex-direction: column; gap: 14px; margin-top: 56px; padding-block: 24px 28px; }
  .footer__links { flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
  .footer__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Confirmation after a mailto click (mail.js): copied address + web compose links */
.mail-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 10px 8px 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(39, 35, 35, .16);
  background: var(--bg);
  color: var(--base-black);
  font-size: 14px;
  line-height: 20px;
  white-space: nowrap;
  box-shadow: 0 12px 32px -14px rgba(39, 35, 35, .25);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.mail-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.mail-toast__msg { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mail-toast__msg svg { flex: none; }
.mail-toast__msg span { overflow: hidden; text-overflow: ellipsis; }
.mail-toast a { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: var(--radius-pill); background: transparent; color: var(--base-black); box-shadow: inset 0 0 0 1px rgba(39, 35, 35, .16); transition: background-color .25s ease; }
.mail-toast a + a { margin-left: -8px; } /* 8px between the two mail buttons */
.mail-toast a:hover { background: rgba(39, 35, 35, .06); color: var(--base-black); }
.mail-toast__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin-left: -6px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--base-black); opacity: .5; cursor: pointer; transition: opacity .2s ease, background-color .2s ease; }
.mail-toast__close:hover { opacity: 1; background: rgba(39, 35, 35, .06); }
@media (max-width: 420px) { .mail-toast { gap: 8px; padding-left: 14px; font-size: 13px; } .mail-toast a { padding: 6px 10px; } }

/* Small desktop / tablet: every stacked card reads copy first, then its visual, both from the same 48px edge */
@media (min-width: 721px) and (max-width: 1100px) {
  .project--split { flex-direction: column-reverse; align-items: stretch; padding: 48px 0 0; gap: 8px; }
  .project--split .project__media { padding: 32px 48px 0; justify-content: flex-start; }
  /* Fan: back card's outer corner on the 48px edge (pivot maths as on desktop, unzoomed here) and room below so nothing is clipped */
  .guides { padding-bottom: 96px; }
  .guides__fan { left: calc(353.535px + 48px - 50%); }
}

/* Hero fills the first screen minus a strip, so the top of the first project card peeks in on load
   (header ends ~74px down; ~75px of the card shows on desktop, ~54px on phones) */
@media (min-width: 721px) {
  .hero { min-height: min(calc(100svh - 149px), 773px); justify-content: center; padding: clamp(16px, 5svh, 48px) 0; }
}
@media (max-width: 720px) {
  .hero { min-height: calc(100svh - 130px); justify-content: center; padding: 32px 0; }
}
