@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500-latin-ext.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page: #f3f3f1;
  --ink: #111111;
  --card: #ffffff;
  --field: #ffffff;
  --muted-border: #b8b8b8;
  --accent: #7c1f2a;
  --header-height: 66px;
  --page-padding: 4vw;
  color-scheme: light;
}

html[data-theme="dark"] {
  --page: #0e0e0e;
  --ink: #f7f7f7;
  --card: #1a1a1a;
  --field: #151515;
  --muted-border: #454545;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Manrope, Arial, sans-serif;
  transition: background-color .25s ease, color .25s ease;
}

body.menu-open, body.lightbox-open { overflow: hidden; }

img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--page);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 var(--page-padding);
  background: var(--page);
  transition: background-color .25s ease;
}

.brand { display: block; width: 155px; flex: 0 0 auto; line-height: 0; }
.brand img { display: block; width: 100%; height: auto; transition: filter .25s; }
html[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

.desktop-nav { display: flex; align-items: center; gap: 20px; }
.desktop-nav a, .mobile-menu a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}
.desktop-nav a:hover { opacity: .55; }

.header-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.language-picker { position: relative; width: 44px; height: 40px; }
.language-trigger {
  width: 44px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
}
.language-arrow {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.language-picker.open .language-arrow { transform: rotate(225deg) translate(-2px, -2px); }
.language-menu {
  position: absolute;
  top: 44px;
  right: 0;
  width: 62px;
  padding: 4px;
  border: 1px solid var(--muted-border);
  border-radius: 9px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.language-menu button {
  display: block;
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: .08em;
  cursor: pointer;
}
.language-menu button:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.language-menu button[aria-selected="true"] { font-weight: 700; }

.theme-switch {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background-color: var(--ink);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3f3f1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3A7 7 0 0 0 21 12.8Z'/%3E%3C/svg%3E");
  cursor: pointer;
}
html[data-theme="dark"] .theme-switch {
  background-color: #f7f7f7;
  border-color: #f7f7f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.42-1.42M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.menu-toggle { display: none; }
.mobile-menu { display: none; }

main { padding-top: var(--header-height); }

.hero {
  position: relative;
  width: calc(100% - 8vw);
  max-width: 1400px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.535 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 44px;
}
.hero-picture { display: block; width: 100%; height: 100%; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: var(--crop, center); display: block; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.13) 46%, transparent 70%); }
.hero-content {
  position: absolute;
  left: 4.2%;
  top: 50%;
  transform: translateY(-43%);
  color: #fff;
  max-width: 620px;
}
.hero h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(52px, 4.85vw, 66px);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.02em;
}
.hero-content p { margin: 34px 0 0; font-size: 22px; line-height: 1.5; }
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 48px;
  padding: 19px 36px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .2s;
}
.hero-button:hover { background: rgba(0,0,0,.72); transform: translateY(-2px); }

.section { width: calc(100% - 8vw); max-width: 1400px; margin: 0 auto; }
.section h2, .section h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.02em;
}
.section h2 { font-size: clamp(44px, 3.4vw, 48px); line-height: .95; }
.section h3 { font-size: clamp(34px, 2.6vw, 38px); line-height: 1; }
.portfolio-intro { padding-top: 42px; }
.section-lead { max-width: 650px; margin: 34px 0 28px; font-size: 22px; line-height: 1.5; }

.portfolio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; width: 100%; }
.portfolio-card {
  display: block;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, background-color .25s;
}
.card-title { display: block; margin: 2px 2px 16px; font-size: .82rem; font-weight: 600; line-height: 1.2; letter-spacing: .1em; }
.card-image { display: block; width: 100%; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 5; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop, center); transition: transform .35s ease; }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(0,0,0,.09); }
.portfolio-card:hover img { transform: scale(1.035); }

.gallery-section { padding-top: 92px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 11px; margin-top: 42px; }
.gallery-item {
  appearance: none;
  display: block;
  width: 100%;
  height: 369px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: transparent;
  cursor: zoom-in;
}
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop, center); transition: transform .35s ease, opacity .25s; }
.gallery-item:hover img { transform: scale(1.02); opacity: .94; }
.gallery-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.about { padding-top: 120px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin-top: 46px; }
.about-photo { width: 90%; margin-inline: auto; height: clamp(520px, 42vw, 650px); min-height: 0; overflow: hidden; border-radius: 24px; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--crop, center); }
.content-card { border-radius: 24px; background: var(--card); transition: background-color .25s; }
.about-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 6vw, 88px); }
.about-card p { margin: 0; font-size: 16px; line-height: 1.55; }
.about-card .about-lead { margin-bottom: 28px; font-size: 22px; line-height: 1.5; }

