@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #102d3c;
  --navy-soft: #19495a;
  --cyan: #39bad7;
  --cyan-light: #8ee4ec;
  --yellow: #ffe11a;
  --yellow-soft: #fff0a3;
  --orange: #ff7c35;
  --cream: #f7f5e9;
  --paper: #fffdf4;
  --ink: #123848;
  --line: rgba(18, 56, 72, 0.18);
  --shadow: 0 18px 0 rgba(18, 56, 72, 0.12), 0 28px 50px rgba(18, 56, 72, 0.14);
  --display: 'Outfit', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --mono: 'DM Mono', 'SFMono-Regular', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}

.page-shell { overflow: hidden; }

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 30px 38px;
}

.brand { align-items: center; display: inline-flex; flex: 0 0 auto; gap: 11px; white-space: nowrap; }
.brand-mark {
  align-items: center;
  background: var(--yellow);
  border: 2px solid var(--navy);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--navy);
  color: var(--navy);
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  letter-spacing: -0.08em;
  width: 67px;
}

.brand-name {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand-name em { color: var(--orange); font-size: 10px; font-style: normal; letter-spacing: 0.08em; }
.site-nav { align-items: center; display: flex; gap: 31px; }
.site-nav a { color: var(--navy-soft); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.site-nav a:hover { color: var(--orange); }
.site-nav .nav-x { background: var(--navy); border-radius: 999px; color: var(--yellow); padding: 10px 13px; }
.site-nav .nav-x:hover { color: var(--paper); }
.site-nav .nav-github { border-bottom: 1px solid var(--navy-soft); padding-bottom: 3px; }

.identity-strip {
  align-items: center;
  background: var(--navy);
  color: var(--paper);
  display: flex;
  gap: 13px;
  margin: 0 auto;
  max-width: 1164px;
  padding: 14px 21px;
}
.identity-strip-kicker { color: var(--yellow); font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; }
.identity-strip strong { color: var(--cyan-light); font-size: 18px; letter-spacing: -0.04em; }
.identity-strip-divider { color: rgba(247, 245, 233, 0.38); }
.identity-strip a { color: var(--yellow); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.04em; }
.identity-strip a:hover { color: var(--paper); }
.identity-strip-note { color: rgba(247, 245, 233, 0.55); font-family: var(--mono); font-size: 10px; margin-left: auto; }
.x-symbol { font-family: Arial, sans-serif; font-weight: 700; }

.hero {
  align-items: center;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 670px;
  padding: 68px 38px 105px;
}

.eyebrow {
  align-items: center;
  color: var(--orange);
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  gap: 9px;
  letter-spacing: 0.14em;
  margin: 0 0 25px;
}

.eyebrow-dot { background: var(--orange); border-radius: 50%; display: inline-block; height: 8px; width: 8px; }

.hero h1 {
  color: var(--navy);
  font-size: clamp(4.6rem, 10vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -0.095em;
  line-height: 0.78;
  margin: 0;
}

.hero h1 span { color: var(--cyan); }
.hero-lead { color: var(--navy-soft); font-size: 17px; line-height: 1.9; margin: 39px 0 32px; }

.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 16px; }

.hero-social { align-items: center; color: var(--navy); display: inline-flex; font-family: var(--mono); font-size: 13px; font-weight: 500; gap: 9px; }
.hero-social > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.05; }
.hero-social small { color: var(--orange); font-size: 8px; letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-social > span:last-child { color: var(--orange); font-size: 18px; }
.hero-social:hover { color: var(--orange); }

.hero-art { min-height: 515px; position: relative; }
.art-card { background: var(--cyan); border: 2px solid var(--navy); border-radius: 48% 52% 46% 54% / 46% 44% 56% 54%; box-shadow: var(--shadow); height: 425px; left: 50%; overflow: hidden; position: absolute; top: 47px; transform: translateX(-45%) rotate(4deg); width: 370px; }
.art-card::after { background: var(--yellow); border-radius: 50%; content: ''; height: 90px; left: -22px; position: absolute; top: 70px; width: 90px; }
.art-card img { height: 100%; object-fit: cover; object-position: center; width: 100%; }
.art-orbit { border: 1px solid var(--cyan-light); border-radius: 50%; position: absolute; }
.orbit-one { height: 480px; right: 0; top: 8px; transform: rotate(32deg); width: 370px; }
.orbit-two { border-color: var(--yellow-soft); height: 510px; left: 51px; top: 7px; transform: rotate(-29deg); width: 345px; }
.art-note { color: var(--navy); font-family: var(--mono); font-size: 11px; line-height: 1.35; position: absolute; z-index: 2; }
.art-note strong { color: var(--orange); font-size: 20px; }
.note-top { right: 3px; top: 20px; transform: rotate(8deg); }
.note-bottom { bottom: 5px; left: 30px; transform: rotate(-8deg); }
.note-bottom strong { color: var(--cyan); font-size: 38px; letter-spacing: -0.1em; }
.art-note small { color: var(--navy-soft); font-size: 9px; }

.works-section { background: var(--navy); color: var(--paper); padding: 108px max(38px, calc((100vw - 1164px) / 2)) 125px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 auto 48px; max-width: 1164px; }
.section-heading .eyebrow { color: var(--yellow); margin-bottom: 16px; }
.section-heading .eyebrow-dot { background: var(--yellow); }
.section-heading h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -0.08em; line-height: 0.9; margin: 0; }
.section-count { color: var(--cyan-light); font-family: var(--mono); font-size: 32px; margin: 0 2px 5px 0; }
.section-count span { color: rgba(247, 245, 233, 0.5); font-size: 11px; letter-spacing: 0.1em; }

.works-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 1164px; }
.work-card { border: 2px solid var(--navy); border-radius: 24px; color: var(--navy); display: flex; flex-direction: column; min-height: 355px; overflow: hidden; padding: 24px 25px 26px; position: relative; transition: transform 180ms ease, box-shadow 180ms ease; }
.work-card:hover { box-shadow: 8px 8px 0 rgba(255, 225, 26, 0.65); transform: translate(-4px, -4px); }
.work-card-featured { grid-row: span 2; min-height: 732px; }
.card-cyan { background: var(--cyan); }
.card-yellow { background: var(--yellow); }
.card-orange { background: var(--orange); }
.card-cream { background: var(--cream); }
.card-navy { background: var(--navy-soft); border-color: var(--cyan-light); color: var(--paper); }
.card-topline { align-items: center; display: flex; font-family: var(--mono); justify-content: space-between; }
.card-number { font-size: 14px; font-weight: 500; }
.card-tag { border: 1px solid currentColor; border-radius: 999px; font-size: 10px; letter-spacing: 0.12em; padding: 6px 9px 5px; }
.card-content { margin-top: auto; max-width: 330px; position: relative; z-index: 2; }
.card-kicker { font-family: var(--mono); font-size: 11px; margin: 0 0 11px; opacity: 0.75; }
.work-card h3 { font-size: clamp(2.4rem, 4.5vw, 4rem); letter-spacing: -0.1em; line-height: 0.95; margin: 0; }
.card-description { font-size: 14px; line-height: 1.7; margin: 20px 0 0; max-width: 285px; }
.card-scribble { bottom: 69px; color: rgba(247, 245, 233, 0.43); font-family: var(--mono); font-size: 34px; font-weight: 500; line-height: 0.8; position: absolute; right: 35px; text-align: right; transform: rotate(-11deg); }
.card-sticker { background: var(--paper); border: 2px solid var(--navy); border-radius: 50%; bottom: 33px; color: var(--orange); font-size: 25px; font-weight: 800; padding: 18px 12px; position: absolute; right: 38px; transform: rotate(13deg); }
.card-faces { bottom: 33px; display: flex; gap: 5px; position: absolute; right: 28px; transform: rotate(-7deg); }
.card-faces i { align-items: center; background: var(--paper); border: 2px solid var(--navy); border-radius: 50%; color: var(--orange); display: flex; font-size: 27px; font-style: normal; font-weight: 800; height: 61px; justify-content: center; width: 61px; }
.card-faces i:nth-child(2) { transform: translateY(-16px); }
.card-faces i:nth-child(3) { color: var(--cyan); }
.phone-shape { border: 3px solid var(--navy); border-radius: 25px; bottom: 24px; height: 145px; position: absolute; right: 54px; transform: rotate(12deg); width: 77px; }
.phone-shape::before { background: var(--navy); border-radius: 0 0 10px 10px; content: ''; height: 10px; left: 20px; position: absolute; top: -1px; width: 34px; }
.phone-shape span { border: 2px dashed var(--orange); border-radius: 7px; height: 70px; left: 12px; position: absolute; top: 35px; width: 47px; }
.card-stars { bottom: 38px; color: var(--yellow); font-size: 35px; letter-spacing: 0.1em; position: absolute; right: 27px; transform: rotate(-8deg); }

