/* Ronin — Here to serve.
   Rebuilt from the original Squarespace design (fonts, sizes, grid, animations measured from the source). */

:root {
  --bg: #000;
  --fg: #fff;
  --soft: #f5f5f3;
  --pink: #ffa8bc;
  --line: 2px solid #fff;

  --gutter: 6vw;
  --max: 1800px;

  /* Squarespace's mobile type scale: (size - 1) * 1.2% of viewport height (capped) + 1rem */
  --u: min(1.2vh, 10.8px);
  --fs-h1: calc(6.8 * var(--u) + 1rem);
  --fs-h2: calc(3.7 * var(--u) + 1rem);
  --fs-h3: calc(2.1 * var(--u) + 1rem);
  --fs-large: calc(2.8 * var(--u) + 1rem);
  --fs-normal: calc(1 * var(--u) + 1rem);
  --fs-small: calc(0.8 * var(--u) + 1rem);
  --fs-button: calc(0.75 * var(--u) + 1rem);

  --anim-dur: 0.8s;
  --anim-ease: ease;
}

@media (min-width: 768px) {
  :root {
    --gutter: 4vw;
    /* desktop scale: (size - 1) * 1.2vw + 1rem, capped at the 1800px page width */
    --fs-h1: min(calc(6.8 * 1.2vw + 1rem), 162.9px);
    --fs-h2: min(calc(3.7 * 1.2vw + 1rem), 95.9px);
    --fs-h3: min(calc(2.1 * 1.2vw + 1rem), 61.4px);
    --fs-large: min(calc(2.8 * 1.2vw + 1rem), 76.5px);
    --fs-normal: min(calc(1 * 1.2vw + 1rem), 37.6px);
    --fs-small: min(calc(0.8 * 1.2vw + 1rem), 33.3px);
    --fs-button: min(calc(0.75 * 1.2vw + 1rem), 32.2px);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 500;
  font-size: var(--fs-normal);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; } /* original: fixed 16px between paragraphs */
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: "Cinzel", serif;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35em;
}
h1 { font-size: var(--fs-h1); line-height: 0.95; }
h2 { font-size: var(--fs-h2); line-height: 1.11; }
h3 { font-size: var(--fs-h3); line-height: 1.19; }

/* original: every paragraph size uses 1.3x line spacing */
.large { font-size: var(--fs-large); line-height: 1.3; font-style: italic; }
.small { font-size: var(--fs-small); line-height: 1.3; }
.center { text-align: center; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; }
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 0.1vw;
}
.logo { grid-column: 2; display: block; }
.logo img { height: min(320px, 24vw); width: auto; }
.nav { grid-column: 1; grid-row: 1; display: flex; gap: 1.4em; }
.nav a {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 14.3px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  padding: 4px 0;
  background: linear-gradient(var(--pink), var(--pink)) left bottom / 0 1px no-repeat;
  transition: background-size 0.4s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }

.burger {
  display: none;
  grid-column: 3;
  justify-self: end;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.burger span {
  display: block; width: 36px; height: 1px; background: var(--pink);
  margin: 8px auto; transition: transform 0.4s ease;
}
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 15;
  background: var(--bg);
  /* original: links centred in the space below the 158px header, 24px apart */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding-top: 198px;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  /* original: same sans-serif capitals as the desktop menu, 8.5vw (33px on a 390px phone) */
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-weight: 400;
  font-size: min(8.5vw, 40px); line-height: 1; letter-spacing: 0.019em;
  color: var(--pink); text-decoration: none; text-transform: uppercase;
}
.menu-open { overflow: hidden; }

@media (max-width: 767px) {
  .site-header .wrap { grid-template-columns: auto 1fr auto; padding-top: 1vw; }
  .logo { grid-column: 1; }
  .logo img { height: auto; width: auto; max-height: 150px; }
  .nav { display: none; }
  .burger { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 7vw, 130px) 0; }
.hero { padding: clamp(36px, 4vw, 70px) 0 clamp(56px, 5.5vw, 100px); }
.hero .large { margin: 0; }

/* Sakura band between white lines */
.band {
  border-top: var(--line);
  border-bottom: var(--line);
  padding: 4px 0;
}
.band div {
  height: clamp(64px, 10vw, 180px);
  background: url("../img/sakura.webp") center / cover no-repeat;
}
@media (max-width: 1300px) { .band div { background-image: url("../img/sakura-1250.webp"); } }

/* 24-column desktop grid, like the original layout engine */
.grid { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); column-gap: 11px; align-items: center; }
.col { display: flex; flex-direction: column; align-items: center; }

