/* ===========================================================
   Portfolio — full-bleed single page with scroll-snap + morphing nav
   =========================================================== */

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-subtle);
  color: #000B34;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
  height: 100%;
}

a { color: inherit; text-decoration: none; cursor: pointer; }
.case-lede a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Scroll container ---------- */
.page {
  height: 100vh;
  height: 100svh;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.page::-webkit-scrollbar { width: 0; height: 0; }
.page { scrollbar-width: none; }

.snap-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.section-work,
.section-meai,
.section-about { scroll-snap-stop: normal; }   /* allow free-scroll inside */
.section-contact {
  height: 100vh;
  height: 100svh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ===========================================================
   Nav — morphs from transparent top to floating pill on scroll
   =========================================================== */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 1800px);
  z-index: 100;
  pointer-events: none;          /* let through to disabled gaps */
  display: flex;
  justify-content: center;
  transition:
    top 320ms cubic-bezier(0.2, 0, 0, 1),
    padding 320ms cubic-bezier(0.2, 0, 0, 1);
}

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
  border: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background 320ms cubic-bezier(0.2, 0, 0, 1),
    border-color 320ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 320ms cubic-bezier(0.2, 0, 0, 1),
    backdrop-filter 320ms cubic-bezier(0.2, 0, 0, 1),
    padding 320ms cubic-bezier(0.2, 0, 0, 1),
    gap 320ms cubic-bezier(0.2, 0, 0, 1),
    border-radius 320ms cubic-bezier(0.2, 0, 0, 1);
}

/* At rest: full-width, transparent, links right, logo left */
.is-top .nav-wrap { top: 0; }
.is-top.nav-wrap {
  padding: 24px 40px;
}
.is-top .nav {
  width: 100%;
  justify-content: space-between;
  padding: 0;
  border-radius: 0;
}
.is-top .brand-name {
  opacity: 0;
  transform: translateX(-8px);
  width: 0;
  margin-left: 0;
  pointer-events: none;
}

/* Scrolled: floating pill */
.is-scrolled.nav-wrap {
  padding: 16px 40px;
}
.is-scrolled .nav {
  padding: 16px 24px;
  border-radius: 999px;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(0, 11, 52, 0.08);
  box-shadow: 0 1px 0 rgba(0, 11, 52, 0.04), 0 8px 28px rgba(0, 11, 52, 0.08);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}
