/* ==========================================================================
   Hana Tanimura — hanatanimura.com
   Hand-built replacement for the Framer site. No frameworks, no build step.

   Breakpoints (mirroring the Framer project):
     Layout      ≥1200px  desktop   |  <1200px  mobile/tablet (fluid)
     Type        ≥1194px  large     |  744–1193px medium  |  <744px small
   ========================================================================== */

/* ---------- Fonts (Geist + Geist Mono, self-hosted) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/geist-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* Colours (same values as the Framer colour tokens) */
  --bg: #000;
  --text: #e5e5e5;          /* Primary */
  --muted: #999;            /* Secondary */
  --subtle: #737373;        /* Section subtitles, status lines, icons */
  --dim: #666;
  --surface: #1a1a1a;       /* Cards, buttons, tiles */
  --surface-list: #1c1c1c;  /* "Around the web" cards */
  --surface-hover: #2b2b2b; /* "Around the web" row hover */
  --accent: #006aff;        /* Button hover, text selection */
  --year: #6b6b6b;
  --copyright: #454545;
  --amber: #ffbb00;         /* Availability dot */

  --font: "Geist", "Geist Placeholder", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion — Framer's tween curve, plus its springs approximated for CSS */
  --ease-framer: cubic-bezier(.12, .23, .5, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* fallbacks for browsers without linear() */
  --spring-0-50: var(--ease-out);   /* bounce 0,  duration .5 */
  --spring-20-50: var(--ease-out);  /* bounce .2, duration .5 */
  --spring-20-40: var(--ease-out);  /* bounce .2, duration .4 */
  --spring-30-30: var(--ease-out);  /* bounce .3, duration .3 */
  --spring-card: var(--ease-out);   /* stiffness 500, damping 30, mass .5 */
}