.about-section { align-items: center; display: grid; gap: 55px; grid-template-columns: 0.65fr 1.4fr 0.65fr; margin: 0 auto; max-width: 1164px; min-height: 500px; padding: 100px 38px; }
.about-label { color: var(--cyan); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; line-height: 1.7; transform: rotate(-90deg); }
.about-label span { color: var(--orange); font-size: 19px; letter-spacing: -0.08em; }
.about-copy .eyebrow { margin-bottom: 22px; }
.about-copy h2 { color: var(--navy); font-size: clamp(2.9rem, 5.5vw, 5.2rem); letter-spacing: -0.1em; line-height: 0.93; margin: 0; }
.about-copy h2 span { color: var(--cyan); }
.about-copy > p:last-child { color: var(--navy-soft); font-size: 16px; line-height: 1.95; margin: 32px 0 0; }
.about-copy > p:last-child strong { color: var(--orange); font-family: var(--mono); font-size: 0.9em; }
.about-stamp { border: 2px solid var(--orange); border-radius: 50%; color: var(--orange); font-family: var(--mono); font-size: 12px; letter-spacing: 0.13em; line-height: 1.55; padding: 44px 24px; text-align: center; transform: rotate(13deg); }
.about-stamp span { color: var(--cyan); font-size: 15px; }

.site-footer { align-items: center; background: var(--yellow); color: var(--navy); display: flex; justify-content: space-between; padding: 25px max(38px, calc((100vw - 1164px) / 2)); }
.footer-brand { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand span { color: var(--orange); font-size: 24px; letter-spacing: -0.08em; }
.site-footer p, .site-footer a { font-family: var(--mono); font-size: 10px; margin: 0; }
.site-footer .footer-social a { border-bottom: 0; color: var(--navy); padding-bottom: 0; }
.site-footer .footer-social a:hover { color: var(--orange); }
.site-footer .footer-social .x-symbol { color: var(--orange); font-size: 15px; }
.site-footer a { border-bottom: 1px solid var(--navy); padding-bottom: 3px; }

@media (max-width: 760px) {
  .site-header { padding: 22px 20px; }
  .brand { gap: 8px; }
  .brand-mark { border-radius: 11px; font-size: 12px; height: 36px; width: 60px; }
  .brand-name { font-size: 12px; }
  .brand-name em { font-size: 8px; }
  .site-nav { gap: 9px; }
  .site-nav a { font-size: 11px; }
  .site-nav .nav-x { padding: 8px 10px; }
  .site-nav .nav-github { display: none; }
  .identity-strip { gap: 9px; margin: 0 20px; padding: 12px 14px; }
  .identity-strip-kicker { font-size: 8px; }
  .identity-strip strong { font-size: 16px; }
  .identity-strip a { font-size: 10px; }
  .identity-strip-note { display: none; }
  .hero { display: block; min-height: 0; padding: 62px 20px 90px; }
  .hero h1 { font-size: clamp(4.6rem, 22vw, 7.2rem); }
  .hero-lead { font-size: 15px; margin: 30px 0 26px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-art { margin: 62px auto 0; max-width: 430px; min-height: 420px; }
  .art-card { height: 340px; top: 39px; width: 300px; }
  .orbit-one { height: 390px; right: -20px; width: 300px; }
  .orbit-two { height: 400px; left: 15px; width: 285px; }
  .note-top { right: 0; top: 2px; }
  .note-bottom { bottom: 0; left: 0; }
  .works-section { padding: 77px 20px 84px; }
  .section-heading { align-items: start; margin-bottom: 32px; }
  .section-heading h2 { font-size: 3rem; }
  .section-count { font-size: 24px; }
  .works-grid { display: block; }
  .work-card, .work-card-featured { min-height: 330px; margin-bottom: 16px; }
  .work-card-featured { min-height: 450px; }
  .card-scribble { bottom: 55px; font-size: 28px; }
  .about-section { display: block; min-height: 0; padding: 76px 20px 90px; }
  .about-label { display: none; }
  .about-copy h2 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .about-stamp { margin: 48px auto 0; max-width: 160px; }
  .site-footer { align-items: start; flex-direction: column; gap: 13px; padding: 25px 20px 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Minimal visual system: content first, decoration second. */
:root {
  --navy: #1d2a33;
  --navy-soft: #5e6b73;
  --cyan: #4b9eae;
  --cyan-light: #d9eef1;
  --yellow: #eac64d;
  --yellow-soft: #f7edbb;
  --orange: #d86f43;
  --cream: #f5f7f7;
  --paper: #ffffff;
  --ink: #1d2a33;
  --line: #d9e0e3;
  --shadow: none;
}

body { background: var(--paper); color: var(--ink); }
.page-shell { background: var(--paper); overflow: hidden; }

.site-header {
  border-bottom: 1px solid var(--line);
  max-width: 1240px;
  padding: 22px 38px;
}
.brand { gap: 10px; }
.brand-mark {
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  color: var(--paper);
  font-size: 12px;
  height: 32px;
  letter-spacing: 0;
  padding: 0 9px;
  width: auto;
}
.brand-name { color: var(--navy); font-size: 13px; }
.brand-name em { color: var(--navy-soft); font-size: 9px; letter-spacing: 0.08em; }
.site-nav { gap: 24px; }
.site-nav a { color: var(--navy-soft); font-size: 12px; }
.site-nav .nav-x,
.site-nav .nav-github {
  background: transparent;
  border-bottom: 1px solid var(--navy-soft);
  border-radius: 0;
  color: var(--navy);
  padding: 0 0 3px;
}
.site-nav .nav-x { border-color: var(--orange); }

.identity-strip {
  background: var(--cream);
  border-left: 3px solid var(--orange);
  color: var(--navy);
  gap: 12px;
  margin-top: 28px;
  padding: 11px 15px;
}
.identity-strip-kicker { color: var(--orange); font-size: 9px; }
.identity-strip strong { color: var(--navy); font-size: 16px; }
.identity-strip-divider { color: var(--line); }
.identity-strip a { color: var(--navy); font-size: 11px; }
.identity-strip-note { color: var(--navy-soft); font-size: 9px; }

.hero {
  gap: 72px;
  min-height: 590px;
  padding: 88px 38px 100px;
}
.eyebrow { color: var(--orange); font-size: 10px; letter-spacing: 0.12em; margin-bottom: 18px; }
.eyebrow-dot { height: 6px; width: 6px; }
.hero h1 {
  color: var(--navy);
  font-size: clamp(3.8rem, 7vw, 6.6rem);
  letter-spacing: -0.08em;
  line-height: 0.88;
}
.hero h1 span { color: var(--cyan); }
.hero-lead { color: var(--navy-soft); font-size: 16px; line-height: 1.8; margin: 29px 0 27px; }
.hero-social { color: var(--navy); font-size: 12px; }
.hero-social small { color: var(--orange); }
.hero-social > span:last-child { color: var(--orange); }
.hero-art { min-height: 420px; }
.art-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: none;
  height: 410px;
  left: 50%;
  top: 3px;
  transform: translateX(-50%);
  width: 360px;
}
.art-card::after { display: none; }

.works-section {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--navy);
  padding-bottom: 112px;
  padding-top: 92px;
}
.section-heading .eyebrow { color: var(--orange); }
.section-heading .eyebrow-dot { background: var(--orange); }
.section-heading h2 { color: var(--navy); }
.section-count { color: var(--navy); font-size: 28px; }
.section-count span { color: var(--navy-soft); }
.works-grid { gap: 16px; }
.work-card {
  background: var(--paper) !important;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  color: var(--navy);
  min-height: 280px;
  padding: 22px 23px 24px;
}
.work-card::before {
  background: var(--card-accent);
  content: '';
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}
.work-card:hover { box-shadow: 0 8px 20px rgba(29, 42, 51, 0.08); transform: translateY(-2px); }
.work-card-featured { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
.work-card-featured .card-content { margin-bottom: auto; margin-top: auto; }
.card-cyan { --card-accent: var(--cyan); }
.card-yellow { --card-accent: var(--yellow); }
.card-orange { --card-accent: var(--orange); }
.card-cream { --card-accent: var(--navy-soft); }
.card-topline { color: var(--navy-soft); }
.card-tag { border-color: var(--line); }
.card-content { max-width: 360px; }
.card-kicker { color: var(--navy-soft); }
.work-card h3 { color: var(--navy); font-size: clamp(2.2rem, 4vw, 3.4rem); }
.card-description { color: var(--navy-soft); }
.about-section {
  gap: 45px;
  grid-template-columns: 0.3fr 1fr;
  min-height: 430px;
  padding: 94px 38px;
}
.about-label { color: var(--orange); transform: none; }
.about-label span { color: var(--navy); }
.about-copy h2 { color: var(--navy); font-size: clamp(2.8rem, 5vw, 4.8rem); }
.about-copy h2 span { color: var(--cyan); }
.about-copy > p:last-child { color: var(--navy-soft); font-size: 15px; }

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--navy);
}
.footer-brand span { color: var(--orange); }
.site-footer .footer-social .x-symbol { color: var(--orange); }
.site-footer a { border-color: var(--navy-soft); }

@media (max-width: 760px) {
  .site-header { padding: 18px 20px; }
  .site-nav { gap: 12px; }
  .identity-strip { margin: 20px; }
  .hero { padding: 62px 20px 76px; }
  .hero h1 { font-size: clamp(3.5rem, 17vw, 5.5rem); }
  .hero-art { min-height: 350px; }
  .art-card { height: 340px; width: min(100%, 320px); }
  .works-section { padding: 72px 20px 82px; }
  .work-card, .work-card-featured { min-height: 330px; }
  .work-card-featured { min-height: 430px; }
  .about-section { display: block; padding: 76px 20px 82px; }
  .about-label { margin-bottom: 32px; }
  .site-footer { padding: 25px 20px 30px; }
}

/* Quiet layout: typography and spacing carry the page. */
:root {
  --navy: #20272c;
  --navy-soft: #70797f;
  --cyan: #20272c;
  --cyan-light: #aeb7bc;
  --yellow: #20272c;
  --yellow-soft: #dfe3e5;
  --orange: #20272c;
  --cream: #ffffff;
  --paper: #ffffff;
  --ink: #20272c;
  --line: #e1e5e7;
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  padding-top: 24px;
}
.brand-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--navy);
  font-size: 16px;
  height: auto;
  letter-spacing: 0.04em;
  padding: 0;
  width: auto;
}
.brand-name em { color: var(--navy-soft); }
.site-nav { gap: 22px; }
.site-nav a {
  border-bottom: 0;
  color: var(--navy-soft);
  font-size: 14px;
  padding: 0;
}
.site-nav a:hover { color: var(--navy); }
.site-nav .nav-x,
.site-nav .nav-github { border-bottom: 0; color: var(--navy); }