.is-scrolled .brand { gap: 12px; }
.is-scrolled .brand-mark { width: 20px; height: 20px; }
.is-scrolled .brand-name {
  opacity: 1;
  transform: translateX(0);
  width: auto;
  margin-left: 0;
  transition: opacity 280ms 80ms cubic-bezier(0.2, 0, 0, 1),
              transform 280ms 80ms cubic-bezier(0.2, 0, 0, 1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  user-select: none;
  transition: gap 280ms cubic-bezier(0.2, 0, 0, 1);
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: none;
  transition: width 280ms cubic-bezier(0.2, 0, 0, 1),
              height 280ms cubic-bezier(0.2, 0, 0, 1);
}
.brand-name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: #000B34;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 200ms cubic-bezier(0.2, 0, 0, 1),
              transform 200ms cubic-bezier(0.2, 0, 0, 1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #979797;
}
.nav-links a {
  cursor: pointer;
  color: #979797;
  transition: color 160ms cubic-bezier(0.2, 0, 0, 1);
  position: relative;
}
.nav-links a:hover { color: #000B34; }
.nav-links a.active {
  color: #000B34;
  font-weight: 500;
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  position: relative;
  z-index: 0;
}
.nav-hamburger span {
  display: block;
  height: 1.5px;
  background: #000B34;
  border-radius: 2px;
  transition: width 280ms cubic-bezier(0.2, 0, 0, 1),
              transform 280ms cubic-bezier(0.2, 0, 0, 1);
}
.hb-top { width: 22px; }
.hb-bot { width: 14px; }

.nav-hamburger.is-open .hb-top {
  width: 18px;
  transform: translateY(3.75px) rotate(45deg);
}
.nav-hamburger.is-open .hb-bot {
  width: 18px;
  transform: translateY(-3.75px) rotate(-45deg);
}

/* Raise entire nav above overlay when menu is open */
.menu-is-open { z-index: 201 !important; }

/* Full-screen overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0 24px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 280ms cubic-bezier(0.2, 0, 0, 1),
              transform 280ms cubic-bezier(0.2, 0, 0, 1);
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex: none;
}

.nav-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #000B34;
  padding: 8px;
  line-height: 1;
}

.nav-overlay-links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-top: 1px solid #D8D8D8;
}
.nav-overlay-links a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid #D8D8D8;
  cursor: pointer;
  text-decoration: none;
  color: #000B34;
}
.nav-overlay-num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: #979797;
  width: 24px;
  flex: none;
}
.nav-overlay-label {
  font-family: var(--font-body);
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
  color: #000B34;
  letter-spacing: -0.01em;
}

.nav-overlay-footer {
  flex: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: #979797;
  line-height: 1.6;
  padding-top: 32px;
  border-top: 1px solid #D8D8D8;
}
.nav-overlay-footer strong { font-weight: 400; color: #979797; }

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Nav sits above overlay; strip its background so it blends with the white overlay */
  .menu-is-open .nav { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: transparent !important; }

  /* Scrolled nav: full-width card with side margins */
  .is-scrolled.nav-wrap { padding: 12px 16px; }
  .is-scrolled .nav {
    width: 100%;
    border-radius: 12px;
    padding: 16px 20px;
  }

  /* Overlay clears the nav bar (12px outer + 16px+20px+16px inner + 12px outer = 76px) */
  .nav-overlay { padding: 76px 16px 40px; }

}

/* ===========================================================
   Section 1 — Hero
   =========================================================== */
.section-hero { padding: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(36vw, 40%);
  gap: 40px;
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  padding: 96px 40px 40px;
}

.hero-copy {
  position: relative;
  padding: 24px 0 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.greeting {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: var(--lh-snug);
  color: var(--fg-secondary);
  margin: 0 0 16px;
}

.headline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 1.4;
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
  margin: 0 0 48px;
  text-wrap: balance;
}
.headline mark {
  position: relative;
  display: inline-block;
  background: transparent;
  color: #000B34;
  padding: 0 4px;
  isolation: isolate;
}
.headline mark::before {
  content: "";
  position: absolute;
  inset: -0.04em 2px -0.08em;
  background: #8AE78F;
  transform: rotate(-3deg);
  z-index: -1;
}
.headline .squiggle {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='6' viewBox='0 0 16 6'><path d='M0 3 Q 4 0 8 3 T 16 3' fill='none' stroke='%23000B34' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 16px 6px;
  padding-bottom: 2px;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  position: absolute;
  left: 0;
  bottom: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-small);
  color: var(--fg-secondary);
}
.hero-meta strong { font-weight: 400; color: var(--fg-primary); }

.hero-photo-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ===========================================================
   Pulsing dot ↔ expanding tooltip (single element morph)
   Per DS: 32×32 green pulsing circle that morphs into a 16px-radius
   pill containing the label — no separate dot.
   =========================================================== */
.img-tip {
  position: absolute;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 32px;
  max-height: 32px;
  overflow: hidden;
  padding: 0;
  background: #8AE78F;
  border-radius: 999px;
  cursor: default;
  box-shadow: 0 0 0 0 rgba(138, 231, 143, 0.7);
  animation: tip-pulse 1.6s cubic-bezier(0.2, 0, 0, 1) infinite;
  transition: width 300ms cubic-bezier(0.2, 0, 0, 1),
              max-height 300ms cubic-bezier(0.2, 0, 0, 1),
              padding 300ms cubic-bezier(0.2, 0, 0, 1),
              border-radius 300ms cubic-bezier(0.2, 0, 0, 1);
  z-index: 5;
}
.img-tip::after {
  content: "";
  position: absolute;
  inset: -14px;
}
.img-tip .label {
  flex: 1;
  min-width: 0;
  opacity: 0;
  white-space: normal;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: #000B34;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1) 120ms;
}
.img-tip:hover,
.img-tip:focus-visible,
.img-tip.is-open {
  width: min(320px, calc(100% - 48px));
  max-height: 80px;
  border-radius: 999px;
  padding: 18px 28px;
  animation: none;
  box-shadow: none;
}
.img-tip:hover .label,
.img-tip:focus-visible .label,
.img-tip.is-open .label {
  opacity: 1;
}

