:root {
  --bg: #faf9f2;
  --contact-bg: #1c1f1f;
  --ink: #28332f;
  --prose: #4b5450;
  --muted: #626960;
  --line: #d7dad0;
  --accent: #8bcede;
  --mint: #b2d2cd;
  --serif:
    'Cormorant Garamond', 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman',
    serif;
  --sans:
    'Cormorant Garamond', 'Noto Sans JP', -apple-system, BlinkMacSystemFont,
    'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --focus: #286f81;
  --gutter: max(1.375rem, 5vw);
  color-scheme: light;
}
:root[data-theme='night'] {
  --bg: #1c1f1f;
  --contact-bg: #000000;
  --ink: #f1f0e7;
  --prose: #c9ceca;
  --muted: #bbc3b9;
  --line: #4b554b;
  --focus: #8bcede;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.95 var(--sans);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'palt';
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2.5rem, 5.5vw, 5.4rem);
  letter-spacing: 0.015em;
}
h2 {
  font-size: clamp(1.75rem, 2.65vw, 2.5rem);
  letter-spacing: 0.035em;
}
h3 {
  font-size: 1.625rem;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}
[data-anchor-pointer-focus]:focus {
  outline: none;
}
p {
  overflow-wrap: anywhere;
}
::selection {
  background: var(--mint);
  color: #28332f;
}
.wrap {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
}
.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.075em;
  line-height: 1.7;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(1.75rem, 4.5vw, 4.5rem);
}
.brand {
  display: block;
}
.brand img {
  width: clamp(6.75rem, 10.5vw, 8.5rem);
  height: auto;
  filter: brightness(0) saturate(100%) invert(17%) sepia(10%) saturate(650%) hue-rotate(95deg);
}
:root[data-theme='night'] .brand img {
  filter: brightness(0) invert(96%);
}
.theme {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.2rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
  background: none;
  font-size: 0.8125rem;
}
.sun {
  font-size: 1.5rem;
  line-height: 1;
}
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(1rem, 4vw, 4rem);
  align-items: center;
  min-height: clamp(34rem, 49vw, 47rem);
  padding-top: clamp(3rem, 6vw, 7rem);
  padding-bottom: 2rem;
}
.hero-copy {
  min-width: 0;
}
.home-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.hero-art {
  align-self: center;
  width: 100%;
  max-width: 430px;
  justify-self: end;
}
.mascot {
  width: 100%;
  height: auto;
  overflow: visible; /* Brand mark always stays upright. Only its eyes may move. */
}
.selected-work {
  padding-top: clamp(2.5rem, 4.5vw, 5rem);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-bottom: 2rem;
}
.section-label {
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.section-head > p {
  font-size: 0.875rem;
  color: var(--muted);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.75rem);
}
.work-card {
  min-width: 0;
}
.work-card-link {
  display: block;
  border-radius: 1.5rem;
}
.card-image {
  position: relative;
  width: 100%;
  min-height: 20rem;
  aspect-ratio: 3/4.1;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #dbe1d8;
}
.card-image:after {
  content: '';
  position: absolute;
  inset: 32% 0 0;
  background: linear-gradient(transparent, rgba(10, 24, 20, 0.82));
  pointer-events: none;
}
.card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.card-image.jobkul > img {
  object-position: 47% center;
}
.card-image.bcg > img {
  object-position: center;
}
.card-caption {
  overflow-wrap: anywhere;
  position: absolute;
  z-index: 1;
  bottom: 1.65rem;
  left: clamp(1rem, 2vw, 1.75rem);
  right: 1rem;
  color: #fff;
}
.card-caption > span {
  font-size: 0.75rem;
  line-height: 1.6;
  display: block;
  margin-bottom: 0.45rem;
}
.card-caption h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.6;
}
.card-arrow {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  top: 0.8rem;
  color: #fff;
  font-size: 1.35rem;
  text-shadow: 0 1px 4px #23352d;
}
.card-scope {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.85;
  padding: 0.9rem 0.2rem 0;
}
.section-end {
  display: flex;
  justify-content: center;
  margin-top: 3.25rem;
}
.pill-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  border: 1px solid var(--muted);
  border-radius: 3rem;
  min-height: 48px;
  padding: 0.5rem clamp(1rem, 2vw, 1.75rem);
  min-width: min(220px, 100%);
  max-width: 100%;
  font: 1rem/1.5 var(--serif);
}
.pill-link:hover {
  background: var(--ink);
  color: var(--bg);
}
.page-head {
  padding-top: clamp(3.5rem, 9vw, 8.5rem);
}
.page-head h1 {
  margin-top: clamp(2.3rem, 4vw, 4rem);
}
.page-intro {
  margin-top: 1.5rem;
  max-width: 38rem;
  color: var(--muted);
}
.work-list {
  padding-top: 2.75rem;
  padding-bottom: clamp(5rem, 10vw, 10rem);
}
.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 8vw, 8rem);
  align-items: start;
}
.story-copy section + section {
  margin-top: clamp(3rem, 6vw, 6rem);
}
.story-copy :is(h2, h3),
.service-opening .statement-heading {
  margin-bottom: 1.5rem;
}
.story-copy p + p {
  margin-top: 1.2rem;
}
.profile-photo {
  margin-top: 0;
}
.profile-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 2px;
}
.company-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: 1rem;
  padding-bottom: clamp(5rem, 10vw, 10rem);
}
.company-section .eyebrow {
  color: var(--muted);
  margin-top: 0.75rem;
}
.company {
  margin: 0;
}
.company > div {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.company dt {
  font-size: 0.875rem;
  color: var(--muted);
}
.company dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.company dd a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.company dd span {
  display: inline-block;
  font-size: 0.875rem;
}
.service-opening {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding-top: clamp(3rem, 7vw, 7rem);
}
.service-opening > p {
  line-height: 2.2;
}
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(2.5rem, 5vw, 5rem) 0;
  border-top: 1px solid var(--line);
}
.service-title .eyebrow {
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.service-title :is(h2, h3) {
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
}
.service-copy p + p {
  margin-top: 1rem;
}
.service-list {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}
.contact {
  --prose: #c9ceca;
  --focus: #8bcede;
  background: var(--contact-bg);
  color: #f8f7ef;
  text-align: center;
  padding: clamp(4rem, 8vw, 8rem) var(--gutter);
}
.contact-content {
  max-width: 45rem;
  margin-inline: auto;
}
.contact .eyebrow {
  color: #c7d7cd;
}
.contact h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  margin: 1.2rem 0 1.4rem;
}
.contact p:not(.eyebrow) {
  color: var(--prose);
  line-height: 2.1;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 2.5rem);
  font-size: clamp(1rem, 2vw, 1.375rem);
  border-bottom: 1px solid #b2d2cd;
  padding: 0.65rem 0;
  margin-top: 1.6rem;
  min-height: 48px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.contact-link:hover {
  color: var(--accent);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer a,
.footer .analytics-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font: 1rem/1.5 var(--serif);
  padding: 0.3rem 0;
  color: inherit;
  text-decoration: none;
}
.footer a:hover,
.footer .analytics-settings:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.case-intro {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}
.back-link {
  display: inline-block;
  font: 1rem/1.7 var(--serif);
  padding: 0.5rem 0;
}
.case-summary {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}
.case-lead {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.7;
}
.case-summary dl {
  margin: 0;
}
.case-summary dl > div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.case-summary dt {
  font-size: 0.8125rem;
  color: var(--muted);
}
.case-summary dd {
  margin: 0;
  font-size: 0.9375rem;
}
.case-visual {
  width: 100%;
  background: #fff;
  overflow: hidden;
}
.case-visual img {
  width: 100%;
  height: clamp(18rem, 43vw, 42rem);
  object-fit: cover;
}
.case-visual.bcg img {
  object-position: center 49%;
}
.case-visual.lawson {
  background: #4399be;
}
.case-visual.lawson img {
  object-fit: contain;
}
.case-body {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}
.case-body h2 {
  font-size: 1.75rem;
}
.case-body p + p {
  margin-top: 1.3rem;
}
.case-end {
  margin-top: 0;
  padding-bottom: 5rem;
}
.skip {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 20px;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  transform: translateY(-200%);
}
.skip:focus {
  transform: none;
}
@media (hover: hover) {
  .work-card-link:hover img {
    transform: scale(1.035);
  }
}

