@font-face {
  font-family: Archivo;
  src: url('/public/fonts/google/archivo-k3kPo8UDI-1M0wlSV9XAw6lQkqWY8Q82sLydOxI.woff2') format('woff2');
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f6f6f2; color: #111; font-family: Archivo, Arial, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
.skip { position: fixed; z-index: 99; top: 1rem; left: 1rem; transform: translateY(-200%); background: #111; color: #fff; padding: .75rem; }
.skip:focus { transform: none; }

.site-header { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0 2.5vw; border-bottom: 1px solid #111; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.mark { font-size: .76rem; font-weight: 800; text-decoration: none; }

.hero { min-height: calc(100svh - 64px); display: grid; grid-template-columns: 46% 54%; position: relative; }
.hero picture { grid-column: 2; grid-row: 1; }
.hero img { display: block; width: 100%; height: calc(100svh - 64px); object-fit: cover; }
.hero-shade, .scroll-note { display: none; }
.hero-copy { grid-column: 1; grid-row: 1; min-width: 0; padding: 4vw 3vw 3vw 2.5vw; display: flex; flex-direction: column; align-items: flex-start; }
.eyebrow, .section-intro > p:first-child, .about > p, .inquiry-head > p { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; }
.hero h1, .section-intro h2, .about h2, .inquiry h2 { font-weight: 500; letter-spacing: -.065em; line-height: .9; }
.hero h1 { margin: auto 0 .25em; max-width: 9ch; font-size: clamp(3.7rem, 6.4vw, 7rem); }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; line-height: 1.5; }
.button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: .9rem 1rem; border: 1px solid #111; background: #111; color: #f6f6f2; margin-top: 1.5rem; text-decoration: none; text-transform: uppercase; font-size: .7rem; font-weight: 700; letter-spacing: .06em; }
.button span { font-size: 1rem; line-height: 1; }

.work, .about, .inquiry { padding-inline: 2.5vw; }
.work { padding-block: 7rem 6rem; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr); gap: 1.5rem 4rem; align-items: end; padding-bottom: 2rem; border-bottom: 1px solid #111; }
.section-intro > p:first-child { grid-column: 1 / -1; margin: 0; }
.section-intro h2 { margin: 0; font-size: clamp(3.8rem, 7vw, 7rem); }
.section-intro > p:last-child { max-width: 31rem; margin: 0; line-height: 1.5; }

.gallery { counter-reset: item; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-bottom: 1px solid #111; background: #111; }
.gallery figure { position: relative; min-width: 0; margin: 0; padding: 1rem; background: #f6f6f2; }
.gallery figure::before { content: counter(item, decimal-leading-zero); counter-increment: item; display: block; margin-bottom: .65rem; font-size: .7rem; }
.gallery picture { display: block; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }

.about { padding-block: 7rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .75fr); gap: 1.5rem 4rem; border-bottom: 1px solid #111; }
.about > p { grid-column: 1 / -1; margin: 0; }
.about h2, .inquiry h2 { margin: 0; font-size: clamp(3.8rem, 7vw, 7rem); }
.about > div:last-child { max-width: 31rem; font-size: 1rem; line-height: 1.65; }
.about > div:last-child p:first-child { margin-top: 0; }
.about > div:last-child a { display: inline-block; margin-top: 1.5rem; text-transform: uppercase; font-size: .68rem; letter-spacing: .1em; }

.inquiry { padding-block: 7rem; display: grid; grid-template-columns: minmax(0, 46rem); justify-content: center; gap: 3rem; background: #111; color: #f6f6f2; }
.inquiry-head, .inquiry form { width: 100%; }
.inquiry h2 { margin: .35em 0; }
.inquiry ul { counter-reset: benefit; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 42rem; list-style: none; padding: 0; margin: 2.5rem 0 0; font-size: .75rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em; }
.inquiry li::before { content: '0' counter(benefit); counter-increment: benefit; display: block; margin-bottom: .7rem; color: #8e8e89; font-size: .62rem; letter-spacing: .14em; }

form { align-self: start; display: grid; padding: clamp(1.5rem, 3vw, 2.75rem); background: #f6f6f2; color: #111; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
button:disabled { cursor: wait; opacity: .65; }
.preview-note { margin: 0 0 .5rem; background: #111; color: #fff; padding: 1rem; font-size: .75rem; }
label { margin-top: 1.4rem; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
label span, small, .privacy { color: #5f5f5a; text-transform: none; letter-spacing: 0; }
input, select, textarea { width: 100%; margin-top: .55rem; border: 0; border-bottom: 1px solid #111; border-radius: 0; background: transparent; color: #111; font: inherit; padding: .8rem 0; }
textarea { resize: vertical; }
textarea::placeholder { color: #5f5f5a; opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: #b3190f; }
.error { min-height: 1.1rem; color: #9d160d; font-size: .72rem; }
input[type='file'] { border: 1px dashed #111; padding: 1rem; margin-top: .5rem; }
.privacy { font-size: .72rem; line-height: 1.5; }
.privacy a { color: #111; font-weight: 700; }
button { display: flex; justify-content: space-between; border: 0; background: #111; color: #fff; padding: 1.1rem; margin-top: 1rem; font: 700 .7rem Archivo, sans-serif; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.form-status { min-height: 2rem; margin-bottom: 0; line-height: 1.5; }

footer { display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid #111; padding: 2rem 2.5vw; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }

@media (min-width: 761px) and (max-width: 1040px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child picture { width: calc(50% - .5rem); }
  .hero h1 { font-size: clamp(3.3rem, 7.2vw, 4.8rem); }
  .inquiry { gap: 2rem; }
}

@media (min-width: 761px) and (max-width: 1199px) {
  .inquiry ul { grid-template-columns: 1fr; gap: 1.35rem; }
}

@media (max-width: 760px), (max-width: 1024px) and (orientation: portrait) {
  /* Editorial masthead: keep both the name and the location on one line */
  .site-header { height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; gap: 1rem; font-size: .5rem; letter-spacing: .14em; }
  .site-header span { display: block; text-align: right; color: #45453f; }
  .mark { font-size: .62rem; letter-spacing: .12em; }

  /* Capture the opening WebView height once so collapsing Telegram/Instagram chrome cannot
     resize the photo frame mid-scroll. The svh fallback preserves the layout without JS. */
  .hero { min-height: calc(var(--ak-initial-viewport-height, 100svh) - 52px - env(safe-area-inset-top)); display: flex; flex-direction: column; grid-template-columns: none; grid-template-rows: none; }
  .hero picture { flex: 1 1 0; min-height: 0; display: block; overflow: hidden; overflow: clip; }
  .hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; border-bottom: 0; }
  .hero-copy { flex: 0 0 auto; position: relative; z-index: 2; margin-top: -24px; padding: 1.4rem 18px max(1.5rem, env(safe-area-inset-bottom)); background: #f6f6f2; border-top: 1px solid #111; }
  .hero .eyebrow { display: none; }
  .hero h1 { max-width: 100%; margin: 0; font-size: clamp(1.35rem, 6.8vw, 2.5rem); line-height: .96; letter-spacing: -.045em; }
  .hero-title-line { display: block; white-space: nowrap; }
  .hero-copy > p:not(.eyebrow) { max-width: none; margin: .85rem 0 0; font-size: .875rem; line-height: 1.45; color: #2a2a27; }
  .button { margin-top: 1.35rem; min-height: 52px; font-size: .68rem; letter-spacing: .06em; }
  .work { padding: 4.5rem 1rem; }
  .section-intro, .about, .inquiry { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-intro { padding-bottom: 1.5rem; }
  .section-intro h2, .about h2, .inquiry h2 { font-size: clamp(3.2rem, 15vw, 4.5rem); }
  .section-intro > p:last-child { margin: 0; }
  .gallery { grid-template-columns: 1fr; background: transparent; }
  .gallery figure { padding: 1rem 0; border-bottom: 1px solid #111; }
  .gallery img { aspect-ratio: auto; }
  .about, .inquiry { padding: 4.5rem 1rem; }
  .about > div:last-child { max-width: none; }
  .inquiry-head { display: grid; }
  .inquiry ul { grid-template-columns: 1fr; gap: 1.35rem; margin-top: 1.5rem; }
  form { padding: 1.25rem; }
  footer { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: clamp(1.15rem, 5.8vw, 1.3rem); }
}

@media (max-width: 380px) and (max-height: 680px) {
  .hero-copy { margin-top: -20px; padding: 1.05rem 16px max(1.1rem, env(safe-area-inset-bottom)); }
  .hero-copy > p:not(.eyebrow) { margin-top: .6rem; font-size: .8rem; line-height: 1.35; }
  .button { min-height: 48px; margin-top: .95rem; }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 760px), (prefers-reduced-motion: no-preference) and (max-width: 1024px) and (orientation: portrait) {
  .hero-copy > * { opacity: 0; animation: ak-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero h1 { animation-delay: .04s; }
  .hero-copy > p:not(.eyebrow) { animation-delay: .14s; }
  .hero .button { animation-delay: .24s; }
}

@keyframes ak-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
