@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&display=swap');

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  /* Typography — change these to swap fonts site-wide */
  --font-sans: 'Inter', 'helvetica neue', Helvetica, Arial, sans-serif;
  --font-display: 'Inter', 'helvetica neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Chronicle Display', Georgia, serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Buttons — single source of truth */
  --btn-bg: #000000;
  --btn-bg-hover: #1f1f1f;
  --btn-text: #ffffff;
  --btn-ghost-bg: #ffffff;
  --btn-ghost-border: #e5e7eb;
  --btn-ghost-text: #000000;
  --btn-radius: 999px;
  --btn-font-weight: 600;
  --btn-transition: background 0.15s, border-color 0.15s, color 0.15s;

  /* Meta design tokens */
  --ink-deep: #0a1317;
  --ink: #1c1e21;
  --charcoal: #444950;
  --slate: #4b4c4f;
  --steel: #5d6c7b;
  --stone: #8595a4;
  --hairline: #ced0d4;
  --hairline-soft: #dee3e9;
  --canvas: #ffffff;
  --surface-soft: #f1f4f7;

  --r-xl: 16px;
  --r-xxl: 24px;
  --r-xxxl: 32px;
  --r-feature: 40px;
  --r-full: 100px;

  --s-base: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-xxxl: 40px;
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: -0.16px;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  display: inline-block;
  color: #000;
}

h1 {
  font-style: normal;
  font-size: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
  color: #000;
}

h2 {
  color: inherit;
  font-style: normal;
  font-size: 34px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

p {
  line-height: 1.5;
}

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

/* Canonical button — use everywhere */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--btn-font-weight);
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: var(--btn-transition);
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  border-color: var(--btn-bg);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
  border-color: var(--btn-bg-hover);
  color: var(--btn-text);
}

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  border-color: var(--btn-ghost-border);
}

.btn--ghost:hover {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-text);
}

.btn--sm {
  padding: 6px 14px;
  font-size: 12px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 30px;
}

.container.wide {
  max-width: 1280px;
}

.hero-card {
  padding: 80px var(--s-xxxl) 16px;
  border-radius: var(--r-xxxl);
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  gap: 32px;
}

.hero-card .contact {
  margin-top: 28px;
  margin-bottom: 0;
}

.hero-flavor {
  align-self: end;
}

.hero-flavor {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 280px;
  margin-left: auto;
}

#flake-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 6000;
}

/* Static decorative flake pile that sits below the shakers (right side).
   Sits just above the first project card so the card visually "holds" it. */
.flake-pile-wrap {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 32px;
  padding: 0 var(--s-xxxl);
  margin-top: -32px;
  margin-bottom: 0;
}

.flake-pile {
  grid-column: 2;
  display: block;
  width: 100%;
  max-width: 320px;
  height: 70px;
  margin-left: auto;
}

.flake-pile-wrap + .card {
  margin-top: 0;
}

@media only screen and (max-width: 800px) {
  .flake-pile-wrap {
    grid-template-columns: 1fr;
    padding: 0 var(--s-lg);
  }
}

.hero-flavor .shaker {
  position: absolute;
  height: auto;
  display: block;
  --r1: -6deg;
  --r2: 5deg;
  --r3: -4deg;
  --y1: -4px;
  --y3: -2px;
  --shake-duration: 440ms;
  transform-origin: 50% 90%;
  transition: filter 150ms ease-out;
}

.hero-flavor .shaker--care {
  width: 28%;
  top: 80px;
  left: 18%;
  transform: rotate(-14deg);
  z-index: 1;
}

.hero-flavor .shaker--curious {
  width: 30%;
  top: 0;
  right: 20%;
  transform: rotate(12deg);
  z-index: 2;
}

.hero-flavor .shaker.is-shaking {
  animation: flavor-shake var(--shake-duration) ease;
}

.hero-flavor .shaker--care.is-shaking {
  animation-name: flavor-shake-care;
}

.hero-flavor .shaker--curious.is-shaking {
  animation-name: flavor-shake-curious;
}

@keyframes flavor-shake-care {
  0%   { transform: rotate(-14deg) translateY(0); }
  25%  { transform: rotate(calc(-14deg + var(--r1))) translateY(var(--y1)); }
  50%  { transform: rotate(calc(-14deg + var(--r2))) translateY(0); }
  75%  { transform: rotate(calc(-14deg + var(--r3))) translateY(var(--y3)); }
  100% { transform: rotate(-14deg) translateY(0); }
}