@keyframes tip-pulse {
  0%   { box-shadow: 0 0 0 0    rgba(138, 231, 143, 0.7); }
  70%  { box-shadow: 0 0 0 16px rgba(138, 231, 143, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(138, 231, 143, 0);   }
}

/* Hero tip — bottom-right of photo */
.hero-tip  { bottom: 24px; right: 24px; }
/* About tip — bottom-left of photo */
.about-tip { bottom: 64px; left: 24px;  }

/* ===========================================================
   Buttons — per DS components-buttons.html
   =========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    opacity var(--duration-base) var(--ease-standard);
}
.btn.primary {
  background: var(--color-primary-blue);
  color: var(--color-white);
  border-color: var(--color-primary-blue);
}
.btn.primary:hover { background: #1B2655; border-color: #1B2655; }
.btn.secondary {
  background: transparent;
  color: var(--color-primary-blue);
  border-color: var(--color-tertiary-grey);
}
.btn.secondary:hover { background: var(--color-white); }
.btn .ico { width: 20px; height: 20px; flex: none; aspect-ratio: 1 / 1; display: block; }
.btn .btn-label { padding: 0 8px; display: inline-block; }

/* ===========================================================
   Section 2 — My work
   =========================================================== */
.section-work { padding: 0; }
.work {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 40px;
  display: flex;
  flex-direction: column;
}
.work-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  text-align: center;
  margin: 0 0 56px;
  color: var(--fg-primary);
}

.case-grid {
  border-top: 1px solid #000B34;
  border-bottom: 1px solid #000B34;
}
@media (min-width: 1800px) {
  .case-grid  { border-left: 1px solid #000B34; border-right: 1px solid #000B34; }
  .headline { font-size: 56px; }
}

.case-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  border-bottom: 1px solid #000B34;
  background: #F2F2F2;
  cursor: pointer;
  transition: background 240ms cubic-bezier(0.2, 0, 0, 1);
}
.case-row:last-child { border-bottom: 0; }
.case-row:hover { background: #FFFFFF; }

.case-left {
  display: flex;
  flex-direction: column;
  padding: 40px 40px 40px 40px;
  border-right: 1px solid #000B34;
  min-width: 0;
}

.case-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.case-eyebrow,
.case-count {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #979797;
}
.case-count { font-weight: 300; }

.case-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
  margin: 0 0 20px;
  max-width: min(560px, 100%);
  display: inline-block;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  transition: text-decoration-color var(--duration-base) var(--ease-standard);
}
.case-row:hover .case-title { text-decoration-color: #000B34; }

.case-lede {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-primary);
  margin: 0 0 32px;
  max-width: min(560px, 100%);
}

.case-outcomes-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.case-outcomes-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #979797;
  margin-bottom: 12px;
}
.case-outcome-list { display: flex; flex-direction: column; gap: 8px; }
.case-outcome-line {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  color: #000B34;
}
.case-outcome-line mark {
  font-family: var(--font-body);
  font-weight: 300;
  padding-right: 0;
  margin-right: 4px;
}
.case-arrow {
  flex: none;
  width: 40px;
  height: 34px;
  transition: transform 240ms cubic-bezier(0.2, 0, 0, 1);
}
.case-row:hover .case-arrow { transform: translateX(10px); }

