/* Home · a local copy of hk46.framer.website, measured at 1440 (desktop) and 390 (mobile) wide */

@font-face { font-family: "Inter Display"; src: url(../shared/cs/fonts/InterDisplay-Regular.woff2) format("woff2"), url(../shared/cs/fonts/InterDisplay-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../shared/cs/fonts/InterDisplay-Medium.woff2) format("woff2"), url(../shared/cs/fonts/InterDisplay-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url(../shared/cs/fonts/InterDisplay-SemiBold.woff2) format("woff2"), url(../shared/cs/fonts/InterDisplay-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #172126;
  --ink-h: #1D2029;
  --dark: #0D0D0D;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --pixel: "Bitcount Prop Single", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1230px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Hero ---------- */
/* Hero · Figma dWFTcDWgJeNtliK50XYnjc node 44-1310 (desktop frame 44:13, mobile frame 44:1311) */
@font-face { font-family: "Denton"; src: url(../shared/cs/fonts/DentonCondensedTest-Bold.woff2) format("woff2"), url(../shared/cs/fonts/DentonCondensedTest-Bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
.hero2 { position: relative; overflow: hidden; background: #F3FBFE; padding: 56px 0; }
.h2-main, .h2-brands { position: relative; }
.h2-photo, .h2-col { will-change: transform; }
.h2-photo { position: relative; z-index: 0; }
.h2-col { position: relative; z-index: 2; }
.h2-brands { z-index: 2; }

.h2-main { display: grid; grid-template-columns: minmax(0, 319px) minmax(0, 632px) minmax(0, 319px); justify-content: space-between; width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.h2-col { display: flex; flex-direction: column; gap: 40px; padding-top: 144px; }
.h2-intro { min-height: 101px; }
.h2-name { font: 700 40px/normal "Denton", Georgia, serif; letter-spacing: -0.4px; color: #1F7A4D; }
.h2-muted, .h2-strong, .h2-brands p { font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #4D4D4D; }
.h2-block { display: flex; flex-direction: column; gap: 8px; }
.h2-strong { font-weight: 600; color: #181818; }
.h2-photo { width: 100%; aspect-ratio: 632 / 790; }

/* Photo hover (both sections): a 3D tilt toward the pointer with a diagonal sheen that slides with it.
   Screen blend at low strength: it lifts the colours on the person, while the near-white backdrop can't get visibly lighter, so the photo's edges never show. */
.tilt { overflow: hidden; transform-origin: 50% 50%; }
.tilt > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: var(--go, 0);
  background: linear-gradient(115deg, rgba(255,255,255,0) 32%, rgba(255,255,255,.05) 43%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.05) 57%, rgba(255,255,255,0) 68%) no-repeat;
  background-size: 300% 100%; background-position: var(--gx, 50%) 0;
}
.h2-rule { display: none; margin: 0; border: 0; height: 1px; background: #E1E1E1; }
.h2-brands { display: flex; flex-direction: column; align-items: center; gap: 32px; width: min(1300px, calc(100% - 48px)); margin: 0 auto; }
.h2-brands p { color: #000; text-align: center; }
.h2-logos { position: relative; width: 100%; overflow: hidden; }
.h2-logos::before, .h2-logos::after { content: ""; position: absolute; top: 0; z-index: 1; width: 118px; height: 54px; pointer-events: none; background: linear-gradient(90deg, #F3FBFE, rgba(243,251,254,0)); }
.h2-logos::before { left: 0; }
.h2-logos::after { right: 0; transform: scaleX(-1); }
.h2-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.h2-logos:hover .h2-track { animation-play-state: paused; }
.h2-track img { flex: none; width: 130px; height: 54px; }

/* ---------- Work · Figma Bfq5SwmLcE3GsHziKndpHv node 68-818 ---------- */
.work { padding: 80px 0; background: #FAF9F5; }
@media (max-width: 809.98px) { .d-br { display: none; } }
.w-wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.w-title { font: 700 40px/normal "Denton", Georgia, serif; letter-spacing: -0.4px; color: #1F7A4D; }
.wcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 56px; }
/* .wcard holds the layout slot; .wc-in is the visible card that tilts in 3D as it scrolls in (home.js) */
.wcard { position: relative; display: block; height: 394px; perspective: 1400px; }
.wcard.lead { grid-column: 1 / -1; height: 340px; }
.wc-in { position: absolute; inset: 0; isolation: isolate; overflow: hidden; border-radius: 16px; background: #BCDDE8; transform-origin: 50% 100%; will-change: transform; }
.lead .wc-in { display: flex; align-items: center; background: #E9A88C; }
.wc-img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.wc-copy { padding: 56px 56px 0; }
.lead .wc-copy { padding: 0 56px; }
.lead .wc-p { max-width: 460px; }
.wc-h { font: 700 32px/1.4 "Denton", Georgia, serif; letter-spacing: -0.32px; color: #000; }
.wc-p { margin-top: 16px; font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #2D2D2D; }
/* Mobile-only frosted bands (Figma): "View Case Study" at the bottom, "Coming Soon" at the top */
.wc-cta, .wc-soon { display: none; }
a.wcard:focus-visible { outline: none; }
a.wcard:focus-visible .wc-in { outline: 2px solid #1F7A4D; outline-offset: 4px; }

/* Cursor tooltip on the cards (desktop): same look as the case-study info popovers */
.cur-tip {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: #1A1A1A; color: #F4F1EA; font: 500 13px/18px var(--display); white-space: nowrap;
  box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 24px 60px -24px rgba(26,26,26,.32);
  opacity: 0; transition: opacity .2s ease;
}
.cur-tip::before { content: ""; position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: #1A1A1A; }
.cur-tip.on { opacity: 1; }
.cur-tip i { width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F1EA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.cur-tip.soon i { display: none; }

/* ---------- Pixel Party · Figma Bfq5SwmLcE3GsHziKndpHv node 89-1461 (desktop 1440×800, mobile 360×688) ---------- */
.pp2 { position: relative; overflow: hidden; height: 800px; background: #F2FCFE; }
/* The photo and laptop are placed on the 1440 frame, centred in the window; the laptop always bleeds off the left edge */
.pp2-photo { position: absolute; top: 0; left: calc(50% - 720px + 519px); width: 1006px; height: 1257px; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 140px); mask-image: linear-gradient(90deg, transparent, #000 140px); }
.pp2-laptop { position: absolute; left: 0; top: 396px; width: 600px; height: 404px; max-width: none; }
.pp2-wrap { position: relative; width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding-top: 80px; }
.pp2-copy { width: 465px; display: flex; flex-direction: column; gap: 16px; }
.pp2-title { font: 700 40px/normal "Denton", Georgia, serif; letter-spacing: -0.4px; color: #1F7A4D; }
.pp2-text { font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #4D4D4D; }
.pp2-btn { display: inline-flex; align-items: center; gap: 12px; height: 40px; min-width: 153px; justify-content: center; margin-top: 38px; padding: 0 16px; border-radius: 40px; background: #0D0D0D; color: #fff; font: 500 15px/19px var(--display); letter-spacing: -0.15px; transition: background .2s ease; }
.pp2-btn i { width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; transition: transform .3s ease; }
.pp2-btn:hover { background: #262626; }
.pp2-btn:hover i { transform: translateX(3px); }
.pp2-btn:focus-visible { outline: 2px solid #1F7A4D; outline-offset: 3px; }

/* ---------- How I work · Figma Bfq5SwmLcE3GsHziKndpHv node 90-1587 ----------
   Cream cards that open on hover / focus / tap to show the habit and its proof (the case-study reveal-card pattern) */
.how { padding: 80px 0; background: #fff; }
.how-wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.how-head { display: flex; flex-direction: column; gap: 16px; }
.how-title { font: 700 40px/normal "Denton", Georgia, serif; letter-spacing: -0.4px; color: #1F7A4D; }
.how-sub { font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #4D4D4D; }
.hcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.hcard { display: flex; flex-direction: column; justify-content: space-between; height: 350px; padding: 24px; border-radius: 16px; background: #FAF9F5; outline: none; cursor: default; transition: background .5s cubic-bezier(.2,.7,.1,1); }
.hc-ic { width: 32px; height: 32px; transition: transform .6s cubic-bezier(.2,.7,.1,1); }
.hc-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hc-title { font: 700 32px/1.15 "Denton", Georgia, serif; letter-spacing: -0.32px; color: #1F7A4D; }
.hc-arrow { flex: none; width: 53px; height: 53px; transition: transform .5s cubic-bezier(.2,.7,.1,1), opacity .4s cubic-bezier(.2,.7,.1,1); }
.hc-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s cubic-bezier(.2,.7,.1,1); }
.hc-in { min-height: 0; overflow: hidden; }
.hc-line { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.1,1); }
.hc-line { padding-top: 16px; font: 500 15px/22px var(--display); letter-spacing: -0.15px; color: #000; }
.hcard:hover, .hcard:focus-visible, .hcard.open { background: #F5FAF8; }
.hcard:hover .hc-more, .hcard:focus-visible .hc-more, .hcard.open .hc-more { grid-template-rows: 1fr; }
.hcard:hover .hc-line, .hcard:focus-visible .hc-line, .hcard.open .hc-line { opacity: 1; transform: none; transition-delay: .12s; }
.hcard:hover .hc-arrow, .hcard:focus-visible .hc-arrow, .hcard.open .hc-arrow { opacity: 0; transform: rotate(45deg) scale(.6); }
.hcard:hover .hc-ic, .hcard.open .hc-ic { transform: translateY(-2px) scale(1.06); }
.hcard:focus-visible { box-shadow: 0 0 0 2px #1F7A4D; }

/* ---------- About · Figma dWFTcDWgJeNtliK50XYnjc node 59-844 (desktop 59:571, mobile 59:586) ---------- */
.about2 { position: relative; overflow: hidden; background: #F3FBFE; }
/* Figma frame is 800 tall; +56 at the top (added when a wave sat above) and extra room at the bottom keep the shoe uncut while the photo drifts down */
.a2-wrap { position: relative; width: min(1280px, calc(100% - 48px)); height: 912px; margin: 0 auto; }
.a2-photo { position: absolute; left: 50%; top: 91px; width: 632px; height: 790px; margin-left: -316px; z-index: 0; will-change: transform; }
.a2-left, .a2-right { position: absolute; z-index: 2; display: flex; flex-direction: column; will-change: transform; }
.a2-left { left: 0; top: 136px; width: 465px; gap: 16px; }
.a2-left .a2-muted { max-width: 395px; }
.a2-right { right: 17px; top: 456px; width: 328px; gap: 24px; }
.a2-title { font: 700 40px/normal "Denton", Georgia, serif; letter-spacing: -0.4px; color: #1F7A4D; }
.a2-muted, .a2-strong { font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #4D4D4D; }
.a2-strong { font-weight: 600; color: #181818; }
.a2-green { color: #1F7A4D; }
/* Arrow: draws itself in once the block is on screen, then nudges toward the line above every few seconds */
.a2-arrow { display: block; margin: 0 0 0 90px; overflow: visible; }
.a2-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.a2-arrow.in .ar-line { transition: stroke-dashoffset 1.1s cubic-bezier(.45,0,.2,1); stroke-dashoffset: 0; }
.a2-arrow.in .ar-head { transition: stroke-dashoffset .35s ease-out 1s; stroke-dashoffset: 0; }
.a2-arrow.in { animation: arrow-nudge 3.2s ease-in-out 1.6s infinite; }
@keyframes arrow-nudge { 0%, 64%, 100% { transform: none; } 76% { transform: translate(-2px, -4px); } 88% { transform: none; } }
.a2-rule { display: none; margin: 0; border: 0; height: 1px; background: #E1E1E1; }

/* Photo strip (no hover state; 16px corners) */
.strip { padding: 80px 0; }
.covers { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cover-track { display: flex; gap: 8px; width: max-content; animation: marquee-gap 55s linear infinite; }
@keyframes marquee-gap { to { transform: translateX(calc(-50% - 4px)); } }
.cv { position: relative; flex: none; width: 300px; height: 360px; overflow: hidden; border-radius: 16px; }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Tablet (Framer: 810–1199) ---------- */
@media (max-width: 1199.98px) {
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .wc-copy { padding: 40px 40px 0; }
  .lead .wc-copy { padding: 0 40px; }
  .wc-h { font-size: 28px; letter-spacing: -0.28px; }
}
@media (max-width: 1199.98px) {
  .hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (min-width: 810px) and (max-width: 1099.98px) {
  .h2-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
  .h2-photo { grid-column: 1 / -1; order: -1; width: min(420px, 100%); justify-self: center; }
  .h2-col { padding-top: 40px; }
  .h2-brands { margin-top: 56px; }
}
/* About: stacked below 1100 (photo first, then the two text blocks side by side) */
@media (max-width: 1099.98px) {
  .a2-wrap { height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; row-gap: 40px; padding: 96px 0 72px; }
  .a2-photo { position: relative; left: auto; top: auto; margin: 0 auto; grid-column: 1 / -1; width: min(420px, 100%); height: auto; aspect-ratio: 1122 / 1402; }
  .a2-left, .a2-right { position: static; width: auto; }
  .a2-left .a2-muted { max-width: none; }
}
@media (max-width: 1000px) {
}

/* ---------- Mobile (Framer: under 810) ---------- */
@media (max-width: 809.98px) {
  .wrap { width: calc(100% - 32px); }

  .hero2 { padding: 24px 0; }
  .h2-main { display: flex; flex-direction: column; gap: 24px; width: calc(100% - 32px); }
  .h2-photo { order: -1; margin-bottom: -8px; aspect-ratio: 1122 / 1402; }
  .h2-col { padding-top: 0; gap: 24px; }
  .h2-rule { display: block; width: calc(100% - 32px); margin: 24px auto; }
  .h2-main .h2-rule { width: 100%; margin: 0; }
  .h2-brands { width: calc(100% - 32px); gap: 24px; align-items: stretch; }
  .h2-brands p { text-align: left; }

  .work { padding: 24px 0; }
  .w-wrap { width: calc(100% - 32px); }
  .w-title { font-size: 32px; letter-spacing: -0.32px; }
  .wcards { grid-template-columns: 1fr; gap: 40px; margin-top: 32px; }
  .lead .wc-in { display: block; }
  .wc-copy, .lead .wc-copy { padding: 24px 24px 0; }
  .lead .wc-img { object-position: 54% 50%; }
  .wc-h { font-size: 24px; line-height: 38px; letter-spacing: -0.24px; }
  .wc-p { font-size: 14px; letter-spacing: -0.14px; }
  .lead .wc-p { max-width: 225px; }
  .wc-cta, .wc-soon { display: flex; align-items: center; justify-content: center; font: 500 15px/24px var(--display); letter-spacing: -0.15px; color: #1D1D1D; background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .wc-cta { position: absolute; left: 0; right: 0; bottom: 0; gap: 12px; height: 56px; }
  .wc-cta i { width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D1D1D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h16M14 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }
  .wc-soon { height: 50px; background: rgba(255, 255, 255, .55); }



  .pp2 { display: flex; flex-direction: column; height: auto; padding: 0 16px; }
  .pp2-laptop { display: none; }
  .pp2-wrap { order: 1; width: 100%; padding-top: 24px; }
  .pp2-copy { width: auto; }
  .pp2-title { font-size: 32px; letter-spacing: -0.32px; }
  .pp2-btn { margin-top: 32px; }
  /* Figma crops in closer on mobile (head to knees): the photo is drawn 135% wide, and its plain backdrop spills into the side padding */
  .pp2-photo { order: 2; position: static; align-self: center; width: 135%; height: 370px; margin-top: 32px; object-fit: cover; object-position: 50% 0; -webkit-mask-image: none; mask-image: none; }

  .how { padding: 24px 0; }
  .how-wrap { width: calc(100% - 32px); }
  .how-title { font-size: 32px; letter-spacing: -0.32px; }
  .hcards { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  /* On phones every card is open: no hover to discover it */
  .hcard { height: auto; gap: 40px; justify-content: flex-start; }
  .hc-title { font-size: 24px; }
  .hc-arrow { display: none; }
  .hc-more { grid-template-rows: 1fr; }
  .hc-line { opacity: 1; transform: none; }

  .a2-wrap { display: flex; flex-direction: column; gap: 24px; width: calc(100% - 32px); padding: 64px 0 40px; }
  .a2-photo { width: 100%; margin-bottom: -8px; }
  .a2-title { font-size: 32px; letter-spacing: -0.32px; }
  .a2-rule { display: block; }
  .a2-arrow { margin-left: 104px; }
  .strip { padding: 56px 0; }

}

@media (prefers-reduced-motion: reduce) {
  .cover-track, .h2-track { animation: none !important; }
  .h2-photo, .h2-col, .a2-photo, .a2-left, .a2-right { transform: none !important; }
  .a2-arrow { animation: none !important; }
  .a2-arrow path { stroke-dashoffset: 0 !important; transition: none !important; }
}