@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-0-50: linear(0, 0.0232, 0.0826, 0.1614, 0.2416, 0.3299, 0.4149, 0.4941, 0.5608, 0.6256, 0.6826, 0.7286, 0.7719, 0.809, 0.8406, 0.8654, 0.8882, 0.9074, 0.9234, 0.9358, 0.9471, 0.9565, 0.9637, 0.9702, 0.9755, 0.9799, 0.9833, 0.9864, 0.9889, 0.9909, 0.9925, 0.9938, 0.995, 0.9958, 0.9966, 0.9972, 0.9978, 0.9981, 0.9985, 0.9988, 1);
    --spring-20-50: linear(0, 0.0194, 0.072, 0.1459, 0.2319, 0.3153, 0.4066, 0.4944, 0.5763, 0.645, 0.7121, 0.7708, 0.8212, 0.8606, 0.8966, 0.9261, 0.9498, 0.9671, 0.9818, 0.9929, 1.001, 1.0063, 1.0102, 1.0125, 1.0136, 1.0139, 1.0136, 1.0128, 1.0118, 1.0107, 1.0094, 1.0081, 1.0069, 1.0059, 1.0048, 1.0039, 1.0031, 1.0025, 1.0019, 1.0014, 1);
    --spring-20-40: linear(0, 0.0206, 0.0701, 0.1471, 0.2277, 0.3226, 0.4081, 0.4906, 0.5761, 0.6462, 0.7157, 0.7705, 0.818, 0.8627, 0.8962, 0.9268, 0.9489, 0.9666, 0.9819, 0.9923, 1.0007, 1.0061, 1.0097, 1.0122, 1.0133, 1.0136, 1.0133, 1.0126, 1.0116, 1.0104, 1.0092, 1.008, 1.0069, 1.0057, 1.0048, 1.0038, 1.0031, 1.0024, 1.0018, 1.0014, 1);
    --spring-30-30: linear(0, 0.0209, 0.0703, 0.1396, 0.2215, 0.3101, 0.4007, 0.4896, 0.5743, 0.6528, 0.724, 0.7872, 0.8422, 0.8891, 0.9283, 0.9603, 0.9858, 1.0056, 1.0203, 1.0307, 1.0374, 1.0413, 1.0427, 1.0424, 1.0406, 1.0379, 1.0346, 1.0309, 1.027, 1.0231, 1.0194, 1.016, 1.0128, 1.01, 1.0075, 1.0054, 1.0036, 1.0021, 1.001, 1, 1);
    --spring-card: linear(0, 0.03121, 0.1004, 0.2009, 0.2973, 0.404, 0.4925, 0.5728, 0.652, 0.7126, 0.7704, 0.8132, 0.849, 0.8819, 0.9057, 0.9272, 0.9424, 0.9547, 0.9656, 0.9733, 0.9799, 0.9845, 0.9881, 0.9913, 0.9934, 0.9952, 0.9964, 0.9973, 0.9981, 0.9986, 1);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, figure, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, video, svg { display: block; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
::selection { background-color: var(--accent); color: var(--text); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: var(--bg);
}

/* ---------- Load ("appear") animations ----------
   Same choreography as Framer: every element starts 16px low and almost
   transparent, then springs in after its own delay (--d). */
.ap {
  --dur: .47s;
  --ease: var(--spring-20-50);
  opacity: .001;
  transform: translateY(16px);
  animation: ap-in var(--dur) var(--ease) var(--d, 0s) both;
}
.ap--tween { --ease: var(--ease-framer); }
@keyframes ap-in {
  from { opacity: .001; transform: translateY(16px); }
  to   { opacity: 1;    transform: translateY(0); }
}

/* ---------- Progressive blur (fixed, bottom of viewport) ---------- */
.progressive-blur {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 256px;
  z-index: 9;
  pointer-events: none;
  overflow: hidden;
}
.progressive-blur > div { position: absolute; inset: 0; pointer-events: none; }
.progressive-blur > div:nth-child(1) { z-index: 1; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); mask-image: linear-gradient(to bottom, transparent 0%, #000 12.5%, #000 25%, transparent 37.5%); -webkit-backdrop-filter: blur(.078125px); backdrop-filter: blur(.078125px); }
.progressive-blur > div:nth-child(2) { z-index: 2; -webkit-mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); mask-image: linear-gradient(to bottom, transparent 12.5%, #000 25%, #000 37.5%, transparent 50%); -webkit-backdrop-filter: blur(.15625px); backdrop-filter: blur(.15625px); }
.progressive-blur > div:nth-child(3) { z-index: 3; -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); mask-image: linear-gradient(to bottom, transparent 25%, #000 37.5%, #000 50%, transparent 62.5%); -webkit-backdrop-filter: blur(.3125px); backdrop-filter: blur(.3125px); }
.progressive-blur > div:nth-child(4) { z-index: 4; -webkit-mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); mask-image: linear-gradient(to bottom, transparent 37.5%, #000 50%, #000 62.5%, transparent 75%); -webkit-backdrop-filter: blur(.625px); backdrop-filter: blur(.625px); }
.progressive-blur > div:nth-child(5) { z-index: 5; -webkit-mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); mask-image: linear-gradient(to bottom, transparent 50%, #000 62.5%, #000 75%, transparent 87.5%); -webkit-backdrop-filter: blur(1.25px); backdrop-filter: blur(1.25px); }
.progressive-blur > div:nth-child(6) { z-index: 6; -webkit-mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 62.5%, #000 75%, #000 87.5%, transparent 100%); -webkit-backdrop-filter: blur(2.5px); backdrop-filter: blur(2.5px); }
.progressive-blur > div:nth-child(7) { z-index: 7; -webkit-mask-image: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%); mask-image: linear-gradient(to bottom, transparent 75%, #000 87.5%, #000 100%); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.progressive-blur > div:nth-child(8) { z-index: 8; -webkit-mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%); mask-image: linear-gradient(to bottom, transparent 87.5%, #000 100%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- Shared type ---------- */
.section__title {
  width: 100%;
  max-width: 640px;
  font-size: 48px;
  line-height: 50px;
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}
.section__sub {
  width: 100%;
  max-width: 640px;
  font-size: 20px;
  line-height: 28px;
  color: var(--subtle);
  text-align: center;
}
.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: clip;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 140px 0 130px;
}

.hero__avatar {
  position: relative;
  width: 130px;
  height: 130px;
  flex: none;
  border-radius: 30px;
  transform: translateY(16px) rotate(0deg);
}
.hero__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.ap--avatar { animation-name: ap-avatar; }
@keyframes ap-avatar {
  from { opacity: .001; transform: translateY(16px) rotate(0deg); }
  to   { opacity: 1;    transform: translateY(0) rotate(-6deg); }
}
/* After the intro finishes, JS swaps the animation for a static state so the
   hover can take over (straighten + grow, .4s Framer tween). */
.hero__avatar.is-settled {
  animation: none;
  opacity: 1;
  transform: rotate(-6deg) scale(1);
  transition: transform .4s var(--ease-framer);
}
@media (hover: hover) {
  .hero__avatar.is-settled:hover { transform: rotate(0deg) scale(1.1); }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding-top: 24px;
  overflow: clip;
}

.hero__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-top: 4px;
  overflow: clip;
}
.hero__title {
  width: 100%;
  max-width: 520px;
  font-size: 64px;
  line-height: 72px;
  letter-spacing: -.02em;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}
.hero__lede {
  width: 100%;
  max-width: 680px;
  font-size: 28px;
  line-height: 38px;
  letter-spacing: -.01em;
  color: var(--muted);
  text-align: center;
}
.hl { color: var(--text); }
.dim { color: var(--dim); }

.hero__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  overflow: clip;
}
.hero__lines p {
  font-size: 20px;
  line-height: 28px;
  color: var(--subtle);
  text-align: center;
  white-space: pre;
}

/* Availability pill */
.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min-content;
  padding: 8px 14px 8px 13px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .078);
  overflow: hidden;
}
.pill::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .059);
  border-radius: inherit;
  pointer-events: none;
}
.pill__text {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.2;
  color: #858585;
  white-space: pre;
}
.status-dot {
  position: relative;
  display: block;
  flex: none;
  width: 12px;
  height: 12px;
}
.status-dot__ring,
.status-dot__core {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--amber);
}
.status-dot__ring {
  opacity: 0;
  animation: dot-ring 1.6s .6s infinite;
}
/* Framer: 1s pulse (opacity 0 → .75 → 0, scale 1 → 2), then .6s rest, forever */
@keyframes dot-ring {
  0%    { opacity: 0;   transform: scale(1); animation-timing-function: cubic-bezier(.44, 0, .56, 1); }
  1.25% { opacity: .75; transform: scale(1); animation-timing-function: cubic-bezier(.44, 0, .56, 1); }
  50%   { opacity: 0;   transform: scale(2); animation-timing-function: cubic-bezier(.44, 0, .56, 1); }
  62.5% { opacity: 0;   transform: scale(1); }
  100%  { opacity: 0;   transform: scale(1); }
}