@keyframes flavor-shake-curious {
  0%   { transform: rotate(12deg) translateY(0); }
  25%  { transform: rotate(calc(12deg + var(--r1))) translateY(var(--y1)); }
  50%  { transform: rotate(calc(12deg + var(--r2))) translateY(0); }
  75%  { transform: rotate(calc(12deg + var(--r3))) translateY(var(--y3)); }
  100% { transform: rotate(12deg) translateY(0); }
}

@media only screen and (max-width: 800px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 32px var(--s-lg) 16px;
  }
  .hero-flavor {
    display: none;
  }
  .section-head {
    margin: 40px 0 16px;
    padding: 0 var(--s-lg);
  }
  .section-title {
    font-size: 22px;
  }
}

.hero-card .header p {
  font-size: 18px;
  line-height: 2;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

@media only screen and (max-width: 800px) {
  .container {
    padding: 10px 15px;
  }
  h1 {
    font-size: 34px;
  }
  h2 {
    font-size: 28px;
  }
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearf:after,
.clearf:before {
  content: ' ';
  display: block;
  clear: both;
}

.per-48,
.per-04 {
  display: block;
  position: relative;
  min-height: 1px;
  float: left;
}

.per-48 {
  width: 47.5%;
}

.per-04 {
  width: 5%;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10 {
  display: block;
  position: relative;
  min-height: 1px;
  float: left;
}

.col-1 {
  width: 10%;
}

.col-2 {
  width: 20%;
}

.col-3 {
  width: 30%;
}

.col-4 {
  width: 40%;
}

.col-5 {
  width: 50%;
}

.col-6 {
  width: 60%;
}

.col-7 {
  width: 70%;
}

.col-8 {
  width: 80%;
}

.col-9 {
  width: 90%;
}

.col-9 {
  width: 100%;
}



.cat-display {
  width: 100%;
  transition: 600ms;
  transition-timing-function: ease;
}

html:not([data-scroll='0']) .top-nav {
  position: fixed;
  top: 0;
}

.top-nav {
  position: fixed;
  width: 100%;
  transition: transform 350ms ease, border-color 200ms ease, background 1000ms;
  background: white;
  backdrop-filter: blur(10px);
  z-index: 5555;
  border-bottom: 1px solid transparent;
  will-change: transform;
}

/* Light divider only once scrolled past the top (not at the very top). */
.top-nav.is-scrolled {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.top-nav.is-hidden {
  transform: translateY(-100%);
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  max-width: 1280px;
}

.top-nav .container a {
  height: fit-content;
}

.top-nav .home img {
  width: 32px;
  height: auto;
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
}

@media only screen and (max-width: 800px) {
  .top-nav .container {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .top-nav .tabs {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 4px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 12px;
  }

  .top-nav.is-open .tabs {
    display: flex;
  }

  .top-nav .tabs > a {
    margin-left: 0;
    padding: 12px 16px;
    font-size: 16px;
  }
}

/* Animated Y . H pixel logo */
.top-nav .yh-logo {
  position: relative;
  width: 31px;
  height: 31px;
  display: inline-block;
}

.top-nav .yh-logo .yh-block {
  position: absolute;
  width: 9px;
  height: 9px;
  background: #000;
  transition: opacity 0.1s linear;
  opacity: 0;
}

.top-nav > .container > .tabs > a {
  margin-left: 10px;
}

.contact {
  margin-top: 28px;
  position: relative;
  left: -14px;
  align-items: center;
  /* display: flex; */
}

.contact > * {
  margin-right: 8px;
}

.item {
  padding: 6px 14px;
  display: inline-block;
  color: black;
  font-size: 18px;
  text-decoration: none;
  border-radius: var(--btn-radius);
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.top-nav .current {
  border-bottom-color: #13184e;
  border-bottom-style: solid;
  border-bottom-width: 3px;
}

.item:hover {
  color: #000;
  background-color: #f1f5f9;
}

.item > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.item .ph {
  font-size: 1.1em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.top-nav {
  z-index: 5555;
}

/* .top-nav .item {
  margin: 0 8px;
  padding: 2px 0;
  display: inline-block;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.top-nav .item:hover {
  color: #413f53;
  transition: color 200ms;
} */

/* Homepage closing thank-you section */
.thanks {
  text-align: center;
  padding: 120px 20px 80px;
  background: #f8fafc;
}

.thanks .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 640px;
  margin: 0 auto;
}

.thanks-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 0 32px;
}

.thanks-title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #0f172a;
}

.thanks-sub {
  font-size: 16px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 480px;
}

.thanks .btn {
  font-size: 14px;
}

@media only screen and (max-width: 800px) {
  .thanks {
    padding: 80px 20px 60px;
  }

  .thanks-title {
    font-size: 26px;
  }
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0 30px;
  max-width: 1280px;
  color: #000000;
  font-weight: 380;
  font-size: 15px;
}

footer > * {
  margin: 10px 0;
}

@media only screen and (max-width: 800px) {
  footer {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #000000;
    font-weight: 380;
    font-size: 15px;
  }
}

.sns > a {
  opacity: 1;
}

.sns > a:hover {
  opacity: 0.9;
}
.title-pic {
  margin-top: 50px;
  margin-left: 10px;
  margin-right: 70px;

  float: right;
}

.cat-display {
  margin-bottom: 50px;
}


.resume {
  display: block;
  margin: 0 auto;
}

.title {
  position: absolute;
  z-index: -1;
  display: block;
  margin-bottom: 50px;
}

.mask {
  z-index: 5;
  /* transition: 200ms; */
  opacity: 0;
  display: block;
  margin-bottom: 50px;
}

.mask:hover {
  opacity: 100%;
}

.works-title {
  text-align: center;
  margin: 0 auto;
  padding-right: 60px;
  margin-bottom: 0;
}

.selected-work {
  margin-bottom: 100px;
}

.two-to-one {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.one-to-two {
  display: grid;
  grid-template-columns: 1fr 2fr;
  margin-bottom: 20px;
}
.two-to-three {
  display: grid;
  grid-template-columns: 2fr 3fr;
  margin-bottom: 10px;
}

.three-to-two {
  display: grid;
  grid-template-columns: 3fr 2fr;
}

.chunk-left {
  margin-top: 10px;
  margin-right: 0;
  margin-bottom: 10px;
  margin-left: 10px;
}

.more-picture {
  margin: 40px 40px;
}

.more-explanation {
  font-size: 24px;
  font-weight: 700;
  padding: 20px;
}

.align-center {
  text-align: center;
  margin: 0 auto;
}

img.align-center {
  display: block;
  margin: 0 auto;
}

.padding-right-30 {
  padding-right: 30px;
}

.padding-left-30 {
  padding-left: 30px;
}
.padding-top-60 {
  padding-top: 60px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.one-to-two {
  display: grid;
  grid-template-columns: 1fr 2fr;
}

.one-to-one {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.chunk-left {
  margin-right: 22px;
}

.my-photo {
  padding-right: 30px;
}

mark {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 60%, #a6d9e3 60%);
  height: 5px;
  background-position: bottom 50px;
}

.highlight {
  margin-top: 20px;
  margin-bottom: 60px;
  font-style: normal;
  font-size: 26px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

.intext-link {
  font-style: italic;

  display: inline-block;
  color: #000;
}

.white-text {
  color: #fff;
}

.headline {
  font-style: normal;
  font-size: 48px;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  color: #000;
}

.padding-bottom-30 {
  padding-bottom: 30px;
}

.padding-bottom-60 {
  padding-bottom: 60px;
}

.index-add-margin {
  margin-bottom: 50px;
}

button > span {
  position: relative;
  z-index: 1;
}
button.swipe-overlay {
  padding: 10px 20px;
  border-radius: 2px;
  border-width: 2px;
  border-style: solid;
  font-size: 18px;
  font-family: var(--font-sans);
  cursor: pointer;
  /* transition: 0.25s ease; */
  color: #000;
  border-color: #000;
  background: transparent;
}

button.swipe-overlay > span > img {
  filter: invert(3%) sepia(95%) saturate(3964%) hue-rotate(233deg)
    brightness(105%) contrast(106%);
}

button.swipe-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: #000;
  width: 150%;
  padding-top: 150%;
  transition: 0.25s ease;
}

button.swipe-overlay::after {
  transform: rotate(45deg);
  top: -100%;
  left: -190%;
}

button.swipe-overlay {
  position: relative;
  overflow: hidden;
}
button.swipe-overlay:hover {
  color: #fff;
}

button.swipe-overlay:hover > span > img {
  filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(47deg)
    brightness(117%) contrast(117%);
}

button.swipe-overlay:hover:after {
  left: -30%;
}

button.swipe-overlay {
  padding: 10px 20px;
  border-radius: 2px;
  border-width: 2px;
  border-style: solid;
  font-size: 18px;
  font-family: var(--font-sans);
  cursor: pointer;
  /* transition: 0.25s ease; */
  color: #000;
  border-color: #000;
  background: transparent;
}

button.swipe-overlay-light::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  width: 180%;
  padding-top: 180%;
  transition: 0.25s ease;
}

button.swipe-overlay-light::after {
  transform: rotate(60deg);
  top: -100%;
  left: -190%;
}

button.swipe-overlay-light {
  position: relative;
  overflow: hidden;
}
button.swipe-overlay-light:hover {
  color: #000;
}
button.swipe-overlay-light:hover:after {
  left: -30%;
}

button.swipe-overlay-light {
  padding: 10px 20px;
  border-radius: 2px;
  border-width: 2px;
  border-style: solid;
  font-size: 18px;
  font-family: var(--font-sans);
  cursor: pointer;
  /* transition: 0.25s ease; */
  color: #fff;
  border-color: #fff;
  background: transparent;
}

.header {
  max-width: 800px;
}

@media only screen and (max-width: 800px) {
  .flavor {
    max-height: none;
    max-width: 240px;
    z-index: -1;
    opacity: 100%;
    bottom: -40px;
  }

  .intro {
    padding-bottom: 48px;
  }
}

.card {
  margin: 32px 0;
  display: grid;
  border-radius: var(--r-xxxl);
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.1) 100%);
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.card,
.half-card {
  transform-origin: 50% 50%;
}

.card:hover,
.half-card:hover {
  transform: translateY(-4px);
}

body.is-scrolling .card:hover,
body.is-scrolling .half-card:hover {
  transform: none;
  box-shadow: none;
}

body.is-scrolling .card:hover .card-btn::before {
  transform: translateX(-130%) skewX(-20deg);
}

body.is-scrolling .card:hover .card-btn {
  color: var(--btn-color);
}

.card-header {
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

/* When .card-header sits at the top of the card (above the image+text grid) */
.card > .card-header {
  padding: 28px 40px 0;
  margin-bottom: 0;
  box-sizing: border-box;
}

/* Same pattern but for half-cards (light bg, dark text) */
.half-card > .card-header {
  padding: 24px 24px 0;
  margin-bottom: 0;
  box-sizing: border-box;
  color: #0f172a;
}

.half-card > .card-header .card-meta-title {
  color: #0f172a;
}

.half-card > .card-header .card-meta-year {
  color: #64748b;
}

.card-header > img {
  flex-shrink: 0;
}

.card-header .card-meta {
  text-align: right;
  font-size: 15px;
  line-height: 1.4;
}

.card-header .card-meta-title {
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.005em;
}

.card-header .card-meta-year {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* HXT has no brand logo — meta block takes the full row */
.card.bg-hxt .card-header {
  justify-content: flex-start;
}

.card.bg-hxt .card-header .card-meta {
  text-align: left;
}

/* All big cards: image-left, text-right for consistency */
.card > .grid-of-two {
  grid-template-columns: 2fr 1fr;
}

.card > .grid-of-two > .card-text {
  order: 2;
}

.card > .grid-of-two > .card-img {
  order: 1;
  padding-right: 0;
  padding-left: 40px;
}

.card.bg-hxt > .grid-of-two > .card-img {
  padding-left: 0;
}

@media only screen and (max-width: 800px) {
  .card > .grid-of-two {
    grid-template-columns: 1fr;
  }

  /* Mobile stack: eyebrow (card-header) → photo → title/description/button.
     Padding is unified for all big cards in a later block (after the per-card
     .bg-* padding rules) so it isn't clobbered by source order. */
  .card > .grid-of-two > .card-img {
    order: 1;
  }

  .card > .grid-of-two > .card-text {
    order: 2;
  }
}

.grid-of-two > .card-img {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0;
}

/* Big-card image zoom on hover. The card has overflow:hidden so the scaled
   background is cropped cleanly to the card bounds. */
.card > .grid-of-two > .card-img {
  transition: transform 250ms ease-out;
  will-change: transform;
}

.card:hover > .grid-of-two > .card-img {
  transform: scale(1.05);
}

.title-lock {
  font-size: 0.85em;
  opacity: 0.7;
}

.half-card-text {
  padding: var(--s-xxl);
}

/* Eyebrow label — small uppercase company name above the title */
.card-eyebrow {
  padding: var(--s-xxl) var(--s-xxl) 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Hide the company/year eyebrow on small (half) cards */
.half-card > .card-eyebrow {
  display: none;
}

.card-eyebrow .eyebrow-company {
  color: #0f172a;
}

.card-eyebrow .eyebrow-year {
  color: #64748b;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Award badge — sits absolutely in the top-right; doesn't shift card content.
   For badged cards, company + year flow together on the left so the badge
   has the right column to itself. */
.half-card.has-badge .card-eyebrow,
.half-card.has-badge .half-card-text {
  padding-right: 80px;
}

.half-card.has-badge .card-eyebrow {
  justify-content: flex-start;
  gap: 8px;
}

.half-card.has-badge .card-eyebrow .eyebrow-year::before {
  content: "·";
  margin-right: 8px;
  color: #94a3b8;
}

.card-award {
  position: absolute;
  top: var(--s-xxl);
  right: var(--s-xxl);
  height: 48px;
  width: auto;
  display: block;
  z-index: 1;
}

.card-award[src*="fastcompany"] {
  height: 72px;
}


/* Condensed half-card title — bold title flowing inline with description */
.half-card-text h2 {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  padding: 0;
  letter-spacing: -0.005em;
}


.half-card-text p {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  color: #475569;
}

.card-text > * {
  color: black;
}

.card-text {
  padding: var(--s-xxxl);
  height: 560px;
  box-sizing: border-box;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.card-text > .mid-align {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

.card-text > .mid-align > .app-badges {
  position: absolute;
  bottom: 0;
  left: 0;
}

.mid-align {
  line-height: 1.5;
  display: block;
}

.mid-align > * {
  position: relative;
}

.card-text > .mid-align > * {
  color: #fff;
  position: relative;
}

@media only screen and (max-width: 800px) {
  .card-text {
    padding: 20px;
    height: auto;
    line-height: 1.5;
  }

  .card-text .mid-align h2 {
    font-size: 24px;
  }

  /* Drop the role/year meta in the big-card header on mobile — keep the logo. */
  .card > .card-header .card-meta {
    display: none;
  }

  /* Breathing room between the eyebrow (logo) and the image. */
  .card > .card-header {
    padding: 24px 20px 16px;
  }

  .card-text > .mid-align > * {
    top: 0;
  }

  .half-card-text {
    padding: 20px;
  }

  .card-eyebrow {
    padding: 20px 20px 0;
  }
}

.card-img {
  position: relative;
  height: 560px;
  padding-right: 40px;
  box-sizing: border-box;
  background-origin: content-box;
  background-clip: content-box;
}

@media only screen and (max-width: 800px) {
  .card-img {
    position: relative;
    height: 300px;
    padding: 0 32px;
  }

  .grid-of-two > .card-img {
    background-size: contain;
  }

  /* Big cards: derive the image-area height from each image's native aspect
     ratio (instead of a fixed 300px) so the full mockup shows without
     cropping or excess letterboxing — same idea as the square small cards. */
  .card > .grid-of-two > .card-img {
    height: auto;
  }
  .bg-cloudflare > .grid-of-two > .card-img { aspect-ratio: 2239 / 1349; }
  .bg-AI > .grid-of-two > .card-img { aspect-ratio: 1364 / 998; }
  .bg-pro > .grid-of-two > .card-img { aspect-ratio: 1443 / 1015; }
  .bg-lexio > .grid-of-two > .card-img { aspect-ratio: 2082 / 1486; }
  .bg-crcr > .grid-of-two > .card-img { aspect-ratio: 1935 / 1531; }
}

read-btn {
  display: inline-block;
}

.mid-align h2 {
  margin: 0 0 8px;
}

.mid-align p {
  margin: 0 0 16px;
}

.mid-align .card-btn {
  margin: 0;
}

.card-btn {
  --btn-color: #fff;
  --btn-fill: #fff;
  --btn-hover-color: var(--ink-deep);

  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--btn-color);
  background-color: transparent;
  border: 2px solid var(--btn-color);
  border-radius: var(--r-full);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.14px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 150ms ease-out;
}

.card-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  height: 100%;
  background-color: var(--btn-fill);
  transform: translateX(-130%) skewX(-20deg);
  transition: transform 150ms ease-out;
  z-index: -1;
}

.bg-bubble .card-btn,
.bg-crcr .card-btn,
.bg-hxt .card-btn,
.bg-light .card-btn,
.bg-trip .card-btn,
.bg-roof .card-btn,
.half-card.bg-nokia .card-btn,
.half-card.bg-ticket .card-btn,
.half-card.bg-sase .card-btn,
.half-card.bg-vcc .card-btn,
.half-card.bg-yf .card-btn,
.half-card.bg-contact .card-btn {
  --btn-color: #000;
  --btn-fill: #000;
  --btn-hover-color: #fff;
}

.card.bg-bubble:hover .card-btn,
.card.bg-crcr:hover .card-btn,
.card.bg-hxt:hover .card-btn,
.card.bg-light:hover .card-btn,
.card.bg-trip:hover .card-btn,
.card.bg-roof:hover .card-btn,
.half-card.bg-bubble:hover .card-btn,
.half-card.bg-crcr:hover .card-btn,
.half-card.bg-hxt:hover .card-btn,
.half-card.bg-light:hover .card-btn,
.half-card.bg-trip:hover .card-btn,
.half-card.bg-roof:hover .card-btn {
  color: #fff;
}

.card:hover .card-btn,
.half-card:hover .card-btn,
.card-btn:hover {
  color: var(--btn-hover-color);
}

.card:hover .card-btn::before,
.half-card:hover .card-btn::before,
.card-btn:hover::before {
  transform: translateX(0) skewX(-20deg);
}

.logo-box {
  display: flex;

  justify-content: flex-end;
}

@media only screen and (max-width: 800px) {
  .logo-box {
    display: flex;

    justify-content: flex-end;

    padding: 20px 20px;
  }
}



.bg-cloudflare {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-cloudflare > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/cf-new.png');
  background-size: 100%;
  background-position: 50% 50%;
  padding: 40px;
}

.bg-cloudflare > .card-text > * {
  color: white;
}

.bg-AI {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-AI > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/AI-canvas-bright.png?v=2');
  background-size: contain;
  padding: 40px;
}

.bg-sase {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-sase > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/sase-mock.png');
}

.bg-naas {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-naas > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/naas.png');
}

.bg-naas > .card-text > * {
  color: white;
}

.bg-pro {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
  cursor: pointer;
}

.bg-pro > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/pro-new.png');
  padding: 40px;
}

.bg-pro > .card-text > * {
  color: white;
}
.bg-vcc {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-vcc > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/vcc-select.png');
  background-position: 50% 100%;
  background-size: contain;
}

.bg-vcc > .card-text > * {
  color: white;
}

.bg-lexio {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-lexio > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/lexio-high.png');
}

.bg-lexio > .card-text > a > * {
  color: white;
}

.bg-bubble {
  background-color: #f9f9fb;
}

.bg-bubble > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/bubble.png');
}
.bg-bubble > .grid-of-two > .card-text > .mid-align > * {
  color: #000;
}

.bg-crcr {
  background-color: #f9f9fb;
}

/* Fidelity Cafe big card — dark gradient like other featured projects */
.card.bg-crcr {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.card.bg-crcr > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/cr-new.png');
}

.bg-nokia {
  background-color: #14264a;
}

.bg-nokia > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/nokia.png');
}

.bg-nokia > .card-text > * {
  color: white;
}

.bg-hxt {
  background-color: #f9f9fb;
}

.bg-hxt > .grid-of-two > .card-img {
  background-image: url('../../assets/img/htx/HXT-img-01.jpg');
  background-size: cover;
  background-position: center;
  padding-right: 0;
}

.bg-hxt > .grid-of-two > .card-text > .mid-align > * {
  color: #000;
}

.bg-ticket {
  background-color: #14264a;
}

.bg-ticket > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/ticket.png');
}

.bg-ticket > .card-text > * {
  color: white;
}



.bg-light {
  background-color: #f9f9fb;
}

.bg-light > .card-text > * {
  color: #000;
}


.bg-trip {
  background-color: #f9f9fb;
}

.bg-trip > .card-text > * {
  color: #000;
}

.bg-roof {
  background-color: #f9f9fb;
  cursor: pointer;
}
.bg-roof > .card-text > * {
  color: #000;
}

/* All half-cards share the light gray surface (set on .half-card).
   Wipe inherited dark-gradient backgrounds from big-card .bg-X defaults. */
.half-card.bg-sase,
.half-card.bg-vcc,
.half-card.bg-yf,
.half-card.bg-nokia,
.half-card.bg-crcr,
.half-card.bg-bubble,
.half-card.bg-ticket,
.half-card.bg-stool,
.half-card.bg-light,
.half-card.bg-trip,
.half-card.bg-roof,
.half-card.bg-hxt {
  background: linear-gradient(180deg, #fafbfc 25%, #f3f4f7 100%);
}

/* Contact CTA card — dark gradient matching big project cards, image-first layout */
.half-card.bg-contact {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
  padding: var(--s-xxl);
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;
  /* Not square — size to content so nothing gets cropped (esp. on mobile) */
  aspect-ratio: auto;
  overflow: visible;
}

.contact-avatar {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.half-card.bg-contact .contact-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.half-card.bg-contact .contact-body h2 {
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.half-card.bg-contact .contact-body p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 15px;
}

/* Contact card CTA — solid white pill, distinct from the ghost circle arrows. */
.contact-resume {
  margin-top: 8px;
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.contact-resume:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
  color: #0f172a;
}

.contact-resume i {
  font-size: 1.05em;
  line-height: 1;
}

/* Social icon links on the contact card */
.contact-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.contact-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 18px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.contact-socials a:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0f172a;
}

/* Reusable card CTA: white-outline ghost button with slide-in fill on card hover.
   Use inside .card or .half-card.bg-contact on dark backgrounds. */
.card-cta {
  margin-top: 8px;
  background: transparent;
  border-color: #ffffff;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  right: -20%;
  height: 100%;
  background-color: #ffffff;
  transform: translateX(-130%) skewX(-20deg);
  transition: transform 150ms ease-out;
  z-index: -1;
}

.card:hover .card-cta,
.half-card.bg-contact:hover .card-cta {
  background: transparent;
  border-color: #ffffff;
  color: #0f172a;
}

.card:hover .card-cta::before,
.half-card.bg-contact:hover .card-cta::before {
  transform: translateX(0) skewX(-20deg);
}

/* On mobile, collapse the big-card "Read the Story" pill into a circular
   icon button (white circle, dark glyph) to match the small-card style. */
@media only screen and (max-width: 800px) {
  .card .card-cta {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
    font-size: 0;
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
    overflow: visible;
  }

  /* On press/hover, fill white with a dark glyph so it stays legible. */
  .card .card-cta:hover,
  .card:hover .card-cta {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f172a;
  }

  /* Drop the inherited side margin so the circle's right gap matches its
     bottom gap (both = the 20px card-text padding). */
  .card > .grid-of-two > .card-text {
    margin: 0;
  }

  /* Reserve room below the description so the pinned circle doesn't overlap. */
  .card .card-text > .mid-align {
    padding-bottom: 60px;
  }

  .card .card-cta i,
  .half-card.bg-contact .card-cta i {
    font-size: 18px;
    line-height: 1;
  }

  .card .card-cta::before,
  .half-card.bg-contact .card-cta::before {
    display: none;
  }
}

.half-card.bg-hxt {
  cursor: pointer;
}

.bg-yf {
  background: linear-gradient(135deg, #2b2d2f, #0e141a);
}

.bg-yf > .grid-of-two > .card-img {
  background-image: url('../../assets/img/index/yofish-flat.png');
  background-position: 50% 100%;
  background-size: auto 85%;
}

.bg-yf > .card-text > * {
  color: white;
}

/* Unified mobile image padding for ALL big cards.
   Placed after every per-card .bg-* padding rule so equal-specificity
   source order resolves in its favor — keeps padding consistent
   regardless of which card sets a desktop padding above. */
@media only screen and (max-width: 800px) {
  .card > .grid-of-two > .card-img {
    padding: 8px 12px;
  }
}

.half-card-img {
  height: 160px;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 48px 0;
  padding: 0 var(--s-xxxl);
}


.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0f172a;
}

.section-title .dots {
  display: inline-block;
  min-width: 1.2em;
  text-align: left;
  letter-spacing: 0.05em;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.section-emoji {
  font-size: 32px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: transform 140ms ease-out, opacity 140ms ease-out;
}

.section-emoji.is-swapping {
  transform: scale(0.6) rotate(-12deg);
  opacity: 0;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--btn-ghost-border);
  border-radius: var(--btn-radius);
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: var(--btn-transition);
}

.filter-chip:hover {
  border-color: var(--btn-bg);
}

.filter-chip.is-active {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  color: var(--btn-text);
}

.half-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

@media only screen and (max-width: 800px) {
  .half-cards {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 16px 0;
  }

  .card {
    margin: 16px 0;
  }

  /* Single-column on mobile — drop the tall min-height so cards size to
     their content instead of leaving a big empty gap below the mock. */
  .half-card {
    min-height: 0;
  }

  .half-card.has-mock .half-card-img {
    padding: 0 var(--s-lg);
  }
}

.half-card {
  border-radius: var(--r-xxxl);
  background: linear-gradient(180deg, #fafbfc 25%, #f3f4f7 100%);
  border: none;
  box-shadow: none;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, background-size 150ms ease-out;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.half-card .half-card-img {
  flex: 1 1 auto;
}

/* Mock image area — top-aligned right under the text with minimal gap.
   Horizontal padding leaves room for the drop-shadow.
   No bottom padding/margin — image extends to the card's bottom edge and
   the .half-card's overflow:hidden naturally crops anything that runs off. */
.half-card.has-mock .half-card-img {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 var(--s-xxl);
  flex: 0 0 auto;
}

.half-card .card-mock {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* Shadow modifier — opt-in via .has-shadow on the half-card */
.half-card.has-shadow .card-mock {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.18));
}

/* Live-site iframe preview — fills the remaining card height below the text.
   pointer-events:none lets clicks fall through to the card's link. */
.half-card.has-embed .half-card-img {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 var(--s-xxl) var(--s-xxl);
}

/* Clipping frame: gives the rounded window + shadow and crops the scaled iframe. */
.half-card .embed-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* Render the page at ~2.5× the frame size, then scale down to 0.4 so the site
   shows its full desktop layout, just smaller. width/height = 1/scale keeps it
   responsive to the card's width. */
.half-card .card-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 250%;
  height: 250%;
  display: block;
  border: 0;
  background: #ffffff;
  transform: scale(0.4);
  transform-origin: 0 0;
  pointer-events: none;
}


/* Half-cards get a circular arrow icon in the bottom-right corner instead of a big button */
.half-card {
  position: relative;
}

.half-card .card-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--btn-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  background-color: #ffffff;
  color: var(--btn-color);
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
  overflow: visible;
  isolation: auto;
  gap: 0;
  z-index: 2;
}

.half-card .card-btn::before {
  display: none;
}

.half-card .card-btn .btn-arrow {
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.half-card .card-btn .btn-arrow i {
  display: block;
  line-height: 1;
}

.half-card:hover .card-btn,
.half-card .card-btn:hover {
  background-color: var(--btn-color);
  border-color: var(--btn-color);
  color: #fff;
}


.social-icons {
  position: relative;
  top: 8px;
}

@media only screen and (max-width: 800px) {
  .social-icons {
    visibility: collapse;
  }
}

.next-post {
  display: none;
}

.caption {
  margin-top: 10px;
  text-align: center;
  color: #888;
}

.download {
  display: inline-block;
}

.a-lexio > * {
  color: #fff;
}

.convo {
  display: flex;
  align-items: flex-end;
}

.item {
  display: inline-flex;
}
span > * {
  display: inline-block;
}
