@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Noto+Serif+JP:wght@400;500;600&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --ink: #172a26;
  --paper: #f4efe7;
  --paper-deep: #e9e0d2;
  --white: #fffdf8;
  --clay: #9e5f42;
  --gold: #d4a75d;
  --sage: #91a89c;
  --line: rgba(23, 42, 38, 0.18);
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.04em;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(24px, 6vw, 90px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
  font-style: italic;
}

nav { display: flex; gap: 32px; }

nav a {
  position: relative;
  font-size: 13px;
  text-decoration: none;
}

nav a::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.hero {
  position: relative;
  display: grid;
  min-height: 790px;
  place-items: center;
  overflow: hidden;
  padding: 125px clamp(24px, 8vw, 128px) 90px;
}

.hero::before {
  position: absolute;
  top: -335px;
  left: 50%;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(23, 42, 38, 0.11);
  border-radius: 50%;
  content: "";
  transform: translateX(-50%);
}

.hero::after {
  position: absolute;
  bottom: 73px;
  left: 50%;
  width: min(70vw, 800px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  content: "";
  transform: translateX(-50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(62px, 7.4vw, 106px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

h1 span { display: block; }

.hero-tagline {
  margin: 34px 0 0;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.12em;
}

.hero-lead {
  max-width: 620px;
  margin: 19px auto 33px;
  color: rgba(23, 42, 38, 0.78);
  font-size: 13px;
}

.primary-link {
  display: inline-flex;
  min-width: 190px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.primary-link:hover, .primary-link:focus-visible { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.hero-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.art-frame {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 25px 65px rgba(34, 27, 20, 0.15);
}

.art-frame svg { display: block; width: 100%; height: 100%; }

.art-frame--one { bottom: 30px; left: 4%; width: 205px; height: 250px; transform: rotate(-4deg); }
.art-frame--two { top: 130px; right: 5%; width: 175px; height: 213px; transform: rotate(4deg); }

.art-note {
  position: absolute;
  right: 7%;
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(23, 42, 38, 0.56);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.art-note i { width: 55px; height: 1px; background: var(--line); }

.explore {
  padding: 110px clamp(24px, 8vw, 128px) 120px;
  background: var(--white);
}

.section-heading { display: grid; grid-template-columns: 0.45fr 1.15fr 0.5fr; align-items: end; gap: 42px; margin-bottom: 54px; }
.section-heading .eyebrow { align-self: start; }

.section-heading h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(29px, 3.4vw, 48px);
  line-height: 1.65;
}

.section-heading > p:last-child { margin: 0 0 5px; color: rgba(23, 42, 38, 0.55); font-size: 12px; }

.switcher { border-top: 1px solid var(--line); }

.tab-list {
  display: flex;
  gap: 0;
  width: fit-content;
  margin-bottom: 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tab {
  position: relative;
  min-width: 180px;
  padding: 16px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  color: rgba(23, 42, 38, 0.54);
  background: transparent;
  cursor: pointer;
  font: 500 13px var(--sans);
  letter-spacing: 0.08em;
}

.tab:last-child { border-right: 0; }
.tab.is-active { color: var(--white); background: var(--ink); }
.tab:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.tab-panel { animation: panel-in 420ms ease both; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro { display: grid; grid-template-columns: 0.45fr 1.55fr; gap: 42px; margin-bottom: 55px; }
.panel-number { margin: 4px 0; color: var(--clay); font: 500 13px var(--serif); }

.panel-intro h3 { margin: 0 0 20px; font-size: clamp(25px, 3vw, 40px); line-height: 1.55; }
.panel-intro p:last-child { max-width: 700px; margin: 0; color: rgba(23, 42, 38, 0.68); font-size: 14px; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid article { padding: 32px clamp(18px, 3vw, 42px) 38px; border-right: 1px solid var(--line); }
.service-grid article:last-child { border-right: 0; }
.service-grid article > span { color: var(--clay); font: 26px var(--serif); }
.service-grid h4 { margin: 25px 0 12px; font: 500 18px var(--serif); }
.service-grid p { margin: 0; color: rgba(23, 42, 38, 0.62); font-size: 12px; }

.profile-list { max-width: 850px; margin: 0 auto; border-top: 1px solid var(--line); }
.profile-list div { display: grid; grid-template-columns: 180px 1fr; padding: 19px 8px; border-bottom: 1px solid var(--line); }
.profile-list dt { color: rgba(23, 42, 38, 0.52); font-size: 12px; }
.profile-list dd { margin: 0; font-family: var(--serif); font-size: 15px; }

.closing {
  position: relative;
  display: grid;
  min-height: 540px;
  place-items: center;
  overflow: hidden;
  padding: 100px 24px;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.closing::before, .closing::after {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 253, 248, 0.1);
  border-radius: 50%;
  content: "";
}

.closing::before { top: -130px; left: -100px; }
.closing::after { right: -110px; bottom: -180px; }

.closing-inner { position: relative; z-index: 1; }
.closing .eyebrow { color: var(--gold); }
.closing h2 { margin: 0; font-size: clamp(30px, 4vw, 52px); line-height: 1.7; }
.closing p:not(.eyebrow) { margin: 24px 0 34px; color: rgba(255, 253, 248, 0.68); font-size: 13px; }
.text-link { font-size: 12px; text-underline-offset: 7px; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(24px, 6vw, 90px);
  color: var(--white);
  background: var(--ink);
  border-top: 1px solid rgba(255, 253, 248, 0.13);
}

footer p { margin: 0; color: rgba(255, 253, 248, 0.45); font-size: 10px; letter-spacing: 0.11em; }

.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero { min-height: 760px; padding-top: 140px; }
  .hero-copy { max-width: 760px; }
  .art-frame--one { left: 1.5%; width: 165px; height: 202px; opacity: 0.7; }
  .art-frame--two { top: 115px; right: 1.5%; width: 145px; height: 177px; opacity: 0.7; }
  .art-note { display: none; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .section-heading > p:last-child { margin-top: 12px; }
}

@media (max-width: 620px) {
  body { line-height: 1.8; }
  .site-header { padding: 20px 18px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 29px; height: 29px; }
  nav { gap: 17px; }
  nav a { font-size: 11px; }
  nav a:first-child { display: none; }

  .hero { min-height: 735px; padding: 115px 20px 68px; }
  .hero::before { top: -210px; width: 470px; height: 470px; }
  .hero::after { bottom: 42px; width: 82vw; }
  h1 { font-size: clamp(50px, 15vw, 66px); line-height: 0.9; letter-spacing: -0.04em; }
  h1 span:first-child { max-width: 7.3em; margin: 0 auto; }
  .hero-tagline { max-width: 300px; margin: 29px auto 0; font-size: 14px; line-height: 2; }
  .hero-lead { max-width: 320px; margin: 17px auto 27px; font-size: 12px; }
  .art-frame--one { bottom: 26px; left: -41px; width: 128px; height: 157px; opacity: 0.44; }
  .art-frame--two { top: 89px; right: -38px; width: 115px; height: 140px; opacity: 0.44; }

  .explore { padding: 76px 20px 82px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p:last-child { font-size: 11px; }
  .tab-list { display: grid; width: 100%; grid-template-columns: 1fr 1fr; margin-bottom: 38px; }
  .tab { min-width: 0; padding: 14px 8px; }
  .panel-intro { grid-template-columns: 1fr; gap: 5px; margin-bottom: 34px; }
  .panel-intro h3 { font-size: 25px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { padding: 25px 7px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-grid article:last-child { border-bottom: 0; }
  .service-grid h4 { display: inline-block; margin: 0 0 10px 14px; }
  .profile-list div { grid-template-columns: 90px 1fr; padding: 16px 4px; gap: 12px; }
  .profile-list dd { font-size: 14px; }

  .closing { min-height: 490px; padding: 80px 22px; }
  .closing h2 { font-size: 29px; }
  .closing p:not(.eyebrow) br { display: none; }

  footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px 20px; }
}
