@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;1,6..72,300;1,6..72,400&family=DM+Mono:wght@400;500&display=swap');

:root {
  --paper: #f4f4f5;
  --paper-2: #ececee;
  --card: #ededef;
  --cream: #fafafa;
  --ink: #1a1a1c;
  --ink-soft: #5a5a5f;
  --ink-mute: #9b9ba1;
  --line: #e4e4e7;
  --line-soft: #eeeef0;
  --blue: #2061E8;
  --blue-soft: #e8edfc;
  --grid-line: rgba(20, 20, 25, .06);
  --circle: #6f9eea;
  --nav-glass: rgba(255, 255, 255, .55);
  --nav-border: rgba(255, 255, 255, .5);
  --marker: #fde68a;
  --font-body: 'Newsreader', Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --radius: 14px;
  --nav-h: 58px;
}

html[data-theme="dark"] {
  --paper: #131316;
  --paper-2: #1c1c20;
  --card: #1d1d21;
  --cream: #232328;
  --ink: #f0f0f2;
  --ink-soft: #b0b0b8;
  --ink-mute: #76767e;
  --line: #2e2e34;
  --line-soft: #28282d;
  --blue: #6f97f5;
  --blue-soft: #1e2a4a;
  --grid-line: rgba(255, 255, 255, .04);
  --circle: #6f97f5;
  --nav-glass: rgba(30, 30, 34, .6);
  --nav-border: rgba(255, 255, 255, .08);
  --marker: #78350f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  transition: background .4s, color .4s
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(16px, 4vw, 48px)
}

.nav-inner {
  max-width: 1600px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 1px 4px rgba(20, 20, 25, .06)
}

.nav-pill a {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 9px;
  transition: color .2s, background .2s;
  white-space: nowrap
}

.nav-pill a:hover {
  color: var(--ink)
}

.nav-pill a.active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(20, 20, 25, .06)
}

.nav-pill .nav-brand {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -.3px;
  color: var(--ink-mute);
}

.nav-sep {
  width: 1px;
  height: 16px;
  background: var(--line);
  flex-shrink: 0;
  margin: 0 2px;
  opacity: .6
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 6px
}

.nav-ext {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink-mute);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 9px;
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--nav-border);
  box-shadow: 0 1px 4px rgba(20, 20, 25, .06);
  transition: color .2s, border-color .2s
}

.nav-ext:hover {
  color: var(--ink);
  border-color: var(--ink-mute)
}

.theme-btn {
  width: 40px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--nav-border);
  background: var(--nav-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 4px rgba(20, 20, 25, .06);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color .2s;
  color: var(--ink-mute)
}

.theme-btn:hover {
  border-color: var(--ink-mute);
  color: var(--ink)
}

.theme-btn svg {
  width: 16px;
  height: 16px;
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1)
}

.theme-btn:hover svg {
  transform: rotate(25deg)
}

/* ===== LAYOUT ===== */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 84px) clamp(16px, 4vw, 48px) 60px
}

section {
  margin-bottom: clamp(56px, 8vw, 96px)
}

/* ===== TYPOGRAPHY ===== */
.idx-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px
}

.idx-label .rom {
  color: var(--blue);
  font-weight: 500
}

.idx-label .idx-line {
  width: 20px;
  height: 1px;
  background: var(--line);
  display: inline-block
}

.two-tone {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -.8px;
  font-size: clamp(30px, 5.2vw, 54px);
  line-height: 1.08
}

.two-tone .dim {
  color: var(--ink-mute)
}

.lede {
  margin-top: 20px;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
  max-width: 52ch;
  line-height: 1.5
}

/* ===== BUTTONS ===== */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 460;
  letter-spacing: -.1px;
  padding: 10px 15px;
  border-radius: 11px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s
}

.btn:hover {
  transform: translateY(-1px)
}

.btn-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.22, 1, .36, 1)
}

.btn:hover .btn-ico {
  transform: translate(2px, -2px)
}

.btn-dark {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(20, 20, 25, .2)
}

.btn-dark:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 7px 18px rgba(20, 20, 25, .18)
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line)
}

.btn-ghost:hover {
  border-color: var(--ink-mute);
  box-shadow: 0 7px 18px rgba(20, 20, 25, .07)
}

.btn-tint {
  background: var(--blue-soft);
  color: var(--blue);
  border-color: rgba(32, 97, 232, .2)
}

/* ===== PILLS ===== */
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 6px rgba(20, 20, 25, .06), 0 0 0 0 rgba(20, 20, 25, .02)
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0
}

.pill .dot.live {
  background: #3dbb5d;
  animation: ping 2s infinite
}

.pill .dot.idle {
  background: #f5bd4f
}

