@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/nunito-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root { --sage: #91aba5; --ink: #3f0148; --heading: #30574e; }
* { box-sizing: border-box; }
body { margin: 0; background: white; color: var(--ink); font-family: "Nunito Sans", sans-serif; font-weight: 300; }
p, h1, h2, ul { margin: 0; }
header { height: 156px; background: rgba(145, 171, 165, .18); display: grid; place-items: center; }
h1 { line-height: 0; padding-top: 6px; }
h1 img { display: block; width: 600px; height: 78px; max-width: 90vw; object-fit: contain; }
.tagline { min-height: 160px; background: var(--sage); color: #f1eee7; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; }
.tagline p, h2 { font-size: 34px; line-height: 41px; letter-spacing: 5.1px; font-weight: inherit; }
.tagline p { max-width: calc(100% - 40px); }
.portfolio { padding: 94px 0 47px; position: relative; }
.gallery { overflow-x: auto; }
.gallery-track { display: flex; gap: 14px; width: max-content; }
.gallery-track picture { display: contents; }
.gallery-track source { display: none; }
.gallery img { display: block; width: var(--photo-width); height: 573px; flex: none; object-fit: cover; }
.gallery.enhanced { overflow: clip; }
.gallery-arrow { position: absolute; top: 360.5px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: white; opacity: .9; color: #333; padding: 0; cursor: pointer; }
.gallery-arrow::after { content: ""; position: absolute; inset: -2px; }
.gallery-arrow span { display: block; width: 11px; height: 11px; border-top: 1px solid; border-right: 1px solid; font-size: 0; transform: rotate(45deg); margin-left: 12px; }
.previous span { transform: rotate(-135deg); margin-left: 17px; }
.previous { left: 23px; }
.next { right: 23px; }
.studio { padding: 60px 0 176.875px; }
.intro, .copy { margin-left: max(30px, calc(50% - 401px)); max-width: calc(100% - 60px); overflow-wrap: anywhere; }
.intro { width: 798px; font-size: 30px; line-height: 42px; color: var(--sage); margin-bottom: 32px; }
.copy { width: 803px; font-size: 24px; line-height: 33.6px; }
.copy > p:not(.consultation) { margin-bottom: 33.6px; }
h2 { color: var(--heading); }
ul { list-style: none; padding: 30px 0 26px; font-size: 20px; line-height: 28px; }
li + li { margin-top: 28px; }
.consultation { margin-top: 24px; font-size: 20px; line-height: 24px; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
footer { height: 62px; background: var(--sage); }
button[hidden] { display: none; }
.back-to-top { display: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
header:focus:not(:focus-visible) { outline: none; }

@media (max-width: 767px), (max-width: 979px) and (max-height: 500px) and (orientation: landscape) {
  :root { --unit: clamp(1px, .3125vw, 1.21875px); --stage: min(360px, 55vh); --gallery-width: calc(100vw - 40 * var(--unit)); }
  @supports (height: 1svh) {
    :root { --stage: min(360px, 55svh); }
  }
  header { height: calc(90 * var(--unit)); position: sticky; top: 0; z-index: 50; }
  h1 { padding: 0; }
  h1 img { width: calc(280 * var(--unit)); height: calc(36 * var(--unit)); }
  .tagline { min-height: calc(90 * var(--unit)); }
  .tagline p { width: calc(280 * var(--unit)); max-width: calc(100% - 40 * var(--unit)); font-size: calc(21 * var(--unit)); line-height: calc(25 * var(--unit)); letter-spacing: calc(3.15 * var(--unit)); }
  .portfolio { padding: calc(46 * var(--unit)) calc(20 * var(--unit)) 0; }
  .gallery, .gallery.enhanced { overflow-x: auto; overflow-y: hidden; height: var(--stage); scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  /* Leave rounding-safe end slack: Chromium traps vertical touch at an exact scroll limit. */
  .gallery-track { transform: none !important; padding-left: calc((var(--gallery-width) - min(var(--gallery-width), var(--stage) * 1092 / 1441)) / 2 + 2px); padding-right: calc((var(--gallery-width) - min(var(--gallery-width), var(--stage) * 1086 / 1448)) / 2 + 2px); }
  .gallery img { width: auto; max-width: var(--gallery-width); height: var(--stage); object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always; }
  .gallery img[aria-hidden] { display: none; }
  .gallery-controls { display: flex; justify-content: center; gap: 16px; min-height: 56px; padding-top: 12px; }
  .gallery-arrow { position: relative; inset: auto; width: 44px; height: 44px; background: rgba(145, 171, 165, .18); opacity: 1; }
  .gallery-arrow[aria-disabled="true"] { opacity: .4; cursor: default; }
  .gallery-arrow span { margin-left: 14px; }
  .previous span { margin-left: 19px; }
  .studio { padding: calc(41 * var(--unit)) 0 calc(82 * var(--unit)); }
  .intro { margin-left: calc(23 * var(--unit)); width: calc(100% - 45 * var(--unit)); max-width: none; font-size: calc(27 * var(--unit)); line-height: calc(37.8 * var(--unit)); margin-bottom: calc(10 * var(--unit)); }
  .copy { margin-left: calc(20 * var(--unit)); width: calc(100% - 45 * var(--unit)); max-width: none; font-size: calc(24 * var(--unit)); line-height: calc(33.6 * var(--unit)); }
  .copy > p:not(.consultation) { margin-bottom: calc(33.6 * var(--unit)); }
  h2 { font-size: calc(28 * var(--unit)); line-height: calc(33 * var(--unit)); letter-spacing: calc(4.2 * var(--unit)); }
  ul { padding: calc(30 * var(--unit)) 0 calc(26 * var(--unit)); font-size: calc(20 * var(--unit)); line-height: calc(28 * var(--unit)); }
  li + li { margin-top: calc(28 * var(--unit)); }
  .consultation { font-size: calc(20 * var(--unit)); line-height: calc(24 * var(--unit)); margin-top: calc(24 * var(--unit)); }
  footer { height: calc(633 * var(--unit)); }
  .back-to-top { display: block; position: fixed; z-index: 51; width: calc(44 * var(--unit)); height: calc(44 * var(--unit)); right: max(calc(20 * var(--unit)), env(safe-area-inset-right)); bottom: max(calc(40 * var(--unit)), env(safe-area-inset-bottom)); border: 0; border-radius: 50%; padding: 0; background: #fee6c4; cursor: pointer; }
  .back-to-top svg { display: block; width: 100%; height: 100%; fill: none; stroke: white; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
}