.eyebrow { color: var(--navy-soft); margin-bottom: 15px; }
.eyebrow-dot { display: none; }
.hero {
  min-height: 550px;
  padding-bottom: 92px;
  padding-top: 76px;
}
.hero h1 { font-size: 4.5rem; line-height: 1; }
.hero h1 span { color: inherit; }
.hero-lead { margin-bottom: 26px; margin-top: 25px; }
.hero-note {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.7;
  margin: 25px 0 28px;
  max-width: 34em;
}
.hero-note a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.hero-actions { gap: 20px; }
.hero-social { border-bottom: 1px solid var(--navy-soft); font-size: 13px; padding-bottom: 4px; }
.hero-social small,
.hero-social > span:last-child { color: inherit; }
.hero-art { min-height: 360px; }
.art-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  height: 360px;
  width: 320px;
}

.works-section {
  background: var(--paper);
  border: 0;
  padding-bottom: 100px;
  padding-top: 84px;
}
.works-groups {
  display: grid;
  gap: 64px;
  grid-template-columns: 1fr;
}
.works-group { min-width: 0; }
.section-heading { margin-bottom: 0; padding-bottom: 18px; }
.section-heading h2 {
  border: 1px solid var(--navy);
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  padding: 14px 16px;
}
.section-count { font-size: 20px; }
.section-count span { font-size: 10px; }
.works-grid { display: block; }
.work-card,
.work-card-featured {
  align-items: start;
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 24px;
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
  height: auto;
  min-height: 150px;
  padding: 22px 0;
}
.work-card::before { display: none; }
.work-card:hover { background: #fafbfb !important; box-shadow: none; transform: none; }
.work-card-featured { padding-bottom: 22px; padding-top: 22px; }
.work-card-featured .card-content { margin: 0; }
.card-cyan,
.card-yellow,
.card-orange,
.card-cream { --card-accent: transparent; }
.card-tag { border: 0; color: var(--navy-soft); font-size: 10px; letter-spacing: 0.1em; padding: 0; }
.card-content,
.work-card-featured .card-content { align-self: center; grid-column: 1; margin: 0; max-width: 600px; }
.card-kicker { color: var(--navy-soft); margin-bottom: 8px; }
.work-card h3 { font-size: 2.25rem; }
.card-description { color: var(--navy-soft); margin-top: 15px; max-width: 500px; }
.line-sticker-card {
  height: auto;
  grid-template-rows: auto auto;
  min-height: 0;
}
.line-sticker-card .card-content { grid-row: 1; margin-top: 0; pointer-events: none; }
.line-sticker-card .sticker-list-overlay {
  inset: 0;
  position: absolute;
  z-index: 1;
}
.line-sticker-card .sticker-ogps {
  border-bottom: 0;
  grid-column: 1 / -1;
  grid-row: 2;
  margin-left: 0;
  padding: 24px 0 0;
  pointer-events: none;
  position: relative;
  z-index: 2;
}
.sticker-ogps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 180px));
}
.sticker-ogp {
  display: flex;
  max-width: 180px;
  pointer-events: auto;
  position: relative;
  transform-origin: center 80%;
}
.sticker-ogp img { aspect-ratio: 1; display: block; object-fit: cover; width: 100%; }
@keyframes sticker-ogp-wobble {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(3deg) translateY(-2px); }
  50% { transform: rotate(0deg) translateY(-1px); }
  75% { transform: rotate(-3deg) translateY(-2px); }
}
@media (hover: hover) and (pointer: fine) {
  .sticker-ogp:hover { animation: sticker-ogp-wobble 700ms ease-in-out infinite; }
}
.sticker-ogp:focus-visible { animation: sticker-ogp-wobble 700ms ease-in-out 2; }
@media (prefers-reduced-motion: reduce) {
  .sticker-ogp:hover,
  .sticker-ogp:focus-visible { animation: none; }
}
/* Keep Japanese headings readable when they wrap. */
.section-heading h2,
.work-card h3,
.about-copy h2 {
  letter-spacing: 0;
  line-height: 1.2;
}