.pill .dot.off {
  background: #3DBCF0
}

.pill b {
  color: var(--ink);
  font-weight: 500
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 6px rgba(61, 187, 93, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(61, 187, 93, 0)
  }
}

/* ===== FEATURES ===== */
.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0
}

.feat {
  padding: 4px 26px;
  border-left: 1px solid var(--line)
}

.feat:first-child {
  padding-left: 0;
  border-left: none
}

.feat p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft)
}

.feat p strong {
  color: var(--ink);
  font-weight: 600
}

/* ===== GRID SECTION + FOLDER CARDS ===== */
.grid-section {
  position: relative;
  padding: clamp(60px, 7vw, 100px) clamp(24px, 4vw, 48px) clamp(50px, 6vw, 80px)
}

.grid-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black 30%, transparent 80%)
}

.grid-section>* {
  position: relative;
  z-index: 1
}

a.folder-wrap { text-decoration: none; color: inherit; display: block; }

.folder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-top: 40px
}

.folder-wrap:nth-child(3n+2) {
  margin-top: 50px
}

.folder-wrap:nth-child(3n+3) {
  margin-top: 26px
}

.folder {
  position: relative
}

.folder-card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 14px;
  box-shadow: 0 6px 18px rgba(20, 20, 25, .05);
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s;
  will-change: transform
}

.folder-wrap:hover .folder-card {
  transform: translateY(-80px);
  box-shadow: 0 32px 60px rgba(20, 20, 25, .16)
}

.folder-pocket {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--paper) 50%, transparent);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  pointer-events: none
}

.fc-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -.3px;
  line-height: 1.2
}

.fc-title .fc-sub {
  color: var(--ink-mute)
}

.fc-div {
  height: 1px;
  background: var(--line);
  margin: 14px 0 12px
}

.fc-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px
}

.fc-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center
}

.fc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.fc-thumb span {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--ink-mute);
  font-size: 15px
}

.fc-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-mute)
}

.folder-read {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-mute);
  text-decoration: none;
  transition: color .3s
}

.folder-read svg {
  width: 13px;
  height: 13px;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1)
}

.folder-wrap:hover .folder-read {
  color: var(--ink)
}

.folder-wrap:hover .folder-read svg {
  transform: translateX(4px)
}

/* ===== WORD SEARCH ===== */
.ws-head {
  text-align: center;
  margin-bottom: 38px
}

.ws-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .04em;
  margin-top: 16px
}

.ws-stage {
  position: relative;
  max-width: 900px;
  margin: 0 auto
}

.ws-ink {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible
}

.ws-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px 4px;
  grid-template-columns: repeat(13, minmax(0, 1fr))
}

.cell {
  font-family: var(--font-mono);
  font-size: clamp(16px, 3vw, 22px);
  color: var(--ink-mute);
  text-align: center;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .35s ease;
  cursor: default;
  user-select: none
}

.cell[data-w] {
  cursor: pointer
}

.cell.lit {
  color: var(--ink)
}

/* ===== FOOTER ===== */
.site-foot {
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 80px
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px)
}

.foot-brand {
  font-family: var(--font-body);
  font-size: 22px;
  letter-spacing: -.3px;
  margin-bottom: 12px
}

.foot-p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 36ch
}

.foot-heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px
}

.foot-links {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.foot-links a {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s;
  width: fit-content
}

.foot-links a:hover {
  color: var(--ink)
}

.foot-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 10px
}

.foot-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3dbb5d;
  flex-shrink: 0
}

.foot-copy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute)
}

.colophon {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px
}

.colophon span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-mute);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(48px, 8vw, 100px)
}

.about-editorial {
  position: relative;
  max-width: 800px;
  margin: 0 auto
}

.about-editorial p {
  font-family: var(--font-ui);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px
}

.about-editorial p strong {
  color: var(--ink);
  font-weight: 500;
  font-size: 24px
}

.mark {
  background: linear-gradient(to top, var(--marker) 40%, transparent 40%);
  padding: 0 3px;
  border-radius: 2px
}

.about-editorial .script-word {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.4em;
  letter-spacing: -.02em;
  color: var(--ink)
}

/* floating objects around text */
.float-obj {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1)
}

.float-obj img {
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 20, 25, .1)
}

.float-obj.no-shadow img {
  box-shadow: none;
  border-radius: 0
}

.exp-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line)
}

.exp-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  min-width: 72px;
  padding-top: 2px
}

.exp-role {
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--ink);
  font-weight: 500
}

.exp-place {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 2px
}

/* ===== PROJECTS PAGE ===== */
.proj-section {
  margin-bottom: clamp(56px, 8vw, 80px)
}