.contact { padding-top: 74px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: min(22vw, 300px); align-items: start; margin-top: 42px; }
.contact-copy { padding: 34px 30px; }
.contact-copy p { margin: 0 0 23px; font-size: 15px; line-height: 1.55; }
.contact-copy .contact-lead { font-size: 22px; line-height: 1.45; }
.contact-copy a { text-underline-offset: 3px; }

.contact-form { width: 520px; max-width: 100%; padding: 28px; border-radius: 24px; background: var(--card); color: var(--ink); transition: background-color .25s; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.field label { font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--muted-border);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(124,31,42,.14); }
.submit-button {
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #f3efe8;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.submit-button:hover { opacity: .88; transform: translateY(-1px); }
.submit-button:disabled { cursor: wait; opacity: .6; }
.form-status { min-height: 24px; margin: 18px 0 0; font-size: .95rem; line-height: 1.5; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 70px;
  align-items: center;
  padding: 32px;
  background: rgba(0,0,0,.92);
}
.lightbox[hidden] { display: none; }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 64px); margin: auto; object-fit: contain; }
.lightbox button { border: 0; background: transparent; color: #fff; cursor: pointer; }
.lightbox-close { position: absolute; top: 12px; right: 20px; z-index: 1; font-size: 46px; line-height: 1; }
.lightbox-prev, .lightbox-next { font-size: 58px; line-height: 1; }

@media (max-width: 900px) {
  :root { --header-height: 78px; --page-padding: 5vw; }
  .site-header { gap: 8px; }
  .brand { width: 145px; }
  .desktop-nav { display: none; }
  .header-controls { gap: 5px; }
  .theme-switch { width: 38px; height: 38px; flex-basis: 38px; }
  .menu-toggle {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle span { position: absolute; left: 7px; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
  .menu-toggle span:first-child { top: 14px; }
  .menu-toggle span:last-child { top: 23px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
  .mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px 24px 24px;
    border-radius: 0 0 24px 24px;
    background: var(--page);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { font-size: 24px; }

  .hero { width: calc(100% - 10vw); height: auto; min-height: 0; aspect-ratio: 1.11 / 1; border-radius: 30px; }
  .hero-image { object-position: var(--crop, center); }
  .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.5), rgba(0,0,0,.06)); }
  .hero-content { left: 7%; right: 7%; top: 50%; }
  .hero h1 { font-size: clamp(36px, 8.8vw, 44px); line-height: .94; }
  .hero-content p { margin-top: 24px; font-size: 17px; }
  .hero-button { min-height: 46px; margin-top: 28px; padding: 14px 24px; font-size: 11px; }

  .section { width: calc(100% - 10vw); }
  .portfolio-intro { padding-top: 56px; }
  .section-lead { font-size: 18px; margin: 26px 0 28px; }
  .portfolio-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .portfolio-card { padding: 10px; border-radius: 18px; }
  .card-title { margin: 0 2px 10px; font-size: .68rem; }
  .card-image { border-radius: 12px; }
  .portfolio-card, .portfolio-card:hover, .portfolio-card img, .portfolio-card:hover img { transform: none; transition: background-color .25s; }

  .gallery-section { padding-top: 72px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 28px; }
  .gallery-item, .gallery-item.span-2 { grid-column: span 1; height: 52vw; max-height: 430px; min-height: 210px; border-radius: 14px; }
  .gallery-small { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .about { padding-top: 90px; }
  .about-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .about-photo { height: auto; aspect-ratio: 3 / 4; min-height: 0; }
  .about-card { padding: 34px 26px; }
  .about-card .about-lead { font-size: 20px; }

  .contact { padding-top: 72px; }
  .contact-grid { grid-template-columns: 1fr; gap: 22px; margin-top: 30px; }
  .contact-copy { padding: 28px 24px; }
  .contact-copy .contact-lead { font-size: 20px; }
  .contact-form { width: 100%; padding: 18px; border-radius: 20px; }
  .lightbox { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 18px 4px; }
  .lightbox-image { max-height: calc(100vh - 36px); }
  .lightbox-prev, .lightbox-next { font-size: 44px; }
}

@media (max-width: 430px) {
  .brand { width: 123px; }
  .language-picker, .language-trigger { width: 40px; }
  .header-controls { gap: 2px; }
  .section h2 { font-size: 40px; }
  .section h3 { font-size: 32px; }
  .gallery-item, .gallery-item.span-2 { min-height: 170px; }
}

/* Editorial edition */
:root { --hairline: color-mix(in srgb, var(--ink) 20%, transparent); }

body { overflow-x: hidden; }

.site-header {
  transition: height .3s ease, background-color .25s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled {
  height: 58px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  box-shadow: 0 1px 0 var(--hairline);
  backdrop-filter: blur(16px);
}
.desktop-nav a { position: relative; padding: 7px 0; transition: opacity .2s; }
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 1px;
  background: currentColor;
  transition: right .25s ease;
}
.desktop-nav a:hover::after, .desktop-nav a.is-active::after { right: 0; }

.hero-kicker {
  display: block;
  margin-bottom: 22px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .18em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 42px; }
.hero-actions .hero-button { margin-top: 0; }
.hero-button-secondary {
  border: 1px solid rgba(255,255,255,.72);
  background: rgba(0,0,0,.08);
}
.hero-button-secondary:hover { background: rgba(255,255,255,.16); }

.section[data-index] > h2, .section[data-index] > h3 {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.section[data-index] > h2::before, .section[data-index] > h3::before {
  content: attr(data-index);
  font-family: Manrope, Arial, sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .12em;
}
.section[data-index] > h2::after, .section[data-index] > h3::after {
  content: "";
  height: 1px;
  flex: 1;
  margin-left: 8px;
  background: var(--hairline);
}
.portfolio-intro { padding-top: 64px; }
.section-lead { max-width: 760px; }

.portfolio-card { padding: 14px; border-radius: 22px; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  padding: 0 3px 11px;
  font-size: 15px;
}
.card-title { margin: 0; font-size: .76rem; }

.gallery-section { padding-top: 128px; }
.gallery {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(78px, 7.2vw, 108px);
  gap: 16px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  grid-column: span 3;
  grid-row: span 4;
  height: auto;
  border-radius: 20px;
}
.gallery-item.span-2 { grid-column: span 6; grid-row: span 4; }
.gallery:not(.gallery-small) .gallery-item:nth-child(6n + 4) { grid-row: span 5; }
.gallery-small .gallery-item { grid-column: span 6; grid-row: span 4; }
.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 22px;
  padding: 20px 4px 18px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .1em;
  text-decoration: none;
}
.gallery-cta span:last-child { font-size: 20px; transition: transform .25s ease; }
.gallery-cta:hover span:last-child { transform: translate(4px, -4px); }

.services { padding-top: 140px; }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 48px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
  transition: transform .3s ease, background-color .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--ink) 42%, transparent); }