@media (max-width: 1000px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    min-height: 34rem;
    gap: 1.25rem;
  }
  .home-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.3rem);
  }
  .work-grid {
    gap: 1.3rem;
  }
  .card-caption h3 {
    font-size: 1.25rem;
  }
  .card-image {
    border-radius: 1.2rem;
  }
  .about-story {
    gap: 3rem;
  }
  .case-summary {
    gap: 2rem;
  }
}
@media (max-width: 760px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    padding-top: 4rem;
    min-height: 30rem;
  }
  .home-hero h1 {
    font-size: clamp(1.8rem, 4.6vw, 2.5rem);
  }
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
  .work-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .about-story {
    gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .company-section {
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
  }
  .service-opening,
  .service-row {
    gap: 2rem;
  }
  .case-body {
    gap: 2rem;
    grid-template-columns: 1fr 1.5fr;
  }
  .case-summary {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 560px) {
  .header {
    padding-top: 2rem;
  }
  .home-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2.5rem;
    padding-top: 3.75rem;
    padding-bottom: 1rem;
    min-height: 0;
  }
  .home-hero h1 {
    font-size: clamp(2rem, 9.472vw, 3.18rem);
    letter-spacing: 0.025em;
  }
  .name-line {
    white-space: normal;
  }
  .hero-copy {
    width: 100%;
  }
  .hero-art {
    width: 68%;
    max-width: 255px;
    align-self: center;
    margin-right: 0;
  }
  .selected-work {
    padding-top: 3rem;
  }
  .section-head {
    margin-bottom: 1.5rem;
  }
  .section-label {
    font-size: 1.4rem;
  }
  .section-head > p {
    font-size: 0.8125rem;
  }
  .work-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .card-image {
    aspect-ratio: 1/1.12;
    border-radius: 1.3rem;
  }
  .card-caption {
    bottom: 1.6rem;
    left: 1.5rem;
  }
  .card-caption h3 {
    font-size: 1.6rem;
  }
  .card-caption > span {
    font-size: 0.8125rem;
  }
  .card-scope {
    font-size: 0.8125rem;
  }
  .section-end {
    margin-top: 2.5rem;
  }
  .page-head {
    padding-top: 3.5rem;
  }
  .page-head h1 {
    font-size: clamp(2.4rem, 10vw, 3.5rem);
    margin-top: 2.3rem;
  }
  .page-intro {
    font-size: 0.9375rem;
    margin-top: 1rem;
  }
  .work-list {
    padding-top: 2rem;
  }
  .about-story {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-top: 2.5rem;
  }
  .story-copy p {
    font-size: 1rem;
  }
  .profile-photo {
    width: min(100%, 320px);
    align-self: flex-start;
  }
  .company-section {
    display: block;
    padding-top: 1rem;
  }
  .company-section > div:first-child {
    margin-bottom: 2rem;
  }
  .company > div {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .service-opening {
    display: block;
    padding-top: 2.5rem;
  }
  .service-opening p br {
    display: none;
  }
  .service-row {
    display: block;
    padding-block: 2.5rem;
  }
  .service-title {
    margin-bottom: 1.5rem;
  }
  .service-title :is(h2, h3) {
    font-size: 1.65rem;
  }
  .service-title .eyebrow {
    font-size: 0.75rem;
  }
  .contact h2 {
    font-size: clamp(1.5rem, 6.1vw, 1.95rem);
  }
  .contact p:not(.eyebrow) {
    font-size: 0.9375rem;
  }
  .contact p br {
    display: none;
  }
  .contact-link {
    font-size: 1.125rem;
  }
  .case-intro {
    padding-bottom: 2.5rem;
  }
  .case-summary {
    margin-top: 1.8rem;
  }
  .case-lead {
    font-size: 1.5rem;
  }
  .case-summary dd {
    font-size: 0.875rem;
  }
  .case-body {
    display: block;
  }
  .case-body h2 {
    margin-bottom: 1.5rem;
  }
  .case-visual img {
    height: auto;
    min-height: 15rem;
    max-height: 32rem;
    object-fit: cover;
  }
  .case-end {
    padding-bottom: 3.5rem;
  }
  .footer {
    font-size: 0.75rem;
  }
  .footer a,
  .footer .analytics-settings {
    font-size: 0.875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
}
.mail-button:hover {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 560px) {
  .header-actions {
    gap: 0.5rem;
  }
}

/* Wide layouts share a fluid outer grid; prose keeps a comfortable measure. */
@media (min-width: 1001px) {
  :root {
    --space-section: clamp(5rem, 7.5vw, 12rem);
    --space-column: clamp(3rem, 5vw, 10rem);
  }
  .header {
    padding-top: clamp(3rem, 4vw, 6rem);
  }
  .brand img {
    width: clamp(8rem, 8vw, 11rem);
  }
  .section {
    padding-block: var(--space-section);
  }
  h1 {
    font-size: clamp(3.5rem, 5.5vw, 8rem);
  }
  h2 {
    font-size: clamp(2rem, 2.6vw, 3.5rem);
  }
  .home-hero {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: var(--space-column);
    min-height: clamp(34rem, 40vw, 64rem);
    padding-block: clamp(3rem, 4vw, 7rem);
  }
  .home-hero h1 {
    font-size: clamp(2.8rem, 4.5vw, 7.5rem);
  }
  .hero-art {
    width: 100%;
    max-width: clamp(26rem, 27vw, 46rem);
  }
  .selected-work {
    padding-top: clamp(3rem, 4vw, 6rem);
  }
  .section-head {
    margin-bottom: clamp(2rem, 2.5vw, 4rem);
  }
  .section-label {
    font-size: clamp(1.5rem, 1.6vw, 2.25rem);
  }
  .work-grid {
    gap: clamp(1.75rem, 2.5vw, 4rem);
  }
  .card-image {
    aspect-ratio: auto;
    height: clamp(25rem, 36vw, 58rem);
  }
  .card-caption {
    left: clamp(1.5rem, 2vw, 3rem);
    right: clamp(1.5rem, 2vw, 3rem);
    bottom: clamp(1.75rem, 2.5vw, 3.5rem);
  }
  .card-caption h3 {
    font-size: clamp(1.4rem, 1.7vw, 2.25rem);
  }
  .card-caption > span,
  .card-scope {
    font-size: clamp(0.8125rem, 0.85vw, 1rem);
  }
  .section-end {
    margin-top: clamp(3.25rem, 4.5vw, 7rem);
  }
  .page-head {
    padding-top: clamp(5rem, 7vw, 11rem);
  }
  .page-head h1 {
    margin-top: clamp(3rem, 4vw, 6rem);
  }
  .work-list {
    padding-top: clamp(3rem, 4vw, 6rem);
    padding-bottom: var(--space-section);
  }
  .about-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-column);
  }
  .story-copy {
    max-width: 42rem;
  }
  .story-copy section + section {
    margin-top: clamp(4rem, 6vw, 9rem);
  }
  .story-copy :is(h2, h3),
  .service-opening .statement-heading {
    margin-bottom: clamp(1.5rem, 2vw, 3rem);
  }
  .profile-photo {
    width: 100%;
    max-width: 42rem;
    justify-self: end;
  }
  .company-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-column);
    padding-top: 0;
    padding-bottom: var(--space-section);
  }
  .company-section > div:last-child {
    width: 100%;
    max-width: 48rem;
    justify-self: end;
  }
  .service-opening,
  .service-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-column);
  }
  .service-opening {
    padding-top: var(--space-section);
  }
  .service-opening > p,
  .service-copy {
    width: 100%;
    max-width: 42rem;
    justify-self: end;
  }
  .service-row {
    padding-block: clamp(3rem, 5vw, 8rem);
  }
  .service-title :is(h2, h3) {
    font-size: clamp(1.75rem, 2.5vw, 3rem);
  }
  .case-intro {
    padding-bottom: clamp(3.5rem, 5vw, 8rem);
  }
  .case-summary,
  .case-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-column);
  }
  .case-summary {
    margin-top: clamp(3rem, 4vw, 6rem);
  }
  .case-lead {
    max-width: 42rem;
    font-size: clamp(1.5rem, 2.4vw, 3rem);
  }
  .case-summary dl,
  .case-body > div {
    width: 100%;
    max-width: 42rem;
    justify-self: end;
  }
  .case-visual img {
    height: clamp(28rem, 43vw, 70rem);
  }
  .case-body h2 {
    font-size: clamp(1.75rem, 2.5vw, 3rem);
  }
  .case-end {
    margin-top: 0;
    padding-bottom: var(--space-section);
  }
  .contact {
    padding-block: var(--space-section);
  }
  .contact-content {
    max-width: 56rem;
  }
  .contact h2 {
    font-size: clamp(2.25rem, 3vw, 4rem);
    margin-block: clamp(1.5rem, 2vw, 3rem);
  }
  .footer {
    padding-block: clamp(1.75rem, 2.5vw, 4rem);
  }
}