.case-right {
  position: relative;
  display: flex;
  padding: 24px;
}
.case-panel {
  position: relative;
  flex: 1;
  min-height: 400px;
  background: #000B34;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  transition: background 240ms cubic-bezier(0.2, 0, 0, 1);
}
.case-row.panel-green .case-panel { background: #8AE78F; }
.case-row:hover .case-panel { background: #8AE78F; }

.case-wordmark {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #8AE78F;
  padding: 6px 10px;
  line-height: 0;
  transition: background 240ms cubic-bezier(0.2, 0, 0, 1);
}
.case-row:hover .case-wordmark,
.case-row.panel-green .case-wordmark { background: transparent; }
.case-wordmark img { display: block; width: auto; }
.wordmark-mews img { height: 10px; }
.wordmark-pleo img { height: 15px; }

.case-mock-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-mock-wrap img {
  max-height: 280px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: none;
  transition: box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}
.case-row:hover .case-mock-wrap img {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}
.case-row:nth-child(4):hover .case-mock-wrap img {
  box-shadow: none;
}

/* ── Coming-soon variant (case 4) ────────────────────────── */
.case-row--coming { cursor: default; }
.case-row--coming:hover { background: #F2F2F2; }
.case-row--coming:hover .case-title { text-decoration-color: transparent; }
.case-row--coming .case-panel,
.case-row--coming:hover .case-panel { background: rgba(0, 11, 52, 0.5); }
.case-row--coming .case-wordmark,
.case-row--coming:hover .case-wordmark { background: #000B34; }
.case-row--coming:hover .case-arrow { transform: none; }
.case-row--coming:hover .case-mock-wrap img { box-shadow: none; }

.case-coming-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #000B34;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 6px 8px;
  z-index: 1;
}
.case-locked-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #000B34;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 5px 8px 5px 7px;
  border: 1px solid #FFFFFF;
  z-index: 1;
}
.case-locked-tag svg { display: block; flex-shrink: 0; }
.case-row--coming .case-wordmark img { filter: brightness(0) invert(1); }

/* ===========================================================
   Section 3 — About me
   =========================================================== */
.section-about { padding: 0; }
.about {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 40px;
  padding: 0 40px 120px 40px;
  align-items: start;
}

.about-photo-wrap {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: 40px 0;
  box-sizing: border-box;
  align-self: start;
}
.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  display: block;
  background: #F2F2F2;
}

.about-body {
  min-width: 0;
  max-width: 720px;
  padding: 120px 0 0;
}
.about-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-h1);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
  margin: 0 0 24px;
}
.about-body p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
  color: var(--fg-primary);
  margin: 0 0 16px;
  max-width: 64ch;
  text-wrap: pretty;
}
.about-body p a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-weight: 400;
  transition: text-decoration-thickness 160ms cubic-bezier(0.2, 0, 0, 1);
}
.about-body p a:hover { text-decoration-thickness: 2px; }

.sub-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #979797;
  margin: 28px 0 12px;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 8px;
}
.skill-chip {
  background: rgba(138, 231, 143, 0.6);
  color: #000B34;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 0;
}

.cv-btn { margin-top: 24px; }

/* ===========================================================
   Section 4 — Contact
   =========================================================== */
.contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px 24px;
}
.contact-eyebrow {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #979797;
  margin-bottom: 32px;
}
.contact-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-closer);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--fg-primary);
  margin: 0 0 48px;
}
.contact-heading mark {
  position: relative;
  display: inline-block;
  background: transparent;
  color: #000B34;
  padding: 0 6px;
  isolation: isolate;
}
.contact-heading mark::before {
  content: "";
  position: absolute;
  inset: -0.04em 2px -0.08em;
  background: #8AE78F;
  transform: rotate(-3deg);
  z-index: -1;
}
.contact-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}
.mail-btn-wrap {
  position: relative;
  display: inline-flex;
}
.mail-btn {
  position: relative;
  background: none;
  font-family: inherit;
  font-size: inherit;
}
.mail-btn:hover:not(.mail-btn--copied) { border-color: var(--color-primary-blue); }
/* Tooltip arrow — tip touches button edge */
.mail-btn::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #273458;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 11;
}
/* Tooltip text — starts where arrow ends */
.mail-btn::after {
  content: "Copy to clipboard";
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #273458;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 10;
}
.mail-btn:hover::before,
.mail-btn:hover::after { opacity: 1; }
/* Suppress tooltip once copied */
.mail-btn--copied:hover::before,
.mail-btn--copied:hover::after { opacity: 0; }
/* Copied confirmation — same position as tooltip, no arrow */
.copied-toast {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-green);
  color: var(--color-primary-blue);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 10;
}
.copied-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===========================================================
   Footer
   =========================================================== */
.footer {
  border-top: 1px solid #D8D8D8;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #979797;
  padding: 28px 40px;
  flex: none;
}
.footer-claude {
  color: #000B34;
  font-weight: 500;
}