.brand-name { line-height: 1.1; }

.about-section {
  border-top: 1px solid var(--line);
  gap: 40px;
  grid-template-columns: 78px minmax(0, 1fr);
  min-height: 0;
  padding-bottom: 100px;
  padding-top: 100px;
}
.about-label { color: var(--navy-soft); font-size: 10px; }
.about-label span { color: var(--navy); font-size: 16px; }
.about-copy h2,
.about-copy h2 span { color: var(--navy); font-size: 4rem; }
.about-copy > p:last-child { max-width: 540px; }
.site-footer { padding-bottom: 22px; padding-top: 22px; }
.footer-brand span,
.site-footer .footer-social .x-symbol { color: var(--navy); }

@media (max-width: 760px) {
  .site-header { padding-bottom: 18px; padding-top: 18px; }
  .site-nav { gap: 10px; }
  .brand-mark { font-size: 14px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .hero { min-height: 0; padding-bottom: 70px; padding-top: 58px; }
  .hero h1 { font-size: 3.5rem; }
  .hero-note { font-size: 14px; margin-bottom: 25px; }
  .hero-art { margin-top: 28px; min-height: 320px; }
  .art-card { height: 300px; width: 280px; }
  .works-section { padding-bottom: 74px; padding-top: 68px; }
  .works-groups { gap: 70px; grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 18px; }
  .work-card,
  .work-card-featured {
    gap: 14px;
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    min-height: 150px;
    padding-bottom: 18px;
    padding-top: 18px;
  }
  .work-card h3 { font-size: 1.75rem; }
  .card-description { font-size: 13px; }
  .sticker-ogps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 376px;
    padding-top: 20px;
  }
  .sticker-ogp { max-width: 180px; }
  .about-section { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 75px; padding-top: 76px; }
  .about-copy h2,
  .about-copy h2 span { font-size: 3rem; }
  .about-label { margin-bottom: 0; }
  .site-footer { gap: 13px; }
}

.brand-icon {
  display: block;
  flex: 0 0 34px;
  height: 34px;
  overflow: hidden;
  position: relative;
  width: 34px;
}
.brand-icon img {
  height: 49px;
  left: -14px;
  max-width: none;
  position: absolute;
  top: -7px;
  width: 62px;
}

@media (max-width: 760px) {
  .brand-icon { flex-basis: 30px; height: 30px; width: 30px; }
  .brand-icon img { height: 43.5px; left: -12.5px; top: -6.75px; width: 55px; }
}

