:root {
  --stage: #e2b3ab;
  --cream: #f4efe2;
  --sand: #d3dfdb;
  --ink: #26333a;
  --ink-soft: #5b6664;
  --orange: #b2731f;
  --orange-dark: #945d14;
  --orange-lt: #e7b9b2;
  --green: #154734;
  --sage: #8f9b6a;
  --pink: #e8b7b3;
  --yellow: #bfbc4a;
  --serif-en: "Fraunces", "Shippori Mincho", serif;
  --serif-ja: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--stage);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  padding: 0 24px 80px;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- Stage (pink background + framed screen) ---------- */
.stage-label {
  text-align: center;
  color: #fff;
  font-size: 13px;
  letter-spacing: .32em;
  padding: 44px 0 30px;
}
.screen {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--cream);
  border: 5px solid #1d1a18;
  border-radius: 22px;
  overflow: clip;
  box-shadow: 0 40px 80px -30px rgba(70, 45, 30, .45);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px;
  background: rgba(247, 240, 222, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44, 36, 31, .08);
}
.logo {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: 32px;
  line-height: 1;
  color: var(--orange);
  letter-spacing: 0;
}
.gnav { display: flex; align-items: center; gap: 30px; }
.gnav a:not(.btn) {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  position: relative;
}
.gnav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.gnav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.menu-btn { display: none; }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  border-radius: 999px;
  padding: 11px 28px;
  font-size: 12px;
  letter-spacing: .14em;
  font-weight: 500;
  line-height: 1.4;
  transition: background .25s, transform .25s;
}
.btn:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-sm { padding: 8px 20px; font-size: 11px; }
.btn-lg { padding: 18px 44px; font-size: 14px; }