/* ===========================================================
   Browser mock (sized for case-row)
   =========================================================== */
.browser {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  font-family: var(--font-body);
  color: #000B34;
  font-weight: 300;
}
.browser .bar {
  height: 24px;
  background: #F2F2F2;
  border-bottom: 1px solid #E5E5E5;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
}
.browser .bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8D8D8;
  display: inline-block;
}
.browser .bar .bar-title {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #979797;
  letter-spacing: 0.04em;
}
.browser .toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #ECECEC;
}
.browser .toolbar .product {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
}
.browser .toolbar .actions { display: flex; gap: 6px; }
.browser .toolbar .pill {
  height: 14px;
  width: 28px;
  background: #F2F2F2;
  border-radius: 3px;
}
.browser .summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 10px 12px;
  gap: 12px;
  border-bottom: 1px solid #ECECEC;
}
.browser .summary .col label {
  display: block;
  font-size: 9px;
  color: #979797;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.browser .summary .col .val {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
}
.browser .summary .col .val .accent {
  background: #8AE78F;
  padding: 0 4px;
}
.browser table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
}
.browser table th,
.browser table td {
  padding: 4px 8px;
  text-align: left;
  border-bottom: 1px solid #F2F2F2;
}
.browser table th {
  font-size: 9px;
  font-weight: 400;
  color: #979797;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.browser table td.num { text-align: right; color: #979797; }

/* ===========================================================
   Responsive — single column on narrow screens
   =========================================================== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 40vh;
    min-height: 100vh;
    min-height: 100svh;
    padding-left: 32px;
    padding-right: 32px;
  }
  .hero-copy { padding-top: 32px; padding-bottom: 40px; }
  .hero-meta { position: static; margin-top: 24px; }
  .hero-photo-wrap { min-height: 0; }
  .case-row { grid-template-columns: 1fr; min-height: 0; }
  .case-left { border-right: 0; border-bottom: 1px solid #000B34; padding-left: 32px; padding-right: 32px; }
  .case-right { order: -1; min-height: 0; padding: 0; }
  .case-panel { min-height: 0; }
  .about { grid-template-columns: 1fr; gap: 32px; padding: 96px 32px 80px; }
  .about-photo-wrap { order: 2; }
  .about-body { order: 1; }
  .about-photo-wrap { position: relative; top: auto; height: auto; aspect-ratio: 3 / 4; max-width: 320px; }
  .about-body { padding-top: 0; }
  .contact { padding-left: 32px; padding-right: 32px; }
}

/* ============================================================
   Me & AI section
   =========================================================== */
.section-meai { padding: 0; }
.meai {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 40px;
  display: flex;
  flex-direction: column;
}
.meai-intro {
  text-align: center;
  max-width: 780px;
  margin: -32px auto 56px;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: var(--lh-loose);
  color: var(--fg-primary);
}
.meai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #000B34;
  border-bottom: 1px solid #000B34;
}
@media (min-width: 1800px) {
  .meai-grid  { border-left: 1px solid #000B34; border-right: 1px solid #000B34; }
}
.meai-card {
  display: flex;
  flex-direction: column;
  padding: 40px;
  background: #F2F2F2;
  border-bottom: 1px solid #000B34;
  border-right: 1px solid #000B34;
  min-height: 300px;
}
.meai-card .case-lede { max-width: none; }
@media (max-width: 900px) {
  .meai-grid { grid-template-columns: 1fr; }
  .meai-card { border-right: 0; padding-left: 32px; padding-right: 32px; }
  .meai-intro { padding: 0 32px; }
}
.meai-card:nth-child(2n)   { border-right: 0; }
.meai-card:nth-last-child(-n+2) { border-bottom: 0; }

/* ===========================================================
   Phone typography — must live after all base rules to win cascade
   =========================================================== */
@media (max-width: 700px) {
  .greeting { font-size: 20px; }
  .headline { font-size: 30px; }
  .contact-heading { font-size: 30px; }
}

/* Me & AI mobile card borders — must be after nth-last-child base rules */
@media (max-width: 900px) {
  .meai-card:nth-last-child(n+2) { border-bottom: 1px solid #000B34; }
  .meai-card:last-child { border-bottom: 0; }
}