.header-controls { align-items: center; display: flex; gap: 22px; }
.design-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #20272c;
  cursor: pointer;
  display: inline-grid;
  filter: none;
  font-family: var(--display);
  font-size: 13px;
  justify-content: center;
  height: clamp(56px, 6.5vw, 72px);
  min-height: 56px;
  padding: 0;
  position: relative;
  transition: filter 160ms ease, transform 160ms ease;
  width: clamp(132px, 15vw, 172px);
  white-space: nowrap;
}
.design-toggle:hover {
  filter: drop-shadow(4px 5px 0 #20272c);
  text-decoration: none;
  transform: translate(-1px, -1px);
}
.design-toggle:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.paint-tube { height: 100%; inset: 0; overflow: visible; position: absolute; width: 100%; }
.paint-tube-body { fill: #fffdf7; }
.paint-tube-outline { fill: none; stroke: #20272c; stroke-linejoin: round; stroke-width: 4px; }
.paint-tube-crimp { fill: none; stroke: #aeb7b7; stroke-width: 2.5px; }
.paint-tube-cap { fill: #ffe11a; stroke: #20272c; stroke-width: 4px; }
.paint-tube-ridges { fill: none; stroke: #a17f00; stroke-width: 2.5px; }
.theme-current { font-size: 1em; font-weight: 800; left: 22%; letter-spacing: 0.04em; line-height: 1; position: absolute; right: 25%; text-align: center; top: 50%; transform: translateY(-50%); }
html[data-design="colorful"] .design-toggle { color: var(--navy); }
html[data-design="colorful"] .paint-tube-body { fill: var(--cyan); }
html[data-design="colorful"] .paint-tube-crimp { stroke: #14788d; }
html[data-design="colorful"] .paint-tube-cap { fill: var(--orange); }
html[data-design="colorful"] .paint-tube-ridges { stroke: #a54319; }
html[data-design="colorful"] .paint-tube-outline,
html[data-design="colorful"] .paint-tube-cap { stroke: var(--navy); }
html[data-design="colorful"] .design-toggle:hover {
  filter: drop-shadow(4px 5px 0 var(--navy));
}

html[data-design="colorful"] {
  --navy: #102d3c;
  --navy-soft: #19495a;
  --cyan: #39bad7;
  --cyan-light: #8ee4ec;
  --yellow: #ffe11a;
  --yellow-soft: #fff0a3;
  --orange: #ff7c35;
  --cream: #f7f5e9;
  --paper: #fffdf4;
  --ink: #102d3c;
  --line: rgba(16, 45, 60, 0.42);
  --shadow: 4px 4px 0 rgba(16, 45, 60, 0.4);
}
html[data-design="colorful"] body,
html[data-design="colorful"] .page-shell { background: var(--cyan); color: var(--ink); }
html[data-design="colorful"] .site-header { border-bottom: 2px solid var(--navy); }
html[data-design="colorful"] .brand-mark {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  padding: 0;
  width: auto;
}
html[data-design="colorful"] .site-nav a { color: var(--navy); }
html[data-design="colorful"] .site-nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
html[data-design="colorful"] .design-toggle:focus-visible,
html[data-design="colorful"] a:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
html[data-design="colorful"] .hero {
  gap: clamp(30px, 5vw, 72px);
  min-height: 640px;
  padding-bottom: 82px;
  padding-top: 82px;
}
html[data-design="colorful"] .hero-copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
html[data-design="colorful"] .hero h1 { color: var(--navy); }
html[data-design="colorful"] .hero-note { color: var(--navy); }
html[data-design="colorful"] .hero-note a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
html[data-design="colorful"] .hero-social {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--navy);
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  padding: 0 0 4px;
}
html[data-design="colorful"] .hero-social:hover { background: transparent; }
html[data-design="colorful"] .hero-art { min-height: 0; position: relative; }
html[data-design="colorful"] .hero-art .art-card {
  background: var(--cyan);
  aspect-ratio: 1;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  height: auto;
  left: auto;
  max-width: 500px;
  overflow: hidden;
  position: relative;
  top: auto;
  transform: none;
  width: 100%;
}
html[data-design="colorful"] .hero-art .art-card img { display: block; height: 100%; object-fit: contain; width: 100%; }
html[data-design="colorful"] .works-section {
  background: var(--cyan);
  border-bottom: 0;
  border-top: 0;
  color: var(--navy);
}
html[data-design="colorful"] .section-heading h2 {
  background: transparent;
  border: 0;
  border-bottom: 5px solid var(--yellow);
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  display: inline-block;
  padding: 0 0 8px;
}
html[data-design="colorful"] .works-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html[data-design="colorful"] .work-card {
  align-items: stretch;
  background: var(--card-bg, var(--paper)) !important;
  border: 2px solid var(--navy);
  border-bottom-width: 4px;
  border-radius: 16px;
  box-shadow: 3px 3px 0 rgba(16, 45, 60, 0.35);
  color: var(--card-foreground, var(--navy));
  display: flex;
  flex-direction: column;
  gap: 18px;
  grid-column: auto;
  grid-row: auto;
  height: auto;
  margin: 0;
  min-height: 235px;
  padding: 24px;
}
html[data-design="colorful"] .work-card-featured {
  grid-column: 1 / -1;
  min-height: 265px;
}
html[data-design="colorful"] .work-card .card-content {
  margin-bottom: 0;
  margin-top: auto;
  max-width: 600px;
}
html[data-design="colorful"] .work-card h3,
html[data-design="colorful"] .work-card .card-description,
html[data-design="colorful"] .work-card .card-kicker { color: var(--card-foreground, var(--navy)); }
html[data-design="colorful"] .card-cyan { --card-bg: var(--cyan-light); --card-foreground: var(--navy); }
html[data-design="colorful"] .card-yellow { --card-bg: var(--yellow); --card-foreground: var(--navy); }
html[data-design="colorful"] .card-orange { --card-bg: var(--orange); --card-foreground: var(--navy); }
html[data-design="colorful"] .card-cream { --card-bg: var(--cream); --card-foreground: var(--navy); }
html[data-design="colorful"] .card-navy { --card-bg: var(--navy-soft); --card-foreground: var(--paper); }
html[data-design="colorful"] .work-card::before { display: none; }
html[data-design="colorful"] .work-card:hover {
  background: var(--card-bg, var(--paper)) !important;
  box-shadow: 5px 5px 0 rgba(16, 45, 60, 0.45);
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  html[data-design="colorful"] .header-controls { gap: 12px; }
  html[data-design="colorful"] .hero { min-height: 0; padding: 62px 20px 76px; }
  html[data-design="colorful"] .hero-copy { padding: 0; }
  html[data-design="colorful"] .hero-art { margin: 34px auto 0; max-width: 480px; min-height: 0; }
  html[data-design="colorful"] .hero-art .art-card { max-width: 100%; }
  html[data-design="colorful"] .works-section { padding: 72px 20px 82px; }
  html[data-design="colorful"] .works-grid { grid-template-columns: minmax(0, 1fr); }
  html[data-design="colorful"] .work-card,
  html[data-design="colorful"] .work-card-featured { min-height: 195px; padding: 22px; }
  html[data-design="colorful"] .work-card-featured { grid-column: auto; }
}
@media (max-width: 420px) {
  .site-header { display: grid; gap: 14px 10px; grid-template-columns: 1fr auto; }
  .header-controls { display: contents; }
  .brand { grid-column: 1; grid-row: 1; }
  .design-toggle { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
}

.hobby-clear-file-card {
  cursor: default;
  grid-column: 1 / -1;
  min-height: 0;
  padding: 22px;
}
.hobby-clear-file-card .card-content { margin: 0; max-width: none; }
.hobby-clear-file-card .card-description { max-width: 680px; }
.clear-file-gallery { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-inline: 0; max-width: 932px; width: 100%; }
.clear-file-gallery figure { margin: 0; min-width: 0; }
.clear-file-gallery img {
  aspect-ratio: 566 / 800;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  object-fit: contain;
  width: 100%;
}
.clear-file-flip-item { justify-self: center; max-width: 300px; min-width: 0; width: 100%; }
.clear-file-flip {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 0;
  perspective: 1200px;
  text-align: left;
  width: 100%;
}
.clear-file-flip:focus-visible { border-radius: 16px; outline: 3px solid var(--orange); outline-offset: 4px; }
.clear-file-flip-inner {
  aspect-ratio: 566 / 800;
  display: block;
  position: relative;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 560ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.clear-file-flip.is-flipped .clear-file-flip-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .clear-file-flip:not(.is-flipped):hover .clear-file-flip-inner { transform: translateY(-4px) rotateZ(-0.8deg); }
  .clear-file-flip.is-flipped:hover .clear-file-flip-inner { transform: rotateY(180deg) translateY(-4px) rotateZ(0.8deg); }
}
.clear-file-flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  inset: 0;
  overflow: hidden;
  position: absolute;
}
.clear-file-flip-face img { border: 0; border-radius: inherit; height: 100%; }
.clear-file-flip-back { transform: rotateY(180deg); }

@media (max-width: 760px) {
  .clear-file-gallery { gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .clear-file-flip-inner { transition: none; }
  .clear-file-flip:not(.is-flipped):hover .clear-file-flip-inner { transform: none; }
  .clear-file-flip.is-flipped:hover .clear-file-flip-inner { transform: rotateY(180deg); }
}

/* Keep navigation available without letting it dominate the viewport. */
.page-shell,
html[data-design="colorful"] .page-shell { overflow: clip; }
.site-header {
  background: var(--paper);
  max-width: none;
  padding: 10px max(20px, calc((100vw - 1164px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
}
html[data-design="colorful"] .site-header { background: var(--cyan); }
.header-controls { gap: 16px; }
.site-nav { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { white-space: nowrap; }
#works,
.works-group[id] { scroll-margin-top: 86px; }

/* Shorter group spacing and a denser layout for secondary links. */
.works-section { padding-bottom: 72px; padding-top: 68px; }
html[data-design="colorful"] .works-section { padding-bottom: 72px; padding-top: 68px; }
.works-groups { gap: 46px; }
.compact-works-group .works-grid {
  display: grid;
  gap: 0 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.compact-works-group .work-card { min-height: 0; padding: 14px 16px; }
.compact-works-group .work-card h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.25; }
.compact-works-group .card-description { margin-top: 8px; }
#hobby .works-grid { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 760px) {
  .site-header { padding: 8px 16px; }
  .header-controls { gap: 10px; }
  .site-nav { gap: 12px; }
  .works-section { padding: 48px 20px 56px; }
  html[data-design="colorful"] .works-section { padding: 48px 20px 56px; }
  .works-groups { gap: 36px; }
  .compact-works-group .works-grid { gap: 0 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-works-group .work-card { padding: 12px 8px; }
  html[data-design="colorful"] .compact-works-group .work-card { min-height: 0; padding: 12px; }
  .clear-file-gallery {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 2px 10px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--navy-soft) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .clear-file-gallery::-webkit-scrollbar { height: 5px; }
  .clear-file-gallery::-webkit-scrollbar-thumb { background: var(--navy-soft); border-radius: 999px; }
  .clear-file-gallery::-webkit-scrollbar-track { background: transparent; }
  .clear-file-flip-item { flex: 0 0 min(76vw, 300px); scroll-snap-align: start; }
}

/* Give each project a small, collectible can-badge icon. */
#works .projects-grid {
  align-items: start;
  display: grid;
  gap: 32px 20px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#works .project-card {
  align-items: center;
  background: transparent !important;
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding: 8px 4px 12px;
  text-decoration: none;
  text-align: center;
  transition: transform 180ms ease;
}
#works .project-card::before { display: none; }
#works .project-card:hover {
  background: transparent !important;
  box-shadow: none;
  transform: translateY(-2px);
}
#works .project-card:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
#works .badge-stage {
  aspect-ratio: 1;
  display: grid;
  isolation: isolate;
  margin: 0 auto;
  place-items: center;
  perspective: 850px;
  position: relative;
  width: clamp(118px, 10vw, 152px);
}
#works .project-preview {
  --badge-rise: 0px;
  --badge-scale: 1;
  aspect-ratio: 1;
  background-color: var(--paper);
  border: 5px solid #d4dcde;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24), 0 7px 16px rgba(16, 45, 60, 0.18);
  display: grid;
  isolation: isolate;
  place-items: center;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(700px)
    translateY(var(--badge-rise, 0px))
    translateZ(var(--badge-lift, 0px))
    rotateX(var(--badge-rotate-x, 0deg))
    rotateY(var(--badge-rotate-y, 0deg))
    scale(var(--badge-scale, 1));
  transform-origin: center;
  transition: box-shadow 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 88%;
  z-index: 1;
}
#works .project-preview::after {
  background:
    radial-gradient(ellipse 70% 43% at 27% 14%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.16) 42%, transparent 76%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(8, 30, 40, 0.1));
  border-radius: inherit;
  content: "";
  inset: 8px;
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
#works .artwork-friends { background: #16849b; }
#works .artwork-petakakushi { background: #fff1ca; }
#works .artwork-pitakabe { background: #dcebbd; }
#works .artwork-game { background: #39bad7; }
#works .artwork-focus { background: #263845; }
#works .project-app-icon {
  height: clamp(72px, 7vw, 92px);
  max-height: 76%;
  max-width: 76%;
  object-fit: contain;
  position: relative;
  transform: translateZ(0);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: clamp(72px, 7vw, 92px);
  z-index: 4;
}
#works .project-card:hover .project-preview {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24), 0 11px 22px rgba(16, 45, 60, 0.2);
  --badge-rise: -5px;
  --badge-scale: 1.05;
}
#works .project-card.is-badge-pointer-active .project-preview {
  --badge-rise: -5px;
  --badge-lift: 10px;
  --badge-scale: 1.04;
}
#works .project-card.is-badge-pointer-active .project-app-icon,
#works .project-card:focus-visible .project-app-icon { transform: translateZ(18px); }
#works .project-card:focus-visible .project-preview {
  --badge-rise: -5px;
  --badge-lift: 10px;
  --badge-scale: 1.04;
}
#works .project-card .card-content {
  align-items: center;
  display: flex;
  flex: initial;
  flex-direction: column;
  gap: 0;
  margin: 0;
  max-width: none;
  padding: 15px 0 0;
  width: 100%;
}
#works .project-card-heading { align-items: center; display: flex; justify-content: center; }
#works .project-card h3 { color: var(--navy); font-size: clamp(1rem, 1.35vw, 1.2rem); letter-spacing: 0; line-height: 1.35; margin: 0; }
#works .project-card .card-description { color: var(--navy-soft); font-size: 12px; line-height: 1.65; margin: 7px 0 0; max-width: 28ch; text-align: center; }

@media (max-width: 760px) {
  #works .projects-grid { gap: 26px 14px; }
  #works .project-card .card-content { padding-top: 12px; }
}
@media (max-width: 1000px) {
  #works .projects-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #works .project-card:nth-child(4) { grid-column: 2; }
  #works .project-card:nth-child(5) { grid-column: 3; }
}
@media (max-width: 600px) {
  #works .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #works .project-card:nth-child(4),
  #works .project-card:nth-child(5) { grid-column: auto; }
  #works .project-card:last-child { grid-column: 1 / -1; justify-self: center; max-width: 180px; }
  #works .badge-stage { width: clamp(112px, 31vw, 132px); }
  #works .project-preview { width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  #works .project-card:hover { transform: none; }
  #works .project-card:hover .project-preview,
  #works .project-card:focus-visible .project-preview { transform: none; }
  #works .project-card:hover .project-app-icon,
  #works .project-card:focus-visible .project-app-icon { transform: none; transition: none; }
  #works .project-card:hover .project-preview { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.24), 0 7px 16px rgba(16, 45, 60, 0.18); }
  .design-toggle { transition: none; }
  .design-toggle:hover { transform: none; }
}

@media (max-width: 420px) {
  .site-header { gap: 8px; }
  .site-nav { gap: 8px; }
  .site-nav a { font-size: 11px; }
}


#hobby .instagram-hobby-card {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: visible;
  padding: 22px;
}
#hobby .instagram-hobby-card .card-content { margin: 0; max-width: none; }
#hobby .hobby-clear-file-card {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: visible;
  padding: 22px;
}
#hobby .hobby-clear-file-card .card-content { margin: 0; max-width: none; }
.instagram-card-heading {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  width: 100%;
}
.instagram-card-copy { min-width: 0; }
.instagram-card-actions { align-items: center; display: flex; flex: 0 0 auto; gap: 10px; }
.instagram-card-action {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(16, 45, 60, 0.28);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
  display: inline-grid;
  height: 44px;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  transition: background-color 160ms ease;
  width: 44px;
}
.instagram-card-action svg { display: block; height: 23px; width: 23px; }
.instagram-card-action:hover { background: rgba(16, 45, 60, 0.07); }
.instagram-card-action:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.instagram-card-action:disabled { cursor: wait; opacity: 0.6; }
.instagram-carousel { min-width: 0; width: 100%; }
.instagram-grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}
.instagram-scroll-navigation {
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}
.instagram-scroll-navigation[hidden] { display: none; }
.instagram-scroll-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #70797f;
  border-radius: 50%;
  box-shadow: none;
  color: #20272c;
  cursor: pointer;
  display: grid;
  font: 700 26px/1 var(--display);
  height: 44px;
  justify-content: center;
  padding: 0 0 3px;
  width: 44px;
}
.instagram-scroll-control[hidden] { display: none; }
.instagram-scroll-control:hover { background: #f0f3f4; }
.instagram-scroll-control:focus-visible { outline: 3px solid #20272c; outline-offset: 3px; }
.instagram-grid .instagram-media {
  margin: 0 !important;
  max-width: 540px !important;
  min-width: min(326px, 100%) !important;
  width: 100% !important;
}
.instagram-polaroid {
  background: #fffdf7;
  border: 1px solid rgba(29, 42, 51, 0.18);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  margin: 0;
  min-width: 0;
  padding: 10px 10px 6px;
  transform: rotate(var(--polaroid-tilt, 0deg));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
}
.instagram-polaroid:nth-child(3n + 1) { --polaroid-tilt: -1.2deg; }
.instagram-polaroid:nth-child(3n + 2) { --polaroid-tilt: 0.8deg; }
.instagram-polaroid:nth-child(3n) { --polaroid-tilt: -0.4deg; }
.instagram-polaroid:hover {
  box-shadow: none;
  transform: rotate(0deg);
  z-index: 1;
}
.instagram-photo {
  aspect-ratio: 3 / 2;
  background: var(--paper);
  container-type: inline-size;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.instagram-polaroid-caption {
  align-items: center;
  color: var(--navy-soft);
  display: flex;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.06em;
  min-height: 38px;
  padding: 10px 3px 2px;
}
.instagram-photo > .instagram-media,
.instagram-photo > iframe {
  left: 0 !important;
  margin: 0 !important;
  max-width: 540px !important;
  position: absolute !important;
  top: calc(-14cqw - 4px) !important;
  transform: scale(1.02);
  transform-origin: center top;
  width: 100% !important;
  border: 0 !important;
}
.instagram-photo > .instagram-media > a { display: none; }
.instagram-status { color: var(--navy-soft); font-size: 12px; line-height: 1.5; margin: 0; min-height: 0; }
.instagram-fallback-image {
  align-items: center;
  aspect-ratio: 3 / 2;
  background: var(--cream);
  border: 1px dashed var(--line);
  color: var(--navy-soft);
  display: grid;
  font-size: 13px;
  justify-content: center;
  text-align: center;
  place-items: center;
  text-underline-offset: 3px;
}
@media (max-width: 1060px) {
  #hobby .instagram-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0 0 8px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--navy-soft) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  #hobby .instagram-scroll-navigation:not([hidden]) { display: flex; }
  #hobby .instagram-polaroid {
    flex: 0 0 max(326px, min(86vw, 380px));
    scroll-snap-align: start;
  }
}

@media (max-width: 760px) {
  .hero {
    --hero-art-size: clamp(88px, 27vw, 120px);
    position: relative;
  }
  .hero-copy { padding-right: calc(var(--hero-art-size) + 16px); }
  .hero-note {
    font-size: 12px;
    line-height: 1.65;
    margin-bottom: 0;
  }
  .hero-actions {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: flex-start;
    margin-top: 14px;
    position: relative;
    text-align: left;
    width: calc(100% + var(--hero-art-size) + 16px);
    z-index: 1;
  }
  .hero-social {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    min-width: 0;
    padding: 0 0 2px;
  }
  .hero-social::after { content: none; }
  .hero-art {
    aspect-ratio: 1;
    display: grid;
    margin: 0;
    max-width: var(--hero-art-size);
    min-height: 0;
    place-items: center;
    position: absolute;
    right: 20px;
    top: 58px;
    width: var(--hero-art-size);
    z-index: 2;
  }
  .art-card {
    aspect-ratio: 1;
    height: auto;
    left: auto;
    position: relative;
    top: auto;
    transform: none;
    width: 100%;
  }
  .art-card img { object-fit: contain; }
  html[data-design="colorful"] .hero-social { padding: 0 0 2px; }
  html[data-design="colorful"] .hero-copy { padding-right: calc(var(--hero-art-size) + 16px); }
  html[data-design="colorful"] .hero-art { margin: 0; max-width: var(--hero-art-size); position: absolute; top: 62px; }
}

.brand-mark { flex-shrink: 0; white-space: nowrap; }

/* Temporary preview: let the 524 hero illustration gently float. */
@keyframes mascot-float-preview {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-design="colorful"] .hero-art .art-card {
    animation: mascot-float-preview 5.24s ease-in-out infinite;
  }
}

@media (max-width: 600px) {
  .site-header {
    column-gap: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 6px 14px;
    row-gap: 4px;
  }
  .header-controls { display: contents; }
  .brand { gap: 7px; grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .design-toggle {
    grid-column: 2;
    grid-row: 2;
    height: 44px;
    justify-self: end;
    min-height: 44px;
    width: clamp(108px, 32vw, 132px);
  }
  .site-nav {
    align-self: center;
    gap: clamp(8px, 3.5vw, 20px);
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
  }
  .site-nav a { font-size: 12px; }
  #works,
  .works-group[id] { scroll-margin-top: 100px; }
}

#goods .line-sticker-card .card-content,
#hobby .hobby-clear-file-card .card-content {
  align-self: start;
  justify-self: start;
  margin: 0;
  max-width: none;
  text-align: left;
  width: 100%;
}
#goods .line-sticker-card h3,
#goods .line-sticker-card .card-description,
#hobby .hobby-clear-file-card h3,
#hobby .hobby-clear-file-card .card-description {
  text-align: left;
}
#goods .line-sticker-card h3 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  line-height: 1.25;
}
#hobby .hobby-clear-file-card h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.25;
}
html[data-design="colorful"] #goods .line-sticker-card {
  --card-bg: #f3eedb;
  --card-foreground: var(--navy);
}
html[data-design="colorful"] #hobby .hobby-clear-file-card {
  --card-bg: #edf2ef;
  --card-foreground: var(--navy);
}