/* ---------- Hero (geometric blocks) ---------- */
.hero {
  position: relative;
  height: calc(min(78vh, 680px) + 65px); /* + former header height */
  min-height: 525px;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--cream);
  background: var(--cream);
}
.geo {
  position: absolute; inset: 0 0 64px 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.col { position: relative; overflow: hidden; }
.col-1 { background: var(--green); }
.col-2 { background: var(--orange-lt); }
.col-3 { background: var(--pink); }

.g-circle {
  position: absolute; right: 0; top: 18%;
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow);
  animation: float 7s 3s ease-in-out infinite alternate;
}
.g-pill {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 40%;
  background: var(--cream);
  border-radius: 999px 0 0 999px;
}
.g-arch {
  position: absolute; left: 0; right: 0; top: 0; bottom: 8%;
  background: var(--orange);
  border-radius: 0 0 999px 999px;
}
.col-3 { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.g-half {
  display: block; width: 100%; aspect-ratio: 2 / 1; flex-shrink: 0;
  background: var(--green);
  border-radius: 999px 999px 0 0;
}

.hero-band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: var(--yellow);
  display: grid; place-items: center;
}
.hero-scroll {
  font-family: var(--serif-en); font-style: italic; font-size: 13px; letter-spacing: .24em;
  color: var(--ink); display: flex; align-items: center; gap: 12px;
}
.hero-scroll::after {
  content: ""; width: 40px; height: 1px; background: var(--ink);
  animation: line 2s ease-in-out infinite; transform-origin: left;
}
@keyframes line { 0% { transform: scaleX(0); } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

@keyframes pop   { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes float { from { translate: 0 0; } to { translate: -8% 6%; } }
@keyframes slideR { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drop  { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes riseUp{ from { transform: translateY(110%); } to { transform: none; } }

.hero-inner { position: relative; z-index: 2; text-align: center; margin-bottom: 64px; }
.hero-logo {
  font-family: var(--serif-en);
  font-weight: 300;
  font-size: clamp(64px, 11vw, 140px);
  line-height: 1;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(20, 30, 90, .18);
  opacity: 0; transform: translateY(18px) scale(.96);
  transition: opacity 1.2s cubic-bezier(.2,.8,.2,1), transform 1.2s cubic-bezier(.2,.8,.2,1);
}
.hero-sub {
  display: inline-block;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 231, .85);
  font-family: var(--serif-ja);
  font-size: 15px; letter-spacing: .5em; padding-left: .5em;
  text-shadow: 0 1px 14px rgba(20, 30, 90, .25);
  animation: fadeUp 1.4s 1.15s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Arc marquee ---------- */
.arc-wrap { margin-top: 40px; height: 150px; overflow: hidden; }
.arc-wrap.small { margin: 0 0 10px; height: 140px; }
.arc { width: 100%; height: 100%; overflow: visible; }
.arc-text {
  font-family: var(--serif-ja);
  font-size: 30px;
  fill: var(--orange);
  letter-spacing: .06em;
}
.arc-text2 { fill: var(--green); }

/* ---------- Alternating blocks ---------- */
.block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 70px 0 110px;
}
.block-text { padding: 0 20px 0 100px; }
.name .block-text { padding: 0 100px 0 20px; }
.eyebrow {
  font-family: var(--serif-en); font-style: italic;
  color: var(--orange); font-size: 15px; letter-spacing: .12em;
  margin-bottom: 14px;
}
.h2 {
  font-family: var(--serif-ja);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.45;
  letter-spacing: .06em;
  margin-bottom: 26px;
}
.block-text p:not(.eyebrow) { color: var(--ink-soft); font-size: 14px; margin-bottom: 30px; }
.block-text .sign { font-family: var(--serif-ja); color: var(--orange); font-size: 18px; letter-spacing: .3em; }

.block-visual { position: relative; min-height: 440px; }
.shape-green {
  position: absolute; right: 0; top: -30px; bottom: -30px; width: 62%;
  background: var(--green);
  border-radius: 0 0 0 100% / 0 0 0 70%;
  border-top-left-radius: 0;
}
.about .shape-green { border-radius: 0 0 0 340px; }
.shape-pink {
  position: absolute; left: 0; top: -30px; bottom: -30px; width: 62%;
  background: var(--pink);
  border-radius: 0 320px 0 0;
}
.ring {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.about .ring { top: -10px; right: 34%; }
.name .ring { top: -10px; left: 30%; }
.mock {
  position: absolute; left: 0; top: 40px; width: 78%;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 50px -24px rgba(70, 45, 30, .5);
}
.mock-bar { display: flex; gap: 6px; padding: 9px 12px; background: #efe7d6; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4c7af; }
.mock img { aspect-ratio: 1440 / 900; object-fit: cover; }

.name-card {
  position: absolute; right: 0; top: 30px; width: 76%;
  aspect-ratio: 4 / 4.6;
  background: var(--cream);
  border-radius: 6px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  box-shadow: 0 30px 50px -24px rgba(70, 45, 30, .45);
  text-align: center;
}
.name-eq { font-family: var(--serif-ja); font-size: 26px; display: flex; gap: 14px; align-items: center; }
.name-eq em { font-style: normal; color: var(--orange); font-family: var(--serif-en); }
.name-result {
  font-family: var(--serif-en); font-weight: 300; font-size: clamp(44px, 6vw, 72px); line-height: 1.1;
  color: var(--orange); margin-top: 16px;
}
.name-kana { font-size: 12px; letter-spacing: .6em; color: var(--ink-soft); padding-left: .6em; }

/* ---------- Section heads ---------- */
.sec-head { text-align: center; margin-bottom: 50px; }

/* ---------- Service ---------- */
.service { background: var(--sand); padding: 100px 80px 110px; }
.service-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-list li {
  background: var(--cream); border-radius: 160px 160px 8px 8px;
  padding: 60px 26px 34px; text-align: center;
  transition: transform .35s;
}
.service-list li:hover { transform: translateY(-6px); }
.num { font-family: var(--serif-en); font-style: italic; color: var(--orange); font-size: 22px; }
.service-list h3 { font-family: var(--serif-ja); font-weight: 600; font-size: 17px; margin: 10px 0 14px; letter-spacing: .08em; }
.service-list p { font-size: 13px; color: var(--ink-soft); text-align: left; line-height: 1.9; }

/* ---------- Works ---------- */
.works { padding: 60px 80px 110px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 30px; }
.work figure {
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 18px 36px -22px rgba(70, 45, 30, .45);
  aspect-ratio: 1440 / 900;
}
.work img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.work:hover img { transform: scale(1.05); }
.work-cat { margin-top: 16px; font-family: var(--serif-en); font-style: italic; color: var(--orange); font-size: 13px; letter-spacing: .08em; line-height: 1.4; }
.work h3 { font-family: var(--serif-ja); font-weight: 500; font-size: 16px; line-height: 1.6; margin-top: 4px; }
.work-url { font-size: 11px; color: var(--ink-soft); letter-spacing: .1em; }
.work-url::after { content: " ↗"; }

/* ---------- Flow ---------- */
.flow { padding: 100px 80px; background: #ebedd5; }
.flow-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: f; }
.flow-list li { position: relative; padding: 0 22px; text-align: center; }
.flow-list li + li::before {
  content: ""; position: absolute; left: 0; top: 34px; width: 1px; height: 80px; background: rgba(44,36,31,.2);
}
.flow-list span {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px;
  border-radius: 50%; background: var(--green); color: #fff;
  font-family: var(--serif-en); font-size: 20px;
}
.flow-list h3 { font-family: var(--serif-ja); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.flow-list p { font-size: 13px; color: var(--ink-soft); text-align: left; line-height: 1.9; }

/* ---------- Contact ---------- */
.contact {
  position: relative; overflow: hidden;
  padding: 130px 40px; text-align: center;
}
.shape-circle {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: var(--pink); opacity: .35; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.contact-inner { position: relative; }
.contact-inner p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 50px; }
.contact .shape-circle { top: 230px; }

/* Form */
.contact-form {
  position: relative;
  max-width: 760px; margin: 0 auto;
  background: #fffaf0;
  border-radius: 24px;
  padding: 50px 56px 56px;
  text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px;
  box-shadow: 0 30px 60px -36px rgba(70, 45, 30, .45);
}
.field { display: flex; flex-direction: column; gap: 8px; border: 0; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field > label, .field legend {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; line-height: 1.5;
  display: flex; align-items: center; gap: 8px; padding: 0;
}
.field legend { margin-bottom: 10px; }
.req {
  font-size: 10px; color: #fff; background: var(--orange);
  border-radius: 999px; padding: 2px 8px; letter-spacing: .1em;
}
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"],
.contact-form select, .contact-form textarea {
  width: 100%;
  font: inherit; font-size: 15px; color: var(--ink); letter-spacing: .03em; line-height: 1.6;
  background: var(--cream);
  border: 1px solid #e6ddd0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--orange) 50%), linear-gradient(135deg, var(--orange) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form textarea::placeholder { color: #a9a6a0; font-size: 13px; }
.contact-form :is(input, select, textarea):focus {
  outline: none; border-color: var(--orange); background: #fff;
  box-shadow: 0 0 0 4px rgba(229, 112, 60, .14);
}
.contact-form .is-invalid { border-color: #d0342c !important; background: #fdf1ee !important; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; font-size: 13px; line-height: 1.4;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid #e3d6c4; background: var(--cream);
  transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--orange); }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(229, 112, 60, .2); }

.agree { display: flex; align-items: flex-start; justify-content: center; gap: 10px; font-size: 13px; color: var(--ink-soft); cursor: pointer; line-height: 1.7; }
.agree input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); flex-shrink: 0; }
.agree.is-invalid { background: none !important; }
.agree.is-invalid span { color: #d0342c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { grid-column: 1 / -1; text-align: center; color: #d0342c; font-size: 13px; margin: -6px 0 0; }
.form-submit { text-align: center; }
.form-submit .btn { border: 0; cursor: pointer; font-family: inherit; min-width: 240px; }
.form-submit .btn:disabled { opacity: .6; cursor: wait; transform: none; }

.form-thanks {
  position: relative; max-width: 640px; margin: 0 auto;
  background: #fffaf0; border-radius: 24px; padding: 60px 40px;
  box-shadow: 0 30px 60px -36px rgba(70, 45, 30, .45);
  outline: none;
}
.form-thanks p { color: var(--ink-soft); }
.thanks-title { font-family: var(--serif-ja); font-size: 26px; color: var(--orange) !important; margin-bottom: 14px; letter-spacing: .1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #efe6da; padding: 60px 80px 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer .logo { color: var(--pink); font-size: 40px; }
.footer-copy { font-family: var(--serif-ja); font-size: 13px; letter-spacing: .3em; margin-top: 10px; }
.company { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: 13px; }
.company dt { color: #b3a796; }
.copyright { margin-top: 50px; font-size: 11px; color: #968b7d; text-align: center; letter-spacing: .15em; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s cubic-bezier(.2,.8,.2,1), transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.works-grid .reveal:nth-child(3n+2), .service-list .reveal:nth-child(2), .flow-list .reveal:nth-child(2) { transition-delay: .12s; }
.works-grid .reveal:nth-child(3n), .service-list .reveal:nth-child(3), .flow-list .reveal:nth-child(3) { transition-delay: .24s; }
.service-list .reveal:nth-child(4), .flow-list .reveal:nth-child(4) { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .service-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service-list li { border-radius: 200px 200px 8px 8px; padding: 56px 40px 36px; }
}

@media (max-width: 1000px) {
  .block-text { padding: 0 20px 0 50px; }
  .name .block-text { padding: 0 50px 0 20px; }
  .service, .works, .flow { padding-left: 40px; padding-right: 40px; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .flow-list li:nth-child(3)::before { display: none; }
}

@media (max-width: 760px) {
  body { padding: 0 10px 40px; }
  .stage-label { padding: 24px 0 18px; font-size: 10px; letter-spacing: .24em; }
  .screen { border-width: 3px; border-radius: 16px; }
  .pc { display: none; }
  .site-header { padding: 12px 18px; }
  .logo { font-size: 26px; }
  .menu-btn {
    display: block; position: relative; width: 36px; height: 36px; background: none; border: 0; cursor: pointer;
  }
  .menu-btn span { position: absolute; left: 7px; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
  .menu-btn span:first-child { top: 14px; }
  .menu-btn span:last-child { top: 21px; }
  .menu-btn[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
  .gnav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 20px; padding: 26px 0 30px;
    background: var(--cream); border-bottom: 1px solid rgba(44,36,31,.1);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .3s, transform .3s;
  }
  .gnav.is-open { opacity: 1; pointer-events: auto; transform: none; }

  .hero { height: calc(70vh + 61px); min-height: 461px; }
  .geo { inset: 0 0 52px 0; }
  .hero-band { height: 52px; }
  .hero-inner { margin-bottom: 52px; }
  .col-3 { gap: 4px; }
  .hero-sub { font-size: 13px; letter-spacing: .35em; }
  .arc-wrap { height: 90px; margin-top: 24px; }
  .arc-wrap.small { height: 80px; }
  .arc-text { font-size: 44px; }

  .block { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 70px; }
  .block-text, .name .block-text { padding: 0 22px; }
  .name .block-text { order: -1; }
  .block-visual { min-height: 0; aspect-ratio: 1 / .92; margin-right: 0; }
  .mock { left: 16px; width: 82%; top: 40px; }
  .name-card { right: 16px; width: 70%; top: 20px; }
  .ring { width: 44px; height: 44px; }
  .h2 { font-size: 25px; }

  .service, .works, .flow { padding: 70px 18px; }
  .service-list, .works-grid, .flow-list { grid-template-columns: 1fr; }
  .service-list li { border-radius: 120px 120px 8px 8px; padding-top: 46px; }
  .flow-list li::before { display: none; }
  .contact { padding: 90px 14px; }
  .contact-form { grid-template-columns: 1fr; padding: 34px 20px 40px; gap: 22px; border-radius: 18px; }
  .agree { justify-content: flex-start; }
  .form-submit .btn { width: 100%; min-width: 0; }
  .shape-circle { width: 340px; height: 340px; }
  .site-footer { padding: 46px 22px 24px; }
}

/* ---------- Paper grain (soft, printed look) ---------- */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .55;
  mix-blend-mode: overlay;
}

/* Logo image in hero */
.hero-logo img {
  width: clamp(240px, 52vw, 600px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 2px 18px rgba(70, 45, 30, .18));
}

/* TOP: half-circles in sage for variety */
.hero .g-half { background: var(--sage); }
.hero .g-arch { background: #e8834a; } /* center arch: orange */
.hero .g-circle { background: #efbf4a; } /* circle: yellow */
.hero .hero-band { background: #efbf4a; } /* band: yellow */

/* ---------- Opening: shapes gather (inspired by circle/half/quarter motifs) ---------- */
.hero.is-done .hero-logo { opacity: 1; transform: none; }
.hero .col { transition: background-color 1s cubic-bezier(.6,0,.2,1); }
.hero.is-pre { background: var(--cream); }
.hero.is-pre .col { background-color: transparent !important; }
.hero .col-1 { transition-delay: 0s; }
.hero .col-2 { transition-delay: .08s; }
.hero .col-3 { transition-delay: .16s; }
.hero .col { overflow: visible; }
.geo { overflow: hidden; }
.gs { transition: transform 1.3s cubic-bezier(.2,.9,.25,1), opacity .5s ease; will-change: transform; }

.bits { position: absolute; inset: 0 0 64px 0; z-index: 1; pointer-events: none; }
.bit {
  position: absolute; left: 50%; top: 50%;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  will-change: transform;
}
.bit i { display: block; width: 100%; height: 100%; background: var(--c); }
.bit.circle i  { border-radius: 50%; }
.bit.half i    { height: 50%; margin-top: 25%; border-radius: 999px 999px 0 0; }
.bit.quarter i { border-radius: 100% 0 0 0; }
.bit.ring i    { background: none; border: calc(var(--s) * .14) solid var(--c); border-radius: 50%; }
.bit.is-idle i { animation: bob var(--d, 6s) ease-in-out infinite alternate; }
@keyframes bob { from { translate: 0 0; } to { translate: var(--bx, 6px) var(--by, -10px); } }

/* ---------- Custom cursor (circle; grows on links) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 80px; height: 80px; margin: -40px 0 0 -40px;
  pointer-events: none;
  opacity: 0; transition: opacity .3s;
}
.cursor::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--ink);
  transform: scale(.2);
  transition: transform .35s cubic-bezier(.2,.9,.25,1), background-color .35s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-hover::before { transform: scale(1); background: rgba(38, 51, 58, .16); }
.cursor.is-down::before { transform: scale(.14); }
html.has-cursor, html.has-cursor * { cursor: none !important; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.hero.is-pre .geo span { opacity: 0; }

/* TOP background: flower photo behind the shapes (column colors off) */
.hero .col { background-color: transparent !important; }
.geo::before {
  content: ""; position: absolute; inset: 0;
  background: url("images/hero-flower-1.jpg") center / cover no-repeat;
  transition: opacity 1.2s cubic-bezier(.6,0,.2,1);
}
.hero.is-pre .geo::before { opacity: 0; }

/* TOP: photo only (no shapes, no band) */
.geo, .bits { inset: 0; }
.hero-inner { margin-bottom: 0; }
/* no opening animation: logo shown immediately */
.hero .hero-logo { opacity: 1; transform: none; transition: none; }

/* ================= Simple layout: Works (alternating) + Contact ================= */
.sec-title {
  text-align: center;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: .32em; padding-left: .32em;
  color: var(--green);
  margin-bottom: 80px;
}
.works2 { padding: 110px 0 60px; }

.work-row {
  display: grid; grid-template-columns: 58% 1fr; align-items: center;
  gap: 40px; margin-bottom: 150px;
}
.work-row.is-rev { grid-template-columns: 1fr 58%; }
.work-row.is-rev .wr-media { order: 2; }

.wr-media { position: relative; display: block; }
.wr-media figure {
  aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 0 999px 999px 0;
  background: #fff;
}
.is-rev .wr-media figure { border-radius: 999px 0 0 999px; }
.wr-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.wr-media:hover img { transform: scale(1.04); }
.wr-ring { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wr-ring path { fill: none; }
.wr-ring text {
  font-family: var(--serif-en); font-size: 13px; letter-spacing: .14em;
  fill: var(--green);
}

.wr-body { text-align: center; padding: 0 40px; }
.wr-body h3 {
  font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.5; letter-spacing: .06em;
  color: var(--green);
}
.wr-body h3 small {
  display: block; font-family: var(--serif-en); font-size: 13px; letter-spacing: .14em;
  color: var(--ink-soft); margin-top: 4px;
}
.wr-pill {
  display: block; max-width: 300px; margin: 18px auto 22px;
  background: var(--green); color: #fff;
  border-radius: 999px; padding: 6px 20px;
  font-size: 12px; letter-spacing: .14em; line-height: 1.6;
}
.wr-btn {
  display: block; max-width: 300px; margin: 0 auto;
  border: 1.5px solid var(--green); color: var(--green);
  border-radius: 999px; padding: 8px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: .24em; line-height: 1.6;
  transition: background .25s, color .25s;
}
.wr-btn:hover { background: var(--green); color: #fff; }

.contact { padding: 60px 40px 120px; }

.site-footer { padding: 46px 24px 28px; text-align: center; }
.footer-logo { width: 150px; height: auto; margin: 0 auto; }
.site-footer .copyright { margin-top: 18px; }

@media (max-width: 760px) {
  .sec-title { margin-bottom: 50px; }
  .works2 { padding: 70px 0 30px; }
  .work-row, .work-row.is-rev { grid-template-columns: 1fr; gap: 54px; margin-bottom: 100px; }
  .work-row.is-rev .wr-media { order: 0; }
  .wr-media { width: 88%; }
  .is-rev .wr-media { margin-left: auto; }
  .wr-ring text { font-size: 10px; }
  .wr-body { padding: 0 22px; }
  .contact { padding: 30px 14px 80px; }
}
.sec-title-img { padding-left: 0; line-height: 0; }
.sec-title-img img { width: clamp(130px, 14vw, 180px); height: auto; margin: 0 auto; }

/* Intro above works */
.intro { padding: 110px 24px 0; text-align: center; }
.intro-title {
  font-family: var(--serif-ja); font-weight: 500;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: .18em; padding-left: .18em;
  color: var(--green); margin-bottom: 26px;
}
.intro-text { font-family: var(--serif-ja); font-size: 16px; line-height: 2.2; letter-spacing: .1em; color: var(--ink-soft); }
.intro + .works2 { padding-top: 300px; }
@media (max-width: 760px) {
  .intro { padding-top: 70px; }
  .intro-text { font-size: 14px; text-align: left; display: inline-block; }
  .intro-text br { display: none; }
  .intro + .works2 { padding-top: 210px; }
}
.sec-title-img img.t-contact { width: clamp(192px, 20.6vw, 265px); } /* same letter scale as works */

/* Orange ball bouncing across the intro title */
.intro-title-in { position: relative; display: inline-block; padding: 0 .4em; }
.ball-x {
  position: absolute; left: -6%; bottom: .05em; z-index: 1;
  width: 20px; height: 20px; opacity: 0;
  animation: ballX 3.6s linear infinite;
}
.ball {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: #eaa097;
  transform-origin: 50% 100%;
  animation: ballY .6s infinite;
}
@keyframes ballX {
  0%   { left: -6%;  opacity: 0; }
  6%   { opacity: 1; }
  84%  { opacity: 1; }
  90%  { left: 104%; opacity: 0; }
  100% { left: 104%; opacity: 0; }
}
@keyframes ballY {
  0%   { transform: translateY(0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  12%  { transform: translateY(-6px) scale(.92, 1.1); }
  50%  { transform: translateY(-62px) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
  100% { transform: translateY(0) scale(1.18, .8); }
}
@media (max-width: 760px) {
  .ball-x { width: 14px; height: 14px; }
  @keyframes ballY {
    0%   { transform: translateY(0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    50%  { transform: translateY(-40px) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
    100% { transform: translateY(0) scale(1.18, .8); }
  }
}
/* second ball: pale yellow, from the right */
.ball-x2 { left: 104%; animation-name: ballXrev; animation-duration: 5s; }
.ball-x2 .ball { background: #f2d47c; animation-delay: -.3s; }
@keyframes ballXrev {
  0%   { left: 104%; opacity: 0; }
  6%   { opacity: 1; }
  84%  { opacity: 1; }
  90%  { left: -45%; opacity: 0; }
  100% { left: -45%; opacity: 0; }
}
/* pink ball: 1.2x size, higher, slower */
.ball-x:not(.ball-x2) { width: 24px; height: 24px; animation-duration: 4.8s; }
.ball-x:not(.ball-x2) .ball { animation-name: ballYhi; animation-duration: .8s; }
@keyframes ballYhi {
  0%   { transform: translateY(0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
  12%  { transform: translateY(-8px) scale(.92, 1.1); }
  50%  { transform: translateY(-84px) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
  100% { transform: translateY(0) scale(1.18, .8); }
}
@media (max-width: 760px) {
  .ball-x:not(.ball-x2) { width: 17px; height: 17px; }
  @keyframes ballYhi {
    0%   { transform: translateY(0) scale(1.18, .8); animation-timing-function: cubic-bezier(.2,.7,.4,1); }
    50%  { transform: translateY(-54px) scale(1); animation-timing-function: cubic-bezier(.6,0,.8,.3); }
    100% { transform: translateY(0) scale(1.18, .8); }
  }
}
.site-footer { background: var(--green); } /* deep green footer */
.site-footer .copyright { color: rgba(255,255,255,.6); }

/* keep work titles on one line */
.wr-body h3 { white-space: nowrap; font-size: clamp(18px, 2vw, 26px); }
.wr-body h3 small { white-space: normal; }
