/* Studio Suvanto. Tokens follow ../../DESIGN.md */
@font-face { font-family: "Archivo"; src: url(fonts/archivo-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(fonts/dm-mono-latin.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f3efe7;
  --ink: #171614;
  --ink-soft: #57534b;
  --line: rgba(23, 22, 20, .18);
  --shade: 12, 11, 9;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --hh: 4.25rem;
  --bar: 2rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 200ms;
  --t-rise: 1100ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-soft) var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; caret-color: var(--ink); }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .28em; }
address { font-style: normal; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: #fff; }
.skip:focus { top: .5rem; }

/* ---- type roles */
.label, .topline, .nav a, .btn, .tlink, .facts dt, .facts dd, .price, figcaption, .footline, .field label, .menu-btn { font-family: var(--mono); font-size: .8125rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; }
.display { font: 200 clamp(3rem, min(14.2vw, 22svh), 11rem)/.86 var(--sans); letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; }
.display.long { font-size: clamp(2.5rem, min(11.4vw, 22svh), 11rem); }
.heading { font: 200 clamp(2.5rem, 9vw, 5.5rem)/.92 var(--sans); letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; hyphens: manual; }
.lead { font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.3; font-weight: 300; text-wrap: pretty; }
.measure { max-width: 62ch; }
.soft { color: var(--ink-soft); }

/* ---- buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3.25rem; padding: 0 1.5rem; border: 0; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.btn:hover { background: var(--paper); }
.btn:active { background: #dcd6ca; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3731; }
.btn-ink:active { background: #000; }
.btn svg, .tlink svg { width: 1.1em; height: 1.1em; flex: none; transition: transform 400ms var(--ease); }
.btn:hover svg, .tlink:hover svg, a:hover > .tlink svg { transform: translateX(.3em); }
.tlink { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em; }
.tel { white-space: nowrap; }
/* on photos the button's own colour is dark, so the ring has to be white to show */
.scene .btn:focus-visible, .header:not(.is-paper) .btn:focus-visible, .header.menu-open .btn:focus-visible { outline-color: #fff; }
.offer { font-family: var(--mono); font-size: 1rem; letter-spacing: .06em; }

/* ---- top bar and header */
.topline { position: sticky; top: 0; z-index: 51; height: var(--bar); white-space: nowrap; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: .25rem var(--gutter); background: var(--ink); color: #fff; font-size: .75rem; letter-spacing: .1em; text-align: center; }
.header { position: relative; z-index: 50; height: var(--hh); margin-bottom: calc(var(--hh) * -1); display: flex; align-items: center; gap: .75rem; padding: 0 var(--gutter); color: #fff; transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.js .header { position: sticky; top: var(--bar); }
.header.is-paper { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { margin-right: auto; font: 500 1rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; text-decoration: none; padding: .75rem 0; }
.header .btn { min-height: 2.75rem; padding: 0 .8rem; font-size: .6875rem; letter-spacing: .06em; white-space: nowrap; }
.header.is-paper .btn { background: var(--ink); color: #fff; }
.header.is-paper .btn:hover { background: #3a3731; }
.menu-btn { min-height: 2.75rem; padding: 0 0 0 .5rem; border: 0; background: none; color: inherit; cursor: pointer; }
.nav { display: none; }
.nav a { text-decoration: none; }
.nav a:hover, .nav a[aria-current] { text-decoration: underline; text-underline-offset: .5em; }
.header.menu-open { background: transparent; color: #fff; box-shadow: none; }
.header.menu-open .btn { background: #fff; color: var(--ink); }
.menu-open .nav { display: flex; flex-direction: column; justify-content: center; gap: .25rem; position: fixed; inset: 0; z-index: -1; padding: calc(var(--hh) + var(--bar)) var(--gutter) 2rem; background: var(--ink); overflow: auto; }
.menu-open .nav a { font: 200 clamp(2.25rem, 10.5vw, 4rem)/1.12 var(--sans); letter-spacing: -.04em; padding: .2rem 0; }
.menu-open .nav .nav-tel { margin-top: 2rem; font: 400 1rem/1.4 var(--mono); letter-spacing: .14em; }
.nav-tel { display: none; }
.menu-open .nav-tel { display: block; }
@media (min-width: 64rem) {
  .menu-btn { display: none; }
  .nav { display: flex; gap: clamp(1.25rem, 2.6vw, 2.75rem); margin-right: clamp(1rem, 2.6vw, 2.75rem); }
  .nav a { padding: .9rem 0; }
  .header .btn { padding: 0 1.25rem; font-size: .75rem; letter-spacing: .08em; }
}
.header > * { flex: none; }
.field input, .field select { scroll-margin-top: calc(var(--hh) + var(--bar) + 3.5rem); }
@media (max-width: 26rem) { .header { gap: .5rem; } .brand { letter-spacing: .16em; } .header .btn { padding: 0 .65rem; letter-spacing: .03em; } .menu-btn { font-size: .75rem; letter-spacing: .05em; padding-left: .25rem; } }

/* ---- photo scenes */
.scene { position: relative; height: 100svh; min-height: 22rem; overflow: hidden; background: #1d1b18; color: #fff; isolation: isolate; }
.scene-first, .scene-solo { height: calc(100svh - var(--bar)); }
.scene-short { height: 76svh; min-height: 30rem; }
/* each room holds still for a stretch of scrolling before the next one slides over it */
.rooms .scene { position: sticky; top: var(--bar); height: calc(100svh - var(--bar)); }
.rooms .scene + .scene { margin-top: 22svh; }
@media (min-width: 64rem) { .rooms .scene + .scene { margin-top: 70svh; } }
.scene-media { position: absolute; inset: 0; z-index: -2; transform: scale(var(--s, 1)); transform-origin: 50% 60%; }
.linked .rooms .scene-media { will-change: transform; }
/* rooms and sections below the first screen are not rendered until they come near */
.scene:not(.scene-first):not(.scene-solo) { content-visibility: auto; }
main > .section { content-visibility: auto; contain-intrinsic-size: auto 60rem; }
/* the picture wrapper needs the room's height, or the photo falls back to its own ratio and leaves a band */
.scene-media picture, .proj-media picture { height: 100%; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; }
/* shade: one gradient under the header, one under the text block; --c darkens a room while the next one covers it */
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(var(--shade), .78), rgba(var(--shade), .5) 5.5rem, rgba(var(--shade), 0) 32%),
    linear-gradient(to top, rgba(var(--shade), .92) 0, rgba(var(--shade), .82) 30%, rgba(var(--shade), .6) 52%, rgba(var(--shade), .22) 70%, rgba(var(--shade), 0) 84%),
    rgba(var(--shade), calc(.06 + var(--c, 0) * .45)); }
/* the first room carries more text (studio line, offer, button), so its shade reaches higher on phones */
@media (max-width: 63.99rem) { .scene-first::after { background:
  linear-gradient(to bottom, rgba(var(--shade), .78), rgba(var(--shade), .5) 5.5rem, rgba(var(--shade), 0) 28%),
  linear-gradient(to top, rgba(var(--shade), .92) 0, rgba(var(--shade), .86) 40%, rgba(var(--shade), .7) 58%, rgba(var(--shade), .3) 74%, rgba(var(--shade), 0) 88%),
  rgba(var(--shade), calc(.06 + var(--c, 0) * .45)); } }
.scene-text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.75rem, 6svh, 4.5rem); display: grid; gap: 1rem; justify-items: start; }
.scene-text .display { margin: .15em 0 0 -.04em; }
.scene-line { font-size: clamp(1.125rem, 2vw, 1.5rem); line-height: 1.35; max-width: 34ch; text-wrap: pretty; }
.scene-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin-top: .5rem; }
.scene-actions .tel { font-family: var(--mono); font-size: 1rem; letter-spacing: .1em; min-height: 2.75rem; display: inline-flex; align-items: center; }
.scene-text .tlink { white-space: nowrap; }
@media (min-width: 64rem) {
  .scene-text > .scene-side { position: absolute; right: 0; bottom: 0; }
  /* wide screens: the text block is low and small, so the shade can be shorter */
  .scene::after { background:
    linear-gradient(to bottom, rgba(var(--shade), .8), rgba(var(--shade), .55) 5rem, rgba(var(--shade), 0) 24%),
    linear-gradient(to top, rgba(var(--shade), .92) 0, rgba(var(--shade), .84) 28%, rgba(var(--shade), .64) 46%, rgba(var(--shade), .2) 60%, rgba(var(--shade), 0) 72%),
    rgba(var(--shade), calc(var(--c, 0) * .45)); }
}

/* ---- paper sections */
.section { padding: 7rem var(--gutter); }
.section + .section { padding-top: 0; }
.section.cta { padding-top: 7rem; }
.split > .cols > * { margin-top: 0; }
.pagehead { padding: calc(var(--hh) + 5rem) var(--gutter) 4.5rem; }
.pagehead .lead { margin-top: 2rem; max-width: 30ch; }
.split { display: grid; gap: 2.5rem; }
.split > div > * + * { margin-top: 1.5rem; }
.heading + .split { margin-top: 3rem; }
.rule { border-top: 1px solid var(--line); padding-top: 1.5rem; }
@media (min-width: 64rem) {
  body { font-size: 1.1875rem; }
  .section, .section.cta { padding-block: 10rem; }
  .section + .section:not(.cta) { padding-top: 0; }
  .pagehead { padding-top: calc(var(--hh) + 8rem); padding-bottom: 7rem; }
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; align-items: start; }
}

/* services rows */
.rows { margin-top: 3rem; border-top: 1px solid var(--line); }
.rows > li { border-bottom: 1px solid var(--line); }
.row { display: grid; gap: .35rem 2rem; padding: 1.5rem 0; text-decoration: none; }
.row h3 { font: 300 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--sans); letter-spacing: -.02em; }
.row p { color: var(--ink-soft); max-width: 46ch; }
p, li, dd { text-wrap: pretty; }
.price { font-size: 1rem; letter-spacing: .08em; white-space: nowrap; font-variant-numeric: tabular-nums; }
a.row { transition: padding-left 400ms var(--ease); }
a.row:hover { padding-left: .75rem; }
.after-rows { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 2rem; margin-top: 1.5rem; }
@media (min-width: 48rem) {
  /* fixed price column, so the descriptions start on one line down the list */
  .row { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) 12rem; align-items: baseline; }
  .row .price { justify-self: end; }
}

/* service detail blocks (services page) */
.svc { display: grid; gap: 1.5rem; padding: 3rem 0; border-top: 1px solid var(--line); scroll-margin-top: var(--hh); }
.svc h2 { font: 200 clamp(2rem, 5.4vw, 3.5rem)/1 var(--sans); letter-spacing: -.035em; text-transform: uppercase; hyphens: manual; }
.svc .price { margin-top: .9rem; display: block; }
.svc ul { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.svc li { padding: .8rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 64rem) { .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4.5rem; padding: 4.5rem 0; } }

/* steps and plain definition rows */
.steps > li, .defs > div { display: grid; gap: .4rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.steps, .defs { margin-top: 3rem; border-bottom: 1px solid var(--line); }
.steps h3, .defs dt, .cols h2, .cols h3 { font: 400 1.25rem/1.25 var(--sans); }
.steps .label { color: var(--ink-soft); }
@media (min-width: 48rem) {
  .steps > li { grid-template-columns: 4rem minmax(0, 4fr) minmax(0, 6fr); align-items: baseline; }
  .defs > div { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: baseline; }
}
.cols { display: grid; gap: 2.5rem; margin-top: 3rem; }
.cols > * { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.cols p { margin-top: .75rem; color: var(--ink-soft); }
@media (min-width: 40rem) { .cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 72rem) { .cols-4 { grid-template-columns: repeat(4, 1fr); } }

/* reviews */
.reviews { display: grid; gap: 3rem; margin-top: 3rem; }
.reviews blockquote { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.reviews p { font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.35; font-weight: 300; text-wrap: pretty; }
.reviews footer { margin-top: 1.5rem; display: grid; gap: .25rem; }
.reviews .label:first-child { color: var(--ink); }
@media (min-width: 64rem) { .reviews { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }

/* facts row */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; padding: 1.5rem 0; border-block: 1px solid var(--line); }
.facts dt { color: var(--ink-soft); font-size: .75rem; }
.facts dd { margin-top: .35rem; font-size: 1rem; letter-spacing: .08em; }
.note { margin-top: 1rem; color: var(--ink-soft); }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* photo series */
.series { display: grid; gap: var(--gutter); padding: 0 var(--gutter) 4.5rem; }
.series img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #ddd6c9; }
.series .wide { margin-inline: calc(var(--gutter) * -1); }
.series .wide figcaption { padding-inline: var(--gutter); }
figcaption { margin-top: .75rem; color: var(--ink-soft); }
@media (min-width: 48rem) {
  .series { grid-template-columns: 1fr 1fr; }
  .series .wide { grid-column: 1 / -1; }
  .series .wide img { aspect-ratio: 16 / 9; }
  .series .tall img { aspect-ratio: 4 / 5; }
}

/* project list */
.projects { display: grid; gap: 4.5rem; padding: 0 var(--gutter) 7rem; }
.proj { display: block; text-decoration: none; }
.proj-media { overflow: hidden; background: #ddd6c9; aspect-ratio: 4 / 5; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1600ms var(--ease); }
.proj:hover img { transform: scale(1.035); }
.proj-cap { display: grid; gap: .5rem; margin-top: 1.25rem; }
.proj-cap h2 { font: 200 clamp(2.25rem, 7vw, 4.5rem)/.95 var(--sans); letter-spacing: -.04em; text-transform: uppercase; }
@media (min-width: 48rem) {
  .projects { gap: 7rem; padding-bottom: 10rem; }
  .proj-media { aspect-ratio: 16 / 9; }
  .proj-cap { grid-template-columns: 1fr auto; align-items: end; }
  .proj-cap .meta { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
}

/* next project band */
a.scene { display: block; text-decoration: none; }
a.scene .scene-media { transition: transform 1600ms var(--ease); }
a.scene:hover .scene-media { transform: scale(1.03); }

/* booking form */
.cta { border-top: 1px solid var(--line); }
.cta .tel-big { display: inline-block; font: 200 clamp(2.25rem, 6vw, 4rem)/1 var(--sans); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.cta .tel-big:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .4rem; }
.field label { color: var(--ink-soft); }
.field input, .field select { width: 100%; min-height: 3.25rem; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 400 1.25rem/1.3 var(--sans); appearance: none; }
.field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23171614' stroke-width='1.2'%3E%3Cpath d='m3 6 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .1rem center / 1rem; padding-right: 2rem; }
.field input:hover, .field select:hover { border-bottom-width: 2px; padding-bottom: calc(.5rem - 1px); }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom-width: 2px; }
.error { color: var(--ink); font-size: 1rem; font-weight: 500; }
.error::before { content: "! "; font-family: var(--mono); }
.form .btn { justify-self: start; margin-top: .5rem; }
.form-note { font-size: 1rem; color: var(--ink-soft); max-width: 44ch; }
@media (min-width: 40rem) { .form { grid-template-columns: 1fr 1fr; } .form > :not(.field) { grid-column: 1 / -1; } }

/* footer */
.footer { padding: 4.5rem var(--gutter) 2rem; border-top: 1px solid var(--line); display: grid; gap: 2.5rem; }
.footer .brand { justify-self: start; }
.footer ul { display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; }
.footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .75rem; letter-spacing: .1em; }
@media (min-width: 64rem) { .footer { grid-template-columns: 1fr auto 1fr; column-gap: 4.5rem; align-items: start; } .footline { grid-column: 1 / -1; } }

/* ---- motion. Everything is visible without the .motion class (set inline in <head>). */
@media (prefers-reduced-motion: no-preference) {
  .motion .rise { transition: opacity var(--t-rise) var(--ease), transform var(--t-rise) var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .motion .scene:not(.in) .rise, .motion .rise-group:not(.in) .rise { opacity: 0; transform: translateY(1.5rem); }
  /* phones and no-scroll-link fallback: one slow settle when the room arrives */
  .motion .scene-media { transition: transform 2400ms var(--ease); }
  .motion .scene:not(.in) .scene-media { transform: scale(1.04); }
  .motion.linked .rooms .scene-media { transition: none; }
  .motion.linked .rooms .scene:not(.in) .scene-media { transform: scale(var(--s, 1.05)); }
}
@media (prefers-reduced-motion: reduce) {
  .rooms .scene { position: relative; }
  .rooms .scene + .scene { margin-top: 0; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* short, wide windows (laptops at 150 % scaling, phones on their side): tighten the text block so it stays inside the room */
@media (max-height: 42rem) and (min-aspect-ratio: 1/1) {
  .scene::after { background:
    linear-gradient(to bottom, rgba(var(--shade), .8), rgba(var(--shade), .55) 5rem, rgba(var(--shade), 0) 9rem),
    linear-gradient(to top, rgba(var(--shade), .92) 0, rgba(var(--shade), .86) 48%, rgba(var(--shade), .72) 66%, rgba(var(--shade), .3) 82%, rgba(var(--shade), 0) 94%),
    rgba(var(--shade), calc(var(--c, 0) * .45)); }
  .scene-text { gap: .5rem; bottom: 1.25rem; }
  .scene-line { font-size: 1.125rem; }
  .scene-actions { margin-top: .25rem; }
  .scene-short { min-height: 20rem; }
}
/* phone on its side: no room for the studio line above the room name, keep it for screen readers only */
@media (max-height: 30rem) and (min-aspect-ratio: 1/1) {
  .scene-text h1.label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .scene-first .scene-side { display: none; }
}
/* keep the offer on one line on narrow phones */
@media (max-width: 26rem) { .offer { font-size: .875rem; letter-spacing: .03em; white-space: nowrap; } }