/* CTA */
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1296px;
  padding: 0 8px;
}
.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 308px;
  padding-left: 3px;
}

/* ---------- Button ("Send an email") ---------- */
.btn {
  --btn-ease: var(--spring-0-50);
  --btn-dur: .51s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 16px 20px 16px 18px;
  border-radius: 12px;
  background-color: var(--surface);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--btn-dur) var(--btn-ease),
    padding var(--btn-dur) var(--btn-ease),
    gap var(--btn-dur) var(--btn-ease);
}
.btn__icon {
  flex: none;
  width: 2px;
  height: 2px;
  opacity: 0;
  transition:
    width var(--btn-dur) var(--btn-ease),
    height var(--btn-dur) var(--btn-ease),
    opacity var(--btn-dur) var(--btn-ease);
}
.btn__icon svg { width: 100%; height: 100%; color: var(--text); }
.btn__label {
  position: relative;
  z-index: 1;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0;
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .btn:hover { background-color: var(--accent); gap: 8px; padding: 16px 20px; }
  .btn:hover .btn__icon { width: 16px; height: 16px; opacity: 1; }
}

/* ==========================================================================
   SECTIONS (desktop ≥1200)
   ========================================================================== */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  width: 100%;
  padding: 0 120px 120px;
}

/* ---------- Select projects (bento) ---------- */
.bento { height: 1520px; }
.bento__frame {
  flex: 1 0 0;
  width: 100%;
  min-height: 0;
}
.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 12px;
  border-radius: 18px;
  background: #000;
  overflow: hidden;
}
.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
}
.tile__media {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  transform: scale(1);
  transition: transform .2s ease-in-out;
}
.tile__media video,
.tile__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (hover: hover) {
  .tile__media:hover { transform: scale(1.03); }
}