/* Keep controls and card text usable when visitors enlarge their text. */
@media (max-width: 560px) {
  .header {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .header-actions {
    margin-left: auto;
  }
  .card-image {
    min-height: 20rem;
  }
}

/* Editorial rhythm: measured headings, comfortable prose and spacious lists. */
:root {
  --body-size: 1rem;
  --prose-leading: 1.9;
  --prose-tracking: normal;
  --reading-measure: 34em;
}
body {
  font-size: var(--body-size);
  line-height: var(--prose-leading);
  letter-spacing: var(--prose-tracking);
}
h1,
h2,
h3,
.home-hero h1,
.story-copy :is(h2, h3),
.service-opening :is(h2, h3),
.service-title :is(h2, h3),
.card-caption h3 {
  line-height: 1.5;
  letter-spacing: 0.04em;
}
/* Shared Japanese statements retain the same type scale at every width. */
.statement-heading {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.65vw, 3.5rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}
h1.latin-heading,
h2.latin-heading,
h3.latin-heading,
.card-caption h3.latin-heading {
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.eyebrow {
  letter-spacing: 0.01em;
}
.story-copy p,
.service-opening > p,
.service-copy p,
.case-body p,
.page-intro,
.contact p:not(.eyebrow) {
  font-size: var(--body-size);
  line-height: var(--prose-leading);
  letter-spacing: var(--prose-tracking);
}
.story-copy p,
.service-opening > p,
.service-copy,
.case-body > div,
.page-intro {
  max-width: var(--reading-measure);
}
.story-copy p + p,
.service-copy p + p,
.case-body p + p {
  margin-top: 1.25em;
}
.eyebrow,
.card-scope,
.card-caption > span {
  font-size: 0.875rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
}
@media (min-width: 1001px) {
  :root {
    --body-size: 1.0625rem;
  }
}

/* Prose is slightly quieter than headings; dark contact panels keep a light tone. */
p:not(.eyebrow):not(.card-scope) {
  color: var(--prose);
}

/* Continuous reading uses a consistent sans serif for Japanese and Latin. */
:root {
  --body-font:
    'Noto Sans JP', 'Helvetica Neue', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Arial,
    'Yu Gothic', Meiryo, sans-serif;
}
p:not(.eyebrow),
.company dd,
.case-summary dd {
  font-family: var(--body-font);
  letter-spacing: normal;
}

/* Black-based tones keep the night hero mark quietly visible. */
:root[data-theme='night'] .home-hero .mascot [fill='#8bcede'] {
  fill: #080b0b;
}
:root[data-theme='night'] .home-hero .mascot [fill='#b2d2cd'] {
  fill: #121616;
}

/* Services move from a reading column to two- and three-column layouts. */
.service-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 6rem);
  row-gap: 0;
}
.service-list .service-row {
  display: block;
  min-width: 0;
  padding: clamp(2rem, 3vw, 3.5rem) 0;
}
.service-list .service-title {
  margin-bottom: 1.25rem;
}
.service-list .service-title :is(h2, h3) {
  font-size: clamp(1.65rem, 2vw, 2.25rem);
}
.service-list .service-copy {
  width: 100%;
  justify-self: auto;
}
@media (min-width: 700px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: clamp(1rem, 2vw, 3rem);
  }
}
@media (min-width: 1200px) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Match the presentation's close, vertical view of the studio desk. */
.office-photo-crop {
  position: relative;
  aspect-ratio: 8/11;
  overflow: hidden;
  border-radius: 2px;
}
.office-photo .office-photo-crop img {
  position: absolute;
  /* The source is cropped horizontally to match the original 4x enlargement. */
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: auto;
  left: 0;
  top: -46.667%;
  border-radius: 0;
  transform: translateY(var(--photo-offset, 0px));
}