.proj-section-head {
  margin-bottom: 32px
}

.proj-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.proj-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .3s
}

.proj-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 20, 25, .1)
}

.proj-card-media {

  background: var(--paper-2);

  overflow: hidden;

}

.proj-card-media img {
  width: 100%;
  height: auto;
  display: block;
}

.proj-card:hover .proj-card-media img {
  transform: scale(1.04)
}

.proj-card-body {
  padding: 18px 20px
}

.proj-card-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -.3px;
  margin-bottom: 6px
}

.proj-card-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55
}

.proj-card-foot {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--ink-mute);
  background: var(--paper)
}

/* ===== RESPONSIVE ===== */
@media(max-width:860px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 20px
  }

  .feat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding: 18px 0 0
  }

  .feat:first-child {
    border-top: none;
    padding-top: 0
  }

  .folder-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px
  }

  .folder-wrap:nth-child(3n+2),
  .folder-wrap:nth-child(3n+3) {
    margin-top: 0
  }

  .folder-wrap:nth-child(even) {
    margin-top: 40px
  }

  .foot-grid {
    grid-template-columns: 1fr
  }

  .proj-row {
    grid-template-columns: 1fr
  }

  .float-obj {
    display: none
  }
}

@media(max-width:560px) {
  .folder-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .folder-wrap:nth-child(even) {
    margin-top: 0
  }

  .nav-pill a {
    padding: 7px 10px;
    font-size: 13px
  }
}

@media(prefers-reduced-motion:reduce) {
  .pill .dot.live {
    animation: none
  }

  * {
    transition: none !important
  }
}

a:focus-visible,
.btn:focus-visible,
.theme-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px
}


/* ===== SHOWCASE BANNER (full-bleed) ===== */
.banner {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 60px) clamp(60px, 8vw, 110px);
  background: linear-gradient(180deg, #b8d4f0 0%, #c8ddf3 20%, #dce8f6 50%, #edf1f6 75%, var(--paper) 100%);
  overflow: hidden;
}

html[data-theme="dark"] .banner {
  background: linear-gradient(180deg, #1a2e52 0%, #192844 20%, #171f34 50%, #151a28 75%, var(--paper) 100%);
}

.banner-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center
}

.banner-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(26px, 4.5vw, 44px);
  letter-spacing: -.6px;
  line-height: 1.12;
  margin-bottom: 10px
}

.banner-title .dim {
  color: var(--ink-mute)
}

.banner-features {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 28px auto 40px;
  max-width: 760px
}

.banner-feat {
  flex: 1;
  padding: 0 24px;
  border-left: 1px solid rgba(0, 0, 0, .08);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
  text-align: left
}

.banner-feat:first-child {
  border-left: none;
  padding-left: 0
}

.banner-feat strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px
}



/* ===== WORD SEARCH — side illustrations ===== */
.ws-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 32px)
}

.ws-section .ws-stage {
  position: relative;
  z-index: 1;
  max-width: 820px;
  flex: 0 1 820px
}

.ws-illus {
  flex: 0 0 auto;
  width: clamp(180px, 20vw, 320px);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 0
}

.ws-illus-left {
  align-self: flex-start;
  margin-top: -20px
}

.ws-illus-right {
  align-self: flex-end;
  margin-bottom: -20px
}

/* ===== HOW I WORK — illustrations + text ===== */
.how-section {
  margin-top: clamp(40px, 6vw, 80px)
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  margin-top: 30px
}

.how-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px
}

/* side items: image on top, text below, slightly smaller */
.how-side .how-illus {
  width: clamp(180px, 20vw, 300px)
}

/* middle item: text on top, biggest image below */
.how-item-mid .how-illus {
  width: clamp(280px, 32vw, 460px)
}

.how-illus {
  height: auto;
  display: block
}

.how-text {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34ch
}

.how-text strong {
  color: var(--ink);
  font-weight: 600
}

@media(max-width:980px) {
  .ws-illus {
    display: none
  }
}

@media(max-width:860px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 48px
  }

  .how-side .how-illus,
  .how-item-mid .how-illus {
    width: 240px
  }
}

@media (max-width:860px){

    .grid-section{
        padding-top:4px;
    }

}

@media (max-width:860px){

  .how-grid{
      grid-template-columns:1fr;
      gap:48px;
  }

  .how-item,
  .how-side,
  .how-item-mid{
      display:flex;
      flex-direction:column;
      align-items:center;
      text-align:center;
  }

  .how-illus{
      order:1;
      margin-bottom:18px;
  }

  .how-text{
      order:2;
      max-width:32ch;
  }

}

@media (max-width:860px){
    .ws-illus{
        display:none;
    }
}
