:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-synthesis: none;
  --blue: #0066cc;
  --blue-focus: #0071e3;
  --blue-on-dark: #2997ff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-dark: #272729;
  --black: #000000;
  --hairline: #e0e0e0;
  --content: 1200px;
  --nav-content: 980px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: white;
  background: var(--blue);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-150%);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.global-nav,
.profile-nav {
  position: fixed;
  right: 0;
  left: 0;
}

.global-nav {
  z-index: 100;
  top: 0;
  height: 44px;
  color: white;
  background: var(--black);
}

.nav-inner,
.profile-nav-inner {
  display: flex;
  width: min(100% - 40px, var(--nav-content));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.wordmark,
.nav-company,
.profile-nav-name,
.profile-nav-link {
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.wordmark-dot {
  width: 7px;
  height: 7px;
  background: white;
  border-radius: 50%;
}

.nav-company {
  display: inline-flex;
  min-height: 44px;
  gap: 6px;
  align-items: center;
  color: #d2d2d7;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.nav-company:hover,
.nav-company:focus-visible {
  color: white;
}

.profile-nav {
  z-index: 90;
  top: 44px;
  height: 52px;
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.profile-nav-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-nav-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.profile-nav-link {
  color: #333333;
  font-size: 12px;
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

main {
  padding-top: 96px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  padding: 11px 22px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, transform 120ms ease;
}

.button:active,
.flip-button:active {
  transform: scale(0.95);
}

.button:focus-visible,
.text-link:focus-visible,
.flip-button:focus-visible,
.site-footer a:focus-visible,
.profile-nav a:focus-visible,
.global-nav a:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 3px;
}

.button-small {
  min-height: 32px;
  padding: 8px 15px;
  color: white;
  background: var(--ink);
  font-size: 12px;
}

.button-primary {
  color: white;
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-focus);
}

.button-large {
  min-height: 48px;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 300;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  color: var(--blue);
  font-size: 17px;
  letter-spacing: -0.022em;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 96px);
  min-height: calc(100svh - 96px);
  padding: clamp(64px, 9vw, 112px) 24px 80px;
  background: var(--canvas);
  place-items: center;
}

.hero-inner {
  display: grid;
  width: min(100%, var(--content));
  margin: 0 auto;
  gap: clamp(48px, 8vw, 112px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
}

.eyebrow,
.section-index {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--muted);
}

.hero-name {
  margin: 0;
  font-size: clamp(56px, 8vw, 108px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero-name [data-char] {
  will-change: transform, opacity;
}

.hero-details {
  margin-top: 32px;
}

.roman-name,
.hero-role {
  margin: 0;
}

.roman-name {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.14;
}

.hero-role {
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.022em;
}

.hero-actions {
  display: flex;
  margin-top: 32px;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  width: min(100%, 520px);
  justify-self: end;
}

.monogram {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--blue);
}

.monogram-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2;
}

.monogram-line-muted {
  stroke: #d2d2d7;
}

.monogram-line-accent {
  stroke: currentColor;
  stroke-width: 8;
}

.monogram-dot {
  fill: currentColor;
}

.hero-art-meta {
  display: flex;
  width: calc(100% - 64px);
  margin: 12px auto 0;
  padding-top: 12px;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue-line {
  display: block;
  width: 28px;
  height: 1px;
  overflow: hidden;
  background: var(--hairline);
}

.scroll-cue-line::after {
  display: block;
  width: 100%;
  height: 100%;
  content: "";
  background: var(--blue);
  animation: scroll-pulse 1.8s ease-in-out infinite;
  transform: translateX(-100%);
}

.role-panel {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 136px) 24px 120px;
  overflow: hidden;
  color: white;
  background: var(--tile-dark);
  align-items: center;
}

.role-panel-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--content));
  margin: 0 auto;
}

.section-index {
  color: #cccccc;
}

.section-index span {
  padding: 0 6px;
  color: var(--blue-on-dark);
}

.section-index-dark {
  color: var(--muted);
}

.section-index-dark span {
  color: var(--blue);
}

.role-heading-wrap {
  margin-top: clamp(80px, 12vw, 144px);
}

.role-heading {
  display: flex;
  margin: 0;
  flex-direction: column;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.84;
  perspective: 800px;
}

.role-word {
  display: block;
  width: max-content;
  max-width: 100%;
  will-change: transform, opacity;
}

.role-word-outline {
  align-self: flex-end;
  color: transparent;
  -webkit-text-stroke: clamp(1px, 0.12vw, 2px) white;
}

.role-word-plumber {
  margin-left: clamp(32px, 11vw, 160px);
}

.role-japanese {
  margin: 48px 0 0;
  color: #cccccc;
  font-size: 17px;
  letter-spacing: -0.022em;
}