/* A full-width company profile and a small detour in the footer. */
.company-section {
  display: block;
}
.company-section > div:first-child {
  margin-bottom: clamp(2rem, 4vw, 4rem);
}
.company-section > div:last-child {
  width: 100%;
  max-width: none;
}
.company > div {
  grid-template-columns: minmax(6rem, 18%) minmax(0, 1fr);
  padding-block: clamp(1rem, 1.6vw, 1.75rem);
}
.footer {
  flex-wrap: wrap;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-left: auto;
}
.footer .rest-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 0.4rem 1rem;
  border: 1px solid var(--line);
  border-radius: 3rem;
}
.footer .rest-link:hover {
  background: var(--ink);
  color: var(--bg);
}
@media (max-width: 560px) {
  .company > div {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }
  .footer {
    flex-direction: column;
    gap: 1.5rem;
  }
  .footer > span {
    order: 1;
    align-self: center;
    text-align: center;
  }
  .footer-actions {
    justify-content: center;
    width: 100%;
    margin-left: 0;
    gap: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .office-photo .office-photo-crop img {
    transform: none;
  }
}

/* Shared navigation: typography, layout and all responsive sizes live together. */
.site-nav {
  display: flex;
  width: fit-content;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem clamp(1.25rem, 2.6vw, 2.5rem);
  font: 1.125rem/1.2 var(--serif);
  letter-spacing: 0.01em;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid transparent;
  padding: 0.15rem 0;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  border-color: var(--ink);
}
.home-hero .site-nav {
  margin-top: 1.65rem;
}
@media (min-width: 1001px) {
  .site-nav {
    font-size: clamp(1.125rem, 1.15vw, 1.5rem);
    column-gap: clamp(2rem, 2.6vw, 4rem);
  }
  .home-hero .site-nav {
    margin-top: clamp(1.75rem, 2.3vw, 3.5rem);
  }
}
@media (max-width: 1000px) {
  .site-nav {
    font-size: 1rem;
    gap: 0.35rem 1.5rem;
  }
}
@media (max-width: 760px) {
  .home-hero .site-nav {
    max-width: 24rem;
    column-gap: 1.3rem;
  }
}
@media (max-width: 560px) {
  .site-nav,
  .home-hero .site-nav,
  .page-head .site-nav {
    font-size: 1.2rem;
    gap: clamp(0.85rem, 4vw, 1.8rem);
    justify-content: start;
  }
  .home-hero .site-nav {
    margin-top: 1.4rem;
    max-width: none;
  }
  .site-nav a {
    width: max-content;
  }
}

/* Single-page release; the multipage motion lives in the archived Git version. */
.single-page .one-page-section .about-story {
  padding-block: 0;
}
.single-page .service-opening {
  display: block;
  padding-top: 0;
}
.single-page .service-opening > p {
  justify-self: start;
}
.single-page .service-list {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: 0;
}
.single-page .work-pending {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 6rem);
  margin-block: clamp(2rem, 4vw, 4rem);
}
.work-pending p {
  color: var(--prose);
  margin: 0;
}
.single-page .company-section {
  padding-top: clamp(3rem, 6vw, 7rem);
}
.one-page-section,
.work-pending {
  scroll-margin-top: 2rem;
}
@media (max-width: 699px) {
  .single-page .work-pending {
    grid-template-columns: 1fr;
  }
}