.service-card h3 { margin: 0 0 22px; font-size: clamp(32px, 2.6vw, 42px); }
.service-card p { min-height: 106px; margin: 0; font-size: 15px; line-height: 1.65; }
.service-card a, .text-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  text-decoration: none;
}
.service-card a span:last-child, .text-link span:last-child { font-size: 18px; transition: transform .25s ease; }
.service-card a:hover span:last-child, .text-link:hover span:last-child { transform: translate(3px, -3px); }

.about { padding-top: 140px; }
.about-kicker { margin-bottom: 52px; font-size: 10px; font-weight: 650; letter-spacing: .14em; }
.about-card .about-lead { font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(28px, 2.5vw, 38px); line-height: 1.08; }
.about-card > p:not(.about-lead) { max-width: 570px; line-height: 1.7; }
.about-card .text-link { margin-top: 48px; }

.contact { padding-top: 140px; }
.contact-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-copy { min-height: 650px; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 72px); }
.contact-copy .contact-display {
  margin: 0 0 auto;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: .92;
  white-space: pre-line;
}
.contact-copy .contact-lead { max-width: 530px; margin-top: 70px; }
.contact-copy .response-time { margin: 8px 0 0; color: color-mix(in srgb, var(--ink) 62%, transparent); font-size: 12px; }
.contact-form { width: 100%; min-height: 650px; display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 58px); }
.field label span { opacity: .58; font-size: .82em; }