.role-owner {
  margin: clamp(72px, 12vw, 128px) 0 0;
  color: white;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.role-owner span {
  padding: 0 8px;
  color: var(--blue-on-dark);
}

.kinetic-window {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  z-index: 1;
  overflow: hidden;
  opacity: 0.07;
  pointer-events: none;
}

.kinetic-track {
  width: max-content;
  margin: 0;
  font-size: clamp(64px, 12vw, 180px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  white-space: nowrap;
  will-change: transform;
}

.card-section {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(80px, 10vw, 136px) 24px;
  background: var(--parchment);
  align-items: center;
}

.card-section-inner {
  display: grid;
  width: min(100%, var(--content));
  margin: 0 auto;
  gap: clamp(56px, 8vw, 112px);
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1fr);
  align-items: center;
}

.section-heading h2,
.company-panel h2 {
  margin: 32px 0 0;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.07;
}

.section-heading > p:last-child {
  max-width: 20em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  letter-spacing: -0.022em;
}

#card-title {
  white-space: nowrap;
}

.card-exhibit {
  min-width: 0;
  perspective: 1400px;
}

.card-tilt {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-flipper {
  position: relative;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  transform-style: preserve-3d;
  will-change: transform;
}

.card-face {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: black;
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
}

.card-back {
  transform: rotateY(180deg);
}

.card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-role-update {
  position: absolute;
  top: 68.2%;
  left: 59.1%;
  display: flex;
  width: 37%;
  height: 7.2%;
  padding-left: 0.4%;
  align-items: center;
  color: white;
  background: black;
  font-size: clamp(7px, 0.78vw, 12px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.card-controls {
  display: flex;
  margin-top: 28px;
  gap: 14px;
  align-items: center;
  justify-content: center;
}

.flip-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: rgba(210, 210, 215, 0.64);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition: background-color 160ms ease, transform 120ms ease;
}

.flip-button:hover {
  background: #d2d2d7;
}

.flip-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.card-side-status {
  min-width: 86px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.company-panel {
  display: grid;
  min-height: 76vh;
  min-height: 76svh;
  padding: clamp(96px, 12vw, 160px) 24px;
  text-align: center;
  background: var(--canvas);
  place-items: center;
}

.company-panel-inner {
  width: min(100%, 860px);
}

.company-panel .section-index {
  text-align: left;
}

.company-panel h2 {
  font-size: clamp(64px, 12vw, 148px);
}

.contact-list {
  margin: clamp(56px, 8vw, 88px) 0 0;
}

.contact-row {
  display: grid;
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: baseline;
}

.contact-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.contact-row dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.contact-row dd {
  min-width: 0;
  margin: 0;
}

.contact-row a {
  color: var(--ink);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  text-decoration: none;
}

.contact-row a:hover {
  color: var(--blue);
}

.contact-row a:focus-visible {
  outline: 2px solid var(--blue-focus);
  outline-offset: 5px;
}

.contact-actions {
  display: flex;
  margin-top: 40px;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.contact-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.site-footer {
  display: flex;
  min-height: 112px;
  padding: 32px max(24px, calc((100vw - var(--nav-content)) / 2));
  align-items: center;
  justify-content: space-between;
  color: #7a7a7a;
  background: var(--parchment);
  font-size: 12px;
  letter-spacing: -0.01em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #333333;
  text-decoration: none;
}

@keyframes scroll-pulse {
  0% {
    transform: translateX(-100%);
  }
  50%,
  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 833px) {
  .profile-nav-link {
    display: none;
  }

  .hero-inner,
  .card-section-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    width: min(82vw, 430px);
    justify-self: center;
  }

  .card-section-inner {
    gap: 64px;
  }

  .card-copy {
    text-align: center;
  }

  .card-copy > p:last-child {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .profile-nav-inner {
    width: calc(100% - 32px);
  }

  .profile-nav-name {
    font-size: 16px;
  }

  .hero {
    min-height: calc(100svh - 96px);
    padding: 56px 20px 72px;
  }

  .hero-inner {
    gap: 48px;
  }

  .hero-name {
    font-size: clamp(52px, 17vw, 76px);
  }

  .hero-details {
    margin-top: 24px;
  }

  .roman-name {
    font-size: 24px;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 12px;
  }

  .hero-art {
    width: min(76vw, 340px);
  }

  .scroll-cue {
    display: none;
  }

  .role-panel,
  .card-section {
    padding: 72px 20px;
  }

  .role-heading-wrap {
    margin-top: 88px;
  }

  .role-heading {
    font-size: clamp(54px, 19vw, 84px);
    line-height: 0.9;
  }

  .role-word-outline {
    align-self: flex-start;
  }

  .role-word-plumber {
    margin-left: 0;
  }

  .role-japanese {
    margin-top: 36px;
  }

  .role-owner {
    margin-top: 88px;
  }

  .section-heading h2 {
    margin-top: 24px;
    font-size: 40px;
  }

  .card-section-inner {
    gap: 48px;
  }

  .card-face {
    border-radius: 5px;
  }

  .company-panel {
    min-height: 68svh;
    padding: 88px 20px;
  }

  .company-panel h2 {
    font-size: clamp(60px, 20vw, 92px);
  }

  .contact-row {
    gap: 10px;
    grid-template-columns: 1fr;
  }

  .contact-row a {
    font-size: clamp(25px, 8vw, 34px);
  }

  .contact-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding: 24px 20px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 419px) {
  .hero-name {
    font-size: 52px;
  }

  .hero-art {
    width: min(72vw, 290px);
  }

  .role-heading {
    font-size: 54px;
  }

  .company-panel h2 {
    font-size: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .kinetic-track {
    transform: none !important;
  }
}