/* ---------- What I do ---------- */
.offer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.offer-hover {
  flex: 1 0 0;
  width: 1px;
  max-width: 310px;
  height: 350px;
  transition: transform .38s var(--spring-20-40);
}
@media (hover: hover) {
  .offer-hover:hover { transform: rotate(1deg); }
}
.offer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 20px 20px 28px;
  border-radius: 18px;
  background: var(--surface);
  overflow: hidden;
}
/* in-view reveal (re-runs every time the card scrolls in/out, like Framer) */
.js .offer {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease-framer) .1s, transform .5s var(--ease-framer) .1s;
}
.js .offer.is-in { opacity: 1; transform: none; }

.offer__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.offer__icon {
  width: 20px;
  height: 20px;
  color: var(--subtle);
  stroke-width: 1.5;
}
.offer__title {
  font-size: 24px;
  line-height: 28px;
  letter-spacing: -.01em;
  font-weight: 500;
  color: var(--text);
}
.offer__body {
  font-size: 15px;
  line-height: 1.6em;
  letter-spacing: -.02em;
  color: var(--muted);
}

.flip-wrap { display: none; }

/* ---------- Select collaborators ---------- */
.clients { overflow: hidden; }
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(50px, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  height: 390px;
}
.client {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background: var(--surface);
  transition: transform .38s var(--spring-20-40);
}
@media (hover: hover) {
  .client:hover { transform: rotate(var(--tilt, 4deg)); }
}
.client img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.client span {
  width: 120px;
  font-size: 13px;
  line-height: 1em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--subtle);
  text-align: center;
  font-feature-settings: "cv01" on, "cv09" on, "cv11" on, "cv05" on, "ss03" on;
}

/* ---------- Around the web ---------- */
.press {
  padding-bottom: 100px;
  overflow: hidden;
}
.press__title { max-width: 800px; }
.press__cols {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 1000px;
  flex: none;
}
.press__col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 0 0;
  width: 1px;
  padding: 11px 14px;
  border-radius: 20px;
  background: var(--surface-list);
}
.press-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background-color: rgba(43, 43, 43, 0);
  text-decoration: none;
  overflow: hidden;
  transform: scale(1);
  transition:
    transform .24s var(--spring-30-30),
    background-color .24s var(--spring-30-30);
}
@media (hover: hover) {
  .press-item:hover { background-color: var(--surface-hover); transform: scale(1.03); }
}
.press-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.press-item__row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.press-item__icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--text);
  stroke-width: 2;
}
.press-item__spacer { flex: none; align-self: stretch; width: 18px; }
.press-item__title,
.press-item__year {
  font-size: 15px;
  line-height: 1.5em;
  letter-spacing: -.01em;
  color: var(--text);
  white-space: pre;
  user-select: none;
  -webkit-user-select: none;
}
.press-item__year { font-size: 12px; color: var(--year); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  width: 100%;
  padding: 120px 24px 160px;
  box-shadow: inset 0 1px 0 var(--surface);
  overflow: hidden;
}
.footer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1296px;
  padding: 0 8px;
}
.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 976px;
}
.footer__copy {
  font-size: 14px;
  line-height: 26px;
  color: var(--copyright);
  text-align: center;
  white-space: pre;
}