/* Self-initiated projects: artwork leads, with the same quiet typography as the site. */
.playground {
  scroll-margin-top: 2rem;
}
.playground-intro {
  margin-top: clamp(2rem, 4vw, 4rem);
  max-width: 48rem;
}
.playground-intro > p {
  margin-top: 1.25rem;
  color: var(--prose);
}
.playground-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 4rem);
  margin-top: clamp(2rem, 4vw, 4rem);
}
.playground-link {
  display: block;
}
.playground-art {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.playground-art--monthiz {
  background: #eadbd0;
}
.playground-art--typefall {
  background: #dce7e4;
}
.playground-art img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: 82%;
  max-width: 84%;
  object-fit: contain;
  box-shadow: 0 8px 24px #17292514;
  transition: transform 0.5s ease;
}
.playground-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
}
.playground-caption h3 {
  font: 400 clamp(1.75rem, 2.6vw, 2.75rem)/1.2 var(--serif);
  letter-spacing: 0;
}
.playground-arrow {
  font: 1.5rem/1 var(--serif);
  transition: transform 0.3s ease;
}
.playground-link > p {
  color: var(--prose);
  margin-block: 0.75rem 1rem;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .playground-link:hover .playground-art img {
    transform: translateY(-4px);
  }
  .playground-link:hover .playground-arrow {
    transform: translate(3px, -3px);
  }
}
@media (max-width: 699px) {
  .playground-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.75rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[data-monthiz-preview],
[data-typefall-preview] {
  position: relative;
}
.typefall-motion {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  height: 82%;
  width: auto;
  max-width: 84%;
  aspect-ratio: 1;
  box-shadow: 0 8px 24px #17292514;
}
[data-typefall-preview].has-motion .typefall-motion {
  display: block;
}
[data-typefall-preview].has-motion .playground-art img {
  visibility: hidden;
}
.monthiz-motion-toggle,
.typefall-motion-toggle {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  border: 1px solid #28332f30;
  border-radius: 50%;
  background: #f5f3ee;
  color: #28332f;
  font: 1rem/1 sans-serif;
}
.monthiz-motion-toggle[hidden],
.typefall-motion-toggle[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-typefall-preview].has-motion .typefall-motion,
  .monthiz-motion-toggle,
  .typefall-motion-toggle {
    display: none;
  }
  [data-typefall-preview].has-motion .playground-art img {
    visibility: visible;
  }
}

/* Keep the paper position fixed as the five calendar designs change. */
.monthiz-frame:not(.is-active) {
  visibility: hidden;
}