/* Buttons: white outline pill, Cinzel small caps */
.btn {
  /* original: fixed-height pill (68px desktop / 59px phone), 35.2px side padding, text centred */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: var(--fs-button);
  line-height: 1;
  text-transform: capitalize;
  text-decoration: none;
  white-space: nowrap;
  color: var(--fg);
  background: transparent;
  border: 2px solid var(--fg);
  border-radius: 300px;
  padding: 0 2.2rem;
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.btn:hover, .btn:focus-visible { background: var(--fg); color: var(--bg); }

/* Desktop: like the original, buttons stretch to the width of their grid columns */
@media (min-width: 768px) {
  :root { --col: calc((min(var(--max), 100vw - 2 * var(--gutter)) - 23 * 11px) / 24); }
  .philosophy .btn, .item .btn { min-width: calc(5 * var(--col) + 4 * 11px); }
  .offer .btn { min-width: calc(4 * var(--col) + 3 * 11px); }
}

/* Philosophy */
.philosophy .text { grid-column: 4 / 11; } /* same 7-column text width as the original */
.philosophy .side { grid-column: 15 / 22; }
.portrait { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.philosophy .btn { margin-top: clamp(28px, 3vw, 56px); }

/* What can I do for you? */
.offer .title { grid-column: 7 / 19; margin-bottom: clamp(32px, 4vw, 70px); color: var(--soft); }
.offer .left { grid-column: 4 / 10; }
.offer .right { grid-column: 16 / 22; }
.offer .circle { width: 100%; aspect-ratio: 1; }
.offer .btn { margin-top: clamp(12px, 1.4vw, 24px); }

/* SERVICE / SUPPORT banners: drawing behind a frosted glass panel */
.banner {
  position: relative;
  display: grid; place-items: center;
  min-height: clamp(300px, 31vw, 560px);
  border-bottom: var(--line);
  background: center / cover no-repeat;
  overflow: hidden;
  scroll-margin-top: 0;
}
.banner .glass {
  width: min(50vw, 900px);
  display: grid; place-items: center;
  padding: clamp(18px, 2.4vw, 40px) clamp(16px, 2vw, 32px);
  border: 3px solid #fff;
  border-radius: clamp(16px, 1.6vw, 28px);
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.banner h1 { margin: 0; white-space: nowrap; line-height: 1; }

/* Service rows (Shifts, Events, ...) */
.item { padding: clamp(48px, 5vw, 100px) 0; }
.item .head { grid-column: 4 / 9; }
.item .body { grid-column: 13 / 24; text-align: center; }
.item.flip .head { grid-column: 17 / 22; grid-row: 1; }
.item.flip .body { grid-column: 2 / 13; grid-row: 1; }
.item .icon { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: contain; }
.item h3 { margin-bottom: 0.4em; white-space: nowrap; }
.item .btn { margin-top: clamp(16px, 1.8vw, 32px); }
.group-end { border-bottom: var(--line); }

/* Contact */
.contact h2 { margin-bottom: 0.25em; }
.contact .intro { max-width: 22em; margin: 0 auto clamp(28px, 3vw, 48px); }

/* About */
.about .portrait { width: min(46vw, 560px); margin: 0 auto; }
.about .name { font-size: var(--fs-large); font-style: italic; margin: clamp(28px, 3vw, 48px) 0 clamp(20px, 2.5vw, 40px); }
.about .bio { max-width: 34em; margin: 0 auto; }
.about .contact-cta { margin-top: clamp(40px, 4vw, 72px); }
/* the original has an empty line between the bio paragraphs */
.about .bio p + p { margin-top: calc(2rem + 1.3em); }
/* the About "Contact" button is a taller form button in the original */
.about .contact-cta .btn { height: auto; padding: 24px 2.2rem; line-height: normal; }

.to-top { padding: clamp(48px, 5vw, 90px) 0 clamp(64px, 7vw, 120px); }

/* ---------- Mobile layout ---------- */
/* Phone spacing measured against the original at 390 x 844 */
@media (max-width: 767px) {
  .btn { height: 59px; }
  .hero { padding: 67px 0 68px; }
  h3 { margin-bottom: 0.7em; }
  .grid { display: flex; flex-direction: column; align-items: stretch; }
  .philosophy .side { margin-top: 46px; align-items: center; }
  .philosophy .portrait { width: 234px; max-width: 70%; }
  .philosophy .btn { margin-top: 46px; }
  .offer { padding-bottom: 96px; }
  .offer .title { margin-bottom: 46px; }
  .offer .col { width: 100%; }
  .offer .circle { width: 163px; max-width: 48%; }
  .offer .btn { margin-top: 11px; }
  .offer .right { margin-top: 46px; }
  .banner { min-height: 0; aspect-ratio: 390 / 557; max-height: 640px; }
  .item { padding: 61px 0 50px; }
  .item .btn { margin-top: 11px; }
  .item h3 { margin-bottom: 0.7em; }
  .banner .glass { width: 86%; }
  /* keep SERVICE / SUPPORT on one line (the original broke it as "SERVIC / E") */
  .banner h1 { font-size: min(var(--fs-h1), 15.5vw); }
  .item .head, .item.flip .head { order: 0; }
  .item .body, .item.flip .body { order: 1; margin-top: 46px; }
  .item .icon { width: 199px; max-width: 58%; }
  /* About page, measured against the original at 390 x 844 */
  .page-about .hero { padding: 35px 0 24px; }
  .about { padding: 48px 0 280px; }
  .about .portrait { width: 234px; max-width: 70%; }
  .about .name { margin: 46px 0; }
  .about .contact-cta { margin-top: 243px; }
  .page-about .to-top { padding: 102px 0 109px; }
  .page-about .to-top .btn { min-width: 255px; }
}

/* About page on desktop, measured against the original at 1440 */
@media (min-width: 768px) {
  .page-about .hero { padding-bottom: 5.1vw; }
  .about { padding: 8.3vw 0 10vw; }
  .about .portrait { width: calc(12 * var(--col) + 11 * 11px); }
  .about .name { margin: 5vw 0 5.1vw; }
  .about .bio { max-width: none; width: calc(20 * var(--col) + 19 * 11px); }
  .about .contact-cta { margin-top: 9.7vw; }
  .page-about .to-top { padding-top: 13.6vw; }
}

/* ---------- Contact form dialog ---------- */
dialog.form-dialog {
  width: min(680px, 100%);
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overflow-y: auto;
  overscroll-behavior: contain;
}
dialog.form-dialog::backdrop { background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.form-dialog[open] { animation: slideIn 0.6s cubic-bezier(.25, 1, .5, 1); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.form-inner { padding: clamp(28px, 5vw, 64px) clamp(24px, 5vw, 64px) 48px; }
.form-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0;
  width: 44px; height: 44px; border: 0; background: none; color: var(--fg);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.form-dialog h2 { font-size: min(var(--fs-h2), 64px); margin: 0 0 0.6em; }
.form-dialog form { font-size: var(--fs-small); }
.field { margin-bottom: 1.1em; border: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.form-dialog label, .form-dialog legend { display: block; margin-bottom: 0.25em; padding: 0; }
.req { color: #9a9a9a; font-size: 0.85em; }
.form-dialog input[type="text"],
.form-dialog input[type="email"],
.form-dialog input[type="tel"],
.form-dialog textarea {
  width: 100%;
  font: inherit; font-size: max(16px, 0.9em);
  color: #000; background: #cacaca;
  border: 0; border-radius: 0;
  padding: 0.45em 0.6em;
  transition: background-color 0.3s ease;
}
.form-dialog input:focus, .form-dialog textarea:focus { outline: 2px solid var(--pink); outline-offset: 2px; background: #e6e6e6; }
.form-dialog textarea { min-height: 7em; resize: vertical; }
.hint { color: #9a9a9a; margin: 0 0 0.35em; }
.checks label { display: flex; align-items: center; gap: 0.55em; margin: 0.35em 0; cursor: pointer; }
.checks input { width: 1.05em; height: 1.05em; accent-color: var(--pink); margin: 0; }
.form-actions { text-align: center; margin-top: 1.4em; }
.form-status { text-align: center; margin-top: 1em; min-height: 1.3em; }
.form-thanks { text-align: center; padding: 18vh 0; font-size: var(--fs-normal); }
.hp { position: absolute; left: -9999px; }

/* ---------- Scroll animations (exact Squarespace settings: clip for images, fade for text, 0.8s ease) ---------- */
.js [data-anim="fade"] { opacity: 0; transition: opacity var(--anim-dur) var(--anim-ease); transition-delay: var(--d, 0s); }
.js [data-anim="fade"].in { opacity: 1; }
.js [data-anim="clip"] { clip-path: ellipse(0 100% at 0 0); }
.js [data-anim="clip"].in { animation: clipIn var(--anim-dur) var(--anim-ease) var(--d, 0s) forwards; }
@keyframes clipIn {
  from { clip-path: polygon(0 0, 10% 0, 0 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { opacity: 1 !important; clip-path: none !important; animation: none !important; transition: none !important; }
}