/* ==========================================================================
   TYPE SCALE — Framer text styles switch at 1194px and 744px
   ========================================================================== */
@media (max-width: 1193.98px) {
  .hero__title { font-size: 48px; line-height: 56px; letter-spacing: -.015em; }
}
@media (max-width: 743.98px) {
  .hero__title { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
}

/* ==========================================================================
   MOBILE / TABLET LAYOUT  (<1200px)
   ========================================================================== */
@media (max-width: 1199.98px) {
  /* Hero */
  .hero { gap: 36px; padding: 90px 40px; }
  .hero__avatar { width: 90px; height: 90px; border-radius: 24px; }
  .hero__copy { gap: 30px; padding-top: 8px; }
  .hero__main { gap: 18px; padding: 0 0 4px; }
  .hero__lede { font-size: 20px; line-height: 30px; letter-spacing: -.005em; }
  .hero__status { gap: 5px; }
  .hero__lines { width: 100%; }
  .hero__lines p { font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
  .pill { padding: 7px 12px 7px 11px; }
  .pill__text { font-size: 12px; opacity: .92; }
  .status-dot { width: 10px; height: 10px; }

  /* Section titles use the large "Heading 1" style on mobile/tablet */
  .section__title { font-size: 64px; line-height: 72px; letter-spacing: -.02em; }
  .section__sub { font-size: 15px; line-height: 20px; }
  .section__head { gap: 10px; }

  .section { padding: 0 40px 80px; }

  /* Projects */
  .bento { gap: 40px; height: auto; }
  .bento__frame { flex: none; height: 1100px; max-height: 1100px; }
  .bento__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(7, 1fr);
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }
  .tile { border-radius: 14px; }
  .tile--desktop-only { display: none; }

  /* What I do */
  .services { gap: 56px; }
  .offer-row { display: none; }
  .flip-wrap { display: block; }

  /* Collaborators */
  .clients { gap: 30px; }
  .clients__grid {
    grid-template-columns: repeat(3, minmax(36px, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 100px;
    gap: 12px;
    height: auto;
  }
  .client { gap: 14px; border-radius: 14px; }
  .client img { width: 30px; height: 30px; }
  .client span { font-size: 11px; }

  /* Around the web: one card, title animates in */
  .press { gap: 30px; padding-bottom: 40px; }
  .press__title {
    max-width: 640px;
    opacity: .001;
    transform: translateY(16px);
    animation: ap-in .5s var(--ease-framer) .8s both;
  }
  .press__cols {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    padding: 11px 14px;
    border-radius: 20px;
    background: var(--surface-list);
  }
  .press__col { display: contents; }
}
@media (max-width: 1193.98px) {
  .section__title { font-size: 48px; line-height: 56px; letter-spacing: -.015em; }
}
@media (max-width: 743.98px) {
  .section__title { font-size: 32px; line-height: 40px; letter-spacing: -.01em; }
}

/* Footer variants (Framer: desktop ≥1194, tablet 744–1193, phone <744) */
@media (max-width: 1193.98px) {
  .footer__meta { max-width: 656px; }
  .footer__copy { font-size: 13px; }
  /* the tablet/phone footer button has no hover state in Framer */
  .btn--footer:hover { background-color: var(--surface); gap: 0; padding: 16px 20px 16px 18px; }
  .btn--footer:hover .btn__icon { width: 2px; height: 2px; opacity: 0; }
}
@media (max-width: 743.98px) {
  .footer { padding: 80px 24px 160px; }
  .footer__copy { font-size: 12px; }
}

/* ---------- Flip-card stack (mobile "What I do") ---------- */
.flip-stack {
  position: relative;
  width: 260px;
  height: 320px;
  perspective: 1000px;
}
.flip-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.flip-card.is-top { cursor: grab; touch-action: none; }
.flip-card.is-dragging { cursor: grabbing; }
.flip-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .ap, .press__title { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero__avatar { transform: rotate(-6deg) !important; }
  .status-dot__ring { animation: none; }
  .js .offer { opacity: 1; transform: none; transition: none; }
}