.lightbox { background: rgba(8,8,8,.96); }
.lightbox-stage { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox-image { max-height: calc(100dvh - 64px); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

:where(a, button, input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hero :where(a, button):focus-visible, .lightbox :where(a, button):focus-visible { outline-color: #fff; }

@media (max-width: 900px) {
  .site-header.is-scrolled { height: 66px; }
  .hero-kicker { margin-bottom: 13px; font-size: 9px; }
  .hero-actions { flex-wrap: nowrap; gap: 7px; margin-top: 25px; }
  .hero-actions .hero-button { min-height: 42px; padding: 12px 15px; font-size: 9px; letter-spacing: .05em; }
  .section[data-index] > h2, .section[data-index] > h3 { gap: 10px; }
  .section[data-index] > h2::before, .section[data-index] > h3::before { font-size: 9px; }
  .section[data-index] > h2::after, .section[data-index] > h3::after { margin-left: 2px; }
  .portfolio-intro { padding-top: 64px; }
  .portfolio-card:last-child { grid-column: 1 / -1; width: calc(50% - 8px); justify-self: center; }
  .card-meta { min-height: 35px; padding-bottom: 8px; font-size: 12px; }
  .card-title { font-size: .6rem; }
  .gallery-section { padding-top: 96px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 8px; margin-top: 30px; }
  .gallery-item, .gallery-item.span-2, .gallery:not(.gallery-small) .gallery-item:nth-child(6n + 4), .gallery-small .gallery-item {
    grid-column: span 1;
    grid-row: auto;
    height: 52vw;
    min-height: 170px;
    max-height: 430px;
  }
  .gallery-cta { margin-top: 12px; padding: 18px 2px 16px; font-size: 9px; }
  .services { padding-top: 105px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 30px; }
  .service-card { min-height: 250px; padding: 28px; }
  .service-card h3 { margin: 0 0 18px; font-size: 36px; }
  .service-card p { min-height: 0; }
  .about { padding-top: 105px; }
  .about-kicker { margin-bottom: 34px; }
  .about-card .about-lead { font-size: 31px; }
  .about-card .text-link { margin-top: 36px; }
  .contact { padding-top: 105px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { min-height: 500px; }
  .contact-form { min-height: 0; }
  .lightbox { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .lightbox-image { max-height: calc(100dvh - 64px); }
}

@media (max-width: 430px) {
  .hero-kicker { display: none; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .hero-button { padding-inline: 12px; font-size: 8.5px; }
  .portfolio-card:last-child { width: calc(50% - 4px); }
  .contact-copy { min-height: 440px; padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Mobile opening based on the supplied portrait reference. */
@media (max-width: 900px) {
  :root { --header-height: 80px; }
  .hero { width: 100%; max-width: none; aspect-ratio: 516 / 730; border-radius: clamp(36px, 12vw, 62px); }
  .hero-image { object-position: 50% 50%; }
  .hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.16), transparent 75%); }
  .hero-content { left: 6%; right: 6%; top: 24%; transform: none; max-width: none; }
  .hero-kicker { display: none; }
  .hero h1 { font-size: clamp(27px, 8.2vw, 60px); line-height: 1; }
  .hero-content p { margin-top: 26px; font-size: clamp(15px, 4.2vw, 25px); }
  .hero-actions { margin-top: clamp(24px, 7vw, 40px); }
  .hero-actions .hero-button { min-height: 46px; padding: 14px 24px; font-size: clamp(10px, 2.7vw, 16px); }
}
/* Controls overlay the image so the viewer uses the entire viewport. */
.lightbox { display: block; padding: 0; background: #080808; }
.lightbox[hidden] { display: none; }
.lightbox-stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-image { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; }
.lightbox button { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.42); text-shadow: 0 1px 4px #000; }
.lightbox-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); font-size: 38px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 44px; }
.lightbox-prev { left: max(8px, env(safe-area-inset-left)); }
.lightbox-next { right: max(8px, env(safe-area-inset-right)); }

.hero-mobile-break { display: none; }
@media (max-width: 900px) {
  .hero-mobile-break { display: block; }
  :root { --header-height: clamp(80px, 21vw, 110px); }
  .brand { width: clamp(135px, 34vw, 190px); }
  .hero-content p { margin-top: clamp(20px, 6vw, 31px); }
}