@media (min-width: 761px) {
  #goods .line-sticker-card .sticker-ogps {
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    margin-inline: auto;
    max-width: 440px;
    width: 100%;
  }
  #goods .line-sticker-card .sticker-ogp { max-width: none; }
  #hobby .clear-file-gallery { gap: 12px; max-width: 100%; }
  #hobby .clear-file-flip-item { max-width: none; }
}

@media (min-width: 761px) and (max-width: 1000px) {
  #goods .works-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Small, short-lived color flecks follow the mouse in the colorful theme. */
.cursor-dot-layer {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 1000;
}
html[data-design="simple"] .cursor-dot-layer { display: none; }
.cursor-dot {
  animation: cursor-dot-fade 520ms cubic-bezier(.2, .7, .3, 1) forwards;
  background: #ffe11a;
  border-radius: 50%;
  opacity: 0;
  position: absolute;
  transform: translate(-50%, -50%) scale(.45);
  will-change: transform, opacity;
}
@keyframes cursor-dot-fade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
  18% { opacity: .92; transform: translate(-50%, -50%) scale(1); }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dot-drift-x)), calc(-50% + var(--dot-drift-y))) scale(.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-dot-layer { display: none !important; }
}

/* Sweep a colored underline beneath the profile links on hover or focus. */
.hero-social {
  --social-underline-thickness: 1px;
  --social-underline-offset: -1px;
  isolation: isolate;
  position: relative;
  transition: border-color 180ms ease;
}
html[data-design="colorful"] .hero-social {
  --social-underline-thickness: 2px;
  --social-underline-offset: -2px;
}
.hero-social::before {
  background: var(--yellow);
  content: "";
  bottom: var(--social-underline-offset);
  height: var(--social-underline-thickness);
  left: 0;
  position: absolute;
  right: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition: background-color 180ms ease, transform 300ms cubic-bezier(.45, 0, .55, 1);
  z-index: -1;
}
@media (hover: hover) and (pointer: fine) {
  .hero-social:hover::before {
    transform: scaleX(1);
    transform-origin: left center;
  }
}
html[data-design="simple"] .hero-social:hover,
html[data-design="colorful"] .hero-social:hover,
html[data-design="simple"] .hero-social:focus-visible,
html[data-design="colorful"] .hero-social:focus-visible {
  border-color: transparent;
  color: #102d3c;
}
html[data-design="simple"] .hero-social:focus-visible::before,
html[data-design="colorful"] .hero-social:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Sweep a theme-colored band through the R-524 letterforms only. */
.hero h1 {
  isolation: isolate;
  max-width: 100%;
  position: relative;
  width: fit-content;
}
.hero-title-base { display: block; white-space: nowrap; }
.hero .hero-title-sweep {
  -webkit-text-stroke: 0.5px var(--navy);
  color: #39bad7;
  inset: 0;
  -webkit-mask-image: linear-gradient(45deg, transparent 42%, #000 47% 53%, transparent 58%);
  mask-image: linear-gradient(45deg, transparent 42%, #000 47% 53%, transparent 58%);
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  paint-order: stroke fill;
  pointer-events: none;
  position: absolute;
  white-space: nowrap;
}
html[data-design="colorful"] .hero .hero-title-sweep { color: #ffe11a; }
@keyframes hero-title-band-sweep {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}
@media (hover: hover) and (pointer: fine) {
  .hero h1:hover .hero-title-sweep {
    animation: hero-title-band-sweep 900ms cubic-bezier(.45, 0, .25, 1) both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title-sweep {
    animation: none !important;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;
  }
}

/* Keep the illustration close and project cards compact at mid-sized widths. */
@media (min-width: 640px) and (max-width: 760px) {
  html[data-design="colorful"] .hero {
    --hero-art-size: clamp(134px, 24vw, 160px);
  }
  html[data-design="colorful"] .hero-art {
    right: clamp(120px, 22vw, 150px);
  }
}

/* Reveal an accessible aqua text fill and underline on a white backing. */
@supports (background-clip: text) or (-webkit-background-clip: text) {
  #works-title,
  #goods-title,
  #hobby-title {
    --section-heading-progress: 0%;
    --section-heading-accent: #08758d;
    background:
      linear-gradient(90deg, var(--section-heading-accent) 50%, var(--navy) 0)
        calc(100% - var(--section-heading-progress)) 0 / 200% 100% no-repeat,
      linear-gradient(var(--section-heading-accent) 0 0)
        0 100% / var(--section-heading-progress) 3px no-repeat,
      linear-gradient(#fff 0 0)
        0 0 / var(--section-heading-progress) 100% no-repeat;
    -webkit-background-clip: text, padding-box, padding-box;
    background-clip: text, padding-box, padding-box;
    color: transparent;
    transition: background-position 500ms ease, background-size 500ms ease;
  }

  html[data-design="colorful"] #works-title,
  html[data-design="colorful"] #goods-title,
  html[data-design="colorful"] #hobby-title {
    border-bottom-color: transparent;
  }

  @media (hover: hover) and (pointer: fine) {
    #works-title:hover,
    #goods-title:hover,
    #hobby-title:hover {
      --section-heading-progress: 100%;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    #works-title,
    #goods-title,
    #hobby-title { transition: none; }
  }
}

/* Give the header labels a little more presence. */
.brand-mark { font-size: 18px; }
.site-nav a { font-size: 16px; }
.design-toggle { font-size: 15px; }

@media (max-width: 760px) {
  .brand-mark { font-size: 15px; }
  .site-nav a { font-size: 13px; }
  .design-toggle { font-size: 14px; }
}

@media (max-width: 420px) {
  .site-nav a { font-size: 12px; }
}

/* Keep the original section-title sizing and color with an aqua button fill. */
html[data-design="simple"] #works-title,
html[data-design="simple"] #goods-title,
html[data-design="simple"] #speakerdeck-title,
html[data-design="simple"] #hobby-title {
  background: linear-gradient(90deg, #08758d 50%, #fff 50%) 100% 0 / 200% 100% no-repeat;
  background-clip: border-box;
  -webkit-background-clip: border-box;
  border: 1px solid var(--navy);
  border-radius: 0;
  box-shadow: none;
  color: var(--navy);
  display: inline-block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0;
  padding: 14px 16px;
  transition: background-position 500ms ease, color 500ms ease, border-color 500ms ease;
}

@media (hover: hover) and (pointer: fine) {
  html[data-design="simple"] #works-title:hover,
  html[data-design="simple"] #goods-title:hover,
  html[data-design="simple"] #speakerdeck-title:hover,
  html[data-design="simple"] #hobby-title:hover {
    background-position: 0 0;
    color: #fff;
    border-color: #08758d;
  }
}

@media (prefers-reduced-motion: reduce) {
html[data-design="simple"] #works-title,
html[data-design="simple"] #goods-title,
html[data-design="simple"] #speakerdeck-title,
html[data-design="simple"] #hobby-title {
  transition: none;
}
}

/* Match the colorful-mode section labels to the cyan-and-yellow reference. */
html[data-design="colorful"] .section-heading > div { flex: 0 0 auto; }
html[data-design="colorful"] #works-title,
html[data-design="colorful"] #goods-title,
html[data-design="colorful"] #speakerdeck-title,
html[data-design="colorful"] #hobby-title {
  background: var(--cyan);
  background-clip: border-box;
  -webkit-background-clip: border-box;
  border: 0;
  color: var(--navy);
  display: inline-block;
  padding: 18px 8px 20px;
  position: relative;
  width: fit-content;
}
html[data-design="colorful"] #works-title::after,
html[data-design="colorful"] #goods-title::after,
html[data-design="colorful"] #speakerdeck-title::after,
html[data-design="colorful"] #hobby-title::after {
  background: var(--yellow);
  bottom: 6px;
  content: "";
  height: 5px;
  left: 8px;
  right: 8px;
  position: absolute;
  transform: scaleX(1);
  transform-origin: left center;
}
@media (hover: hover) and (pointer: fine) {
  html[data-design="colorful"] #works-title:hover::after,
  html[data-design="colorful"] #goods-title:hover::after,
  html[data-design="colorful"] #speakerdeck-title:hover::after,
  html[data-design="colorful"] #hobby-title:hover::after {
    animation: section-heading-underline 520ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
@keyframes section-heading-underline {
  0% { transform: scaleX(0); }
  78% { transform: scaleX(1.08); }
  100% { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-design="colorful"] #works-title::after,
  html[data-design="colorful"] #goods-title::after,
  html[data-design="colorful"] #speakerdeck-title::after,
  html[data-design="colorful"] #hobby-title::after {
    animation: none !important;
  }
}

