/* Altay Atelier — white gallery layout: centred wordmark, inset hero slider,
   mosaic collection. Colour comes from the photographs and the collection panels. */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --soft: #5f5f5f;
  --rule: #e6e6e6;
  --wash: #f6f1ec;
  --focus: #1d4ed8;
  --display: "Playfair Display", "Didot", Georgia, serif;
  --text: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 2.8vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 .9375rem/1.75 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); }
p { max-width: 64ch; text-wrap: pretty; }
.center { text-align: center; margin-inline: auto; }
.lead { color: var(--soft); margin-top: 1.25rem; max-width: 60ch; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-inline: var(--gutter); max-width: 82rem; margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 2.9rem; padding: .6rem 2.2rem; border: 1px solid currentColor; background: transparent;
  font: 500 .8125rem/1.2 var(--text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn::after { content: ""; position: absolute; inset: -5px; border: 1px solid currentColor; opacity: .55; pointer-events: none; }
.btn:hover { background: var(--ink); color: #fff; }
.btn--solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--solid::after { border-color: var(--ink); }
.btn--solid:hover { background: #333; }
.btn--light { color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }
.round {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer;
}
.round:hover { background: var(--ink); color: #fff; }

/* ---------- header ---------- */
.top__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--rule); font-size: .8125rem; font-weight: 500; }
.top__left { display: flex; gap: 1rem; }
.top__right { display: flex; gap: 1.75rem; justify-content: flex-end; }
.top__right a { text-decoration: none; }
.top__right a:hover, .nav a:hover { text-decoration: underline; text-underline-offset: .35em; }
.icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; }
.mark { font: italic 500 1.75rem/1 var(--display); text-decoration: none; white-space: nowrap; letter-spacing: .01em; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem clamp(1.25rem, 3vw, 2.75rem); padding: 1.1rem var(--gutter); font-size: .8125rem; font-weight: 500; }
.nav a { text-decoration: none; padding: .35rem 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 640px) {
  .mark { font-size: 1.4rem; }
  .top__right { gap: 1rem; }
  .nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 1.25rem; }
}

/* ---------- hero slider ---------- */
.hero { position: relative; margin-inline: var(--gutter); height: clamp(30rem, calc(100vh - 9.5rem), 54rem); overflow: hidden; background: #2a211b; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / .5), rgb(0 0 0 / 0) 60%), linear-gradient(0deg, rgb(0 0 0 / .35), rgb(0 0 0 / 0) 45%); }
.slide__text { position: absolute; z-index: 1; left: clamp(1.5rem, 6vw, 6rem); bottom: clamp(5rem, 12vh, 8rem); max-width: min(34rem, 80%); color: #fff; }
.slide__text h2 { font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.05; }
.slide__text p { margin: 1rem 0 2rem; font-size: 1rem; }
.hero__arrows { position: absolute; z-index: 2; right: 1.5rem; top: 1.5rem; display: flex; gap: .6rem; }
.hero__tab {
  position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .75rem; padding: 1rem 2rem; background: var(--ink); color: #fff;
  font-size: .8125rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
@media (max-width: 640px) {
  .hero { height: clamp(28rem, 78vh, 40rem); }
  .slide__text { bottom: 5.5rem; }
  .slide::after { background: linear-gradient(0deg, rgb(0 0 0 / .78), rgb(0 0 0 / .1) 70%); }
  .slide img { object-position: 78% 50%; }
  .hero__arrows { right: .75rem; top: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; } html { scroll-behavior: auto; } }

/* ---------- home: discover ---------- */
.discover { padding-block: clamp(4rem, 8vw, 7rem); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); margin: clamp(2rem, 4vw, 3.5rem) 0; }
.tile__open { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; }
.tile__frame { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--wash); }
.tile__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.tile__open:hover img { transform: scale(1.04); }
.tile__name { display: block; margin-top: 1.1rem; font: 700 1.125rem/1.3 var(--display); }
.tile__line { display: block; color: var(--soft); font-size: .8125rem; margin-top: .25rem; }
.tile__link { display: inline-block; margin-top: .7rem; font-size: .8125rem; font-weight: 500; border-bottom: 1px solid currentColor; }
@media (max-width: 899px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .tile__frame img, .block__image img { transition: none !important; } }

/* ---------- home: workbench band, statement, instagram, teaser ---------- */
.band { position: relative; margin-inline: var(--gutter); height: clamp(26rem, 70vh, 42rem); overflow: hidden; background: #111; }
.band > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.band::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .45); }
.band__text { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; color: #fff; }
.band__text h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.band__text p { margin: 1.25rem 0 2rem; max-width: 46ch; }
.statement { padding: clamp(4rem, 9vw, 8rem) var(--gutter); text-align: center; }
.statement p { font: italic 500 clamp(1.5rem, 3.2vw, 2.5rem)/1.35 var(--display); max-width: 26ch; margin-inline: auto; }
.statement span { display: block; margin-top: 1.5rem; font-size: .8125rem; font-weight: 500; }
.insta { padding-bottom: clamp(4rem, 8vw, 7rem); }
.insta__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin: 2.5rem 0; }
.insta__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.insta__grid a:hover img { opacity: .85; }
@media (max-width: 899px) { .insta__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.teaser { background: var(--wash); padding-block: clamp(3.5rem, 7vw, 6rem); }
.teaser__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.teaser__grid p { margin-bottom: 2rem; }
@media (max-width: 899px) { .teaser__grid { grid-template-columns: 1fr; } }

/* ---------- inner pages ---------- */
.page { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(4rem, 8vw, 7rem); }
.page > .lead { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.page > h1 + :not(.lead) { margin-top: clamp(2.5rem, 5vw, 4rem); }
.page > p.center:last-child { margin-top: clamp(3rem, 6vw, 5rem); }

/* collection mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(15rem, 23vw, 20rem); gap: 1.25rem; }
.block { display: grid; background: var(--tone); color: #fff; overflow: hidden; }
.block--wide { grid-column: span 2; grid-template-columns: 1fr 1fr; }
.block--tall { grid-row: span 2; grid-template-rows: 1fr 1fr; }
.block--tall .block__image { order: -1; }
.wide--flip .block__image { order: -1; }
.block__text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(1.25rem, 2.5vw, 2.5rem); gap: 1rem; }
.block__text h2 { font-size: clamp(1.35rem, 2vw, 1.9rem); }
.block__text p { font-size: .8125rem; line-height: 1.7; opacity: .92; }
.block__text .btn { margin-top: .5rem; }
.block__image { padding: 0; border: 0; background: none; cursor: pointer; overflow: hidden; min-height: 0; }
.block__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.block__image:hover img { transform: scale(1.04); }
.block__image:focus-visible { outline-offset: -4px; outline-color: #fff; }
.block .btn:focus-visible { outline-color: #fff; }
@media (max-width: 899px) {
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .block--wide, .block--tall { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: auto; }
  .block .block__image { order: -1; aspect-ratio: 4 / 3; }
}

/* meet */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.story__text h2 { margin-bottom: 1.5rem; }
.story__text p + p { margin-top: 1rem; }
.story__text .btn { margin-top: 2.25rem; }
figcaption { margin-top: .6rem; color: var(--soft); font-size: .8125rem; }
.story__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: clamp(3rem, 6vw, 5rem); }
.story__pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 899px) { .story { grid-template-columns: 1fr; } }

/* workbench */
.stage { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.stage + .stage { margin-top: 1.25rem; }
.stage:nth-child(even) .stage__image { order: 2; }
.stage__image img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.stage__text { background: var(--wash); display: flex; flex-direction: column; justify-content: center; padding: clamp(1.75rem, 5vw, 5rem); }
.stage__no { font: italic 500 2.5rem/1 var(--display); margin-bottom: .75rem; }
.stage__text h2 { margin-bottom: .75rem; }
@media (max-width: 899px) { .stage { grid-template-columns: 1fr; } .stage:nth-child(even) .stage__image { order: 0; } }

/* commissions */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.duo + .duo { margin-top: clamp(3rem, 7vw, 6rem); }
.duo--flip .duo__image { order: -1; }
.duo__text h2 { margin-bottom: 1rem; }
.duo__text .btn { margin-top: 2rem; }
.duo__image > img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .duo { grid-template-columns: 1fr; } .duo .duo__image { order: -1; } }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.contact__side p + p { margin-top: 1rem; }
.contact__side img { margin-top: 2rem; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.link { display: inline-flex; align-items: center; gap: .5rem; text-underline-offset: .3em; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; font-size: .8125rem; font-weight: 500; margin-bottom: .4rem; }
.field input, .field select, .field textarea, .form__fallback { width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink); background: #fff; border: 1px solid #8c8c8c; border-radius: 0; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.field__hint, .form__note { color: var(--soft); font-size: .8125rem; margin-top: .4rem; }
.field__err { color: #b3261e; font-size: .8125rem; margin-top: .4rem; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.form__send { display: flex; flex-wrap: wrap; gap: 1.25rem; padding: 5px; }
.form__status { padding: .8rem 1rem; border-left: 2px solid var(--ink); background: var(--wash); max-width: none; }
@media (max-width: 899px) { .contact { grid-template-columns: 1fr; } .contact__side img { display: none; } }
@media (max-width: 559px) { .form { grid-template-columns: 1fr; } .form__send .btn { width: 100%; } }

/* ---------- piece sheet ---------- */
.sheet { width: min(72rem, 100vw - 2rem); max-height: calc(100dvh - 2rem); padding: 0; border: 0; background: #fff; color: var(--ink); overflow: auto; }
.sheet[open] { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.sheet::backdrop { background: rgb(0 0 0 / .7); }
.sheet__media { background: var(--wash); }
.sheet__media > img { width: 100%; max-height: 78dvh; object-fit: contain; }
.sheet__thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; }
.sheet__thumbs button { flex: 0 0 4rem; padding: 0; border: 1px solid transparent; background: none; cursor: pointer; opacity: .6; }
.sheet__thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.sheet__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sheet__text { padding: clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.sheet__line { color: var(--soft); margin: .5rem 0 1.5rem; }
.sheet__text .btn { margin-top: 2rem; }
.sheet__close { position: sticky; top: .75rem; justify-self: end; grid-column: 1 / -1; margin: .75rem .75rem -3.25rem 0; z-index: 2; min-height: 2.5rem; padding: .4rem 1.1rem; border: 1px solid var(--ink); background: #fff; font: 500 .8125rem var(--text); cursor: pointer; }
.sheet__close:hover { background: var(--ink); color: #fff; }
@media (max-width: 799px) { .sheet[open] { grid-template-columns: 1fr; } .sheet__media > img { max-height: 60dvh; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding-block: 1.75rem; font-size: .75rem; color: var(--soft); }
.foot__grid { display: grid; grid-template-columns: 1fr auto; gap: .5rem 2rem; align-items: center; }
.foot__note { grid-column: 1 / -1; max-width: none; }
.foot__icons { color: var(--ink); }