/* Give the white-theme header brand a little more room. */
html[data-design="simple"] .brand-icon {
  flex-basis: 38px;
  height: 38px;
  width: 38px;
}
html[data-design="simple"] .brand-icon img {
  height: 55px;
  left: -15.5px;
  top: -8.5px;
  width: 69px;
}
html[data-design="simple"] .brand-mark { font-size: 20px; }

@media (max-width: 760px) {
  html[data-design="simple"] .brand-icon {
    flex-basis: 34px;
    height: 34px;
    width: 34px;
  }
  html[data-design="simple"] .brand-icon img {
    height: 49px;
    left: -14px;
    top: -7.5px;
    width: 62px;
  }
  html[data-design="simple"] .brand-mark { font-size: 17px; }
}

/* Show Speaker Deck presentations in the same browseable card style as posts. */
#speakerdeck .speakerdeck-card {
  align-items: stretch;
  background: var(--paper) !important;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 22px;
}
#speakerdeck .speakerdeck-card::before { display: none; }
#speakerdeck .speakerdeck-card .card-content { align-self: stretch; margin: 0; max-width: none; }
#speakerdeck .speakerdeck-card:hover {
  background: var(--paper) !important;
  box-shadow: 0 8px 20px rgba(29, 42, 51, 0.08);
  transform: translateY(-2px);
}
html[data-design="colorful"] #speakerdeck .speakerdeck-card {
  background: var(--card-bg, var(--paper)) !important;
  border: 2px solid var(--navy);
  border-bottom-width: 4px;
  border-radius: 12px;
  box-shadow: 3px 3px 0 rgba(16, 45, 60, 0.35);
  color: var(--card-foreground, var(--navy));
  padding: 24px;
}
html[data-design="colorful"] #speakerdeck .speakerdeck-card:hover {
  background: var(--card-bg, var(--paper)) !important;
  box-shadow: 5px 5px 0 rgba(16, 45, 60, 0.45);
  transform: translateY(-2px);
}
.speakerdeck-card-actions {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
html[data-design="simple"] #speakerdeck .speakerdeck-card {
  background: transparent !important;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 22px;
}
html[data-design="simple"] #speakerdeck .speakerdeck-card:hover {
  background: #fafbfb !important;
  box-shadow: none;
  transform: none;
}
.speakerdeck-grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
}
.speakerdeck-item {
  background: #fffdf4;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 7px 16px rgba(16, 45, 60, 0.18);
  color: var(--navy);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  position: relative;
  text-decoration: none;
  transition: box-shadow 220ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0;
}
.speakerdeck-item::before {
  background: url("assets/speakerdeck-binding.svg") 0 0 / 34px 22px repeat-y;
  bottom: 8px;
  content: "";
  filter: drop-shadow(0 1px 1px rgba(16, 45, 60, 0.28));
  left: -25px;
  pointer-events: none;
  position: absolute;
  top: 8px;
  width: 34px;
  z-index: 3;
}
.speakerdeck-item:hover {
  box-shadow: 0 10px 22px rgba(16, 45, 60, 0.22);
  transform: translate(-2px, -3px) rotate(-0.4deg);
  z-index: 1;
}
.speakerdeck-item:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.speakerdeck-item > img {
  aspect-ratio: 16 / 9;
  border-radius: 6px 6px 0 0;
  display: block;
  object-fit: cover;
  width: 100%;
}
.speakerdeck-item-copy {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: 14px;
  justify-content: space-between;
  min-height: 90px;
  padding: 12px;
}
.speakerdeck-item-title {
  display: -webkit-box;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.speakerdeck-item-meta {
  align-items: center;
  color: var(--navy-soft);
  display: flex;
  font-size: 11px;
  justify-content: space-between;
}
@media (max-width: 1060px) {
  .speakerdeck-grid {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 4px 24px 12px 32px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline-start: 24px;
    scrollbar-color: var(--navy-soft) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .speakerdeck-item {
    flex: 0 0 max(326px, min(86vw, 380px));
    scroll-snap-align: start;
  }
  .speakerdeck-scroll-navigation:not([hidden]) { display: flex; }
}

@media (max-width: 600px) {
  #speakerdeck .speakerdeck-card { padding: 16px; }
}

@media (max-width: 760px) {
  html[data-design="colorful"] #speakerdeck .speakerdeck-card { padding: 22px; }
}
