/* =============================================================
   FEATURING TAG — DESIGN SYSTEM
   Each section below is labeled so you can find it quickly.
   Change the variables first when adjusting the whole site.
   ============================================================= */
:root {
  --background: #0b0b0b; /* Near-black page background. */
  --text: #f3f2f0;       /* Primary light text. */
  --muted: #b1afad;      /* Softer text for paragraphs. */
  --line: #343434;       /* Thin dark dividers. */
  --paper: #f0efed;      /* Off-white category section. */
  --content-width: 1380px; /* Maximum width of aligned content. */
  --page-gutter: clamp(28px, 4.5vw, 82px); /* Left/right page margin. */
  --header-height: 66px; /* Height of the desktop navigation. */
}
/* BASE: Predictable sizing, typography, and image behavior. */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body { margin: 0; 
  background: var(--background); 
  color: var(--text); 
  font-family: "Instrument Sans", Arial, sans-serif; 
  -webkit-font-smoothing: antialiased; }

img { 
  display: block; 
  width: 100%; 
  height: auto;}

a { 
  color: inherit; 
  text-decoration: none; }

button, input, textarea, select { font: inherit; }

button { cursor: pointer; }

.container { 
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width)); 
  margin-inline: auto; }

.eyebrow { margin: 0 0 11px; 
  font-size: 10px; 
  font-weight: 600; 
  letter-spacing: .2em; }

:focus-visible { 
  outline: 2px solid #fff; 
  outline-offset: 4px; }

/* HEADER: One slim navigation bar, just like the reference. */
.site-header { 
  position: relative; 
  z-index: 20; 
  height: var(--header-height); 
  background: #0b0b0b; 
  border-bottom: 1px solid #292929; 
}

.nav-wrap { 
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-width)); 
  height: 100%; 
  margin-inline: auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.logo { 
  font-size: 16px; 
  font-weight: 700; 
  letter-spacing: .01em; 
}

.site-nav { 
  display: flex; 
  align-items: center; 
  gap: 36px; 
  font-size: 12px; 
}

.site-nav a:hover, .dropdown-toggle:hover { opacity: .7; }

.dropdown { position: relative; }

.dropdown-toggle { 
  border: 0; 
  background: transparent; 
  color: inherit; 
  padding: 15px 0; 
  font-size: inherit; 
}

.dropdown-panel { 
  position: absolute; 
  top: 100%; 
  left: -18px; 
  width: 250px; 
  display: none; 
  padding: 10px; 
  background: #1b1b1b; 
  border: 1px solid #414141; 
  box-shadow: 0 16px 30px #0009; }

.dropdown.open .dropdown-panel { 
  display: grid; }

.dropdown-panel a { 
  padding: 12px; 
  font-size: 12px; }

.dropdown-panel a:hover { background: #303030; }
.menu-toggle { display: none; }

/* ============================================================
   OPENING / FIRST SCREEN
   One photograph with a bottom gradient and overlaid services.
   No separate tall black section; no giant blank gap.
   ============================================================ */
.opening {
  position: relative; /* Allows the content to sit over the image. */
  isolation: isolate; /* Keeps the gradient behind the text. */
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height)); /* One screen beneath navigation. */
  min-height: 590px; /* Keeps content readable on short desktop windows. */
  max-height: 900px; /* Prevents excessive stretching on tall displays. */
  overflow: hidden; /* Keeps image inside the opening. */
  background: #0b0b0b;
}

.opening-photo {
  position: absolute; /* Fills the opening behind the text. */
  inset: 0;
  z-index: -1;
}

.opening-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fill the frame without distortion. */
  object-position: center 45%; /* Adjust this to move the car vertically. */
}


/* ==========================================
   HOMEPAGE HERO — CINEMATIC GRADIENT
   ========================================== */


/* ==========================================
   HOMEPAGE HERO — FINAL DARK TRANSITION
   ========================================== */

.opening-photo::after {
  content: "";
  position: absolute;
  inset: 0;

  /* Preserve the upper photograph while creating
     a dark, readable area for the headline and
     service navigation at the bottom. */
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(11, 11, 11, 0.15) 45%,
    rgba(11, 11, 11, 0.75) 68%,
    #0b0b0b 88%,
    #0b0b0b 100%
  );
}



.opening-content {
  position: absolute;
  inset: auto 0 0; /* Anchors services to the bottom of the opening. */
  padding: 0 var(--page-gutter) clamp(22px, 3vh, 34px);
  display: grid;
  gap: clamp(20px, 3vh, 32px);
}

.opening-intro {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(25px, 5vw, 90px);
}


/* HOMEPAGE HERO — Larger editorial headline. */
.opening-heading h1 {
  margin: 0;

  /* Allows the heading to occupy more of the left column. */
  max-width: 620px;

  /* Responsive type: smaller on laptops, larger on desktops. */
  font-size: clamp(34px, 3.8vw, 60px);

  /* Tight spacing gives the headline a cinematic feel. */
  line-height: 1.04;
  letter-spacing: -0.045em;

  /* Preserve the elegant, lightweight typography. */
  font-weight: 300;
}
  

.opening-description {
  max-width: 410px;
  padding-left: 36px;
  border-left: 1px solid #777;
  /* Brighter paragraph text for readability over dark photography. */
  color: #e4e2df;
  font-size: clamp(12px, .98vw, 15px);
  line-height: 1.6;
  margin: 0;
}

.opening-services {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.opening-services a {
  min-width: 0;
  min-height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .18em;
  border-right: 1px solid #424242;
}

.opening-services a:last-child { border-right: 0; }

.opening-services a:hover { background: #ffffff12; }

.service-icon { 
  font-size: 25px; 
  line-height: 1; 
  font-weight: 300; }


/* At shorter desktop heights, prioritize content over the photograph. */
@media (min-width: 701px) and (max-height: 720px) {
  .opening { min-height: 520px; }

  .opening-content { 
    gap: 15px; 
    padding-bottom: 16px; }

  .opening-heading h1 { font-size: clamp(26px, 2.4vw, 38px); }
}


/* EDITORIAL: 35% text / 65% photographs; no nested grid conflict. */
.editorial-section { 
  padding: clamp(60px, 6vw, 100px) 0; 
  border-top: 1px solid var(--line); }

.editorial-layout { 
  display: grid; 
  grid-template-columns: minmax(0, 35%) minmax(0, 65%); 
  align-items: center; }

.editorial-copy { padding-right: clamp(22px, 5vw, 90px); }

.editorial-copy h2 { 
  margin: 0; 
  font-size: clamp(34px, 3.3vw, 53px); 
  font-weight: 300; 
  letter-spacing: -.045em; 
  line-height: 1.08; }

.editorial-copy > p:not(.eyebrow) { 
  max-width: 315px; 
  margin: 26px 0 30px; 
  color: var(--muted); 
  font-size: 14px; 
  line-height: 1.75; }

.editorial-arrow { font-size: 25px; }

.editorial-triptych { 
  min-width: 0; 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  grid-template-rows: clamp(200px, 19vw, 300px) clamp(145px, 14vw, 220px); 
  gap: 8px; }

.editorial-triptych img { 
  width: 100%; 
  height: 100%; 
  min-width: 0; 
  object-fit: cover; }

.editorial-triptych .triptych-top { grid-column: 1 / -1; }

.editorial-triptych .triptych-top img { object-position: center 56%; }


/* OFFER: Full-width image followed by off-white four-card category navigation. */
/* ============================================================
   HOMEPAGE — EXPLORE OUR WORK
   Three portfolio categories using the client's actual work.
   ============================================================ */

/* Full-width photographic banner. */
.offer-banner {
  height: clamp(270px, 32vw, 470px);
  overflow: hidden;
}

.offer-banner img {
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Dark portfolio section. */
.offer-panel {
  background: var(--background);
  color: var(--text);
  padding: clamp(45px, 5vw, 80px) 0;
}

/* Section heading and introduction. */
.offer-heading {
  display: grid;
  grid-template-columns: 1fr .65fr 1.3fr;
  gap: 5%;
  align-items: center;
  margin-bottom: 30px;
}

.offer-heading .eyebrow {
  margin: 0;
}

.offer-rule {
  height: 1px;
  background: var(--line);
}

.offer-heading > p:last-child {
  max-width: 450px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Three equally sized portfolio cards. */
.offer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Individual portfolio card. */
.offer-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #141414;
  color: var(--text);
}

/* Consistent photograph dimensions. */
.offer-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter .3s ease;
}

/* Category title and arrow below the photograph. */
.offer-card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 15px;
  padding: 20px;
  min-height: 76px;
}

.offer-card-info h3 {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 22px);
  font-weight: 400;
  line-height: 1.3;
}

.offer-card-info b {
  font-size: 24px;
  font-weight: 400;
  transition: transform .3s ease;
}

/* Hover interaction. */
@media (hover: hover) {
  .offer-card:hover img {
    filter: brightness(1.1);
  }

  .offer-card:hover b {
    transform: translate(3px, -3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-card img,
  .offer-card-info b {
    transition: none;
  }
}


/* FOOTER: Quiet contact details. */
.site-footer { 
  padding: 32px 0; 
  border-top: 1px solid #282828; }

.footer-row { 
  display: flex; 
  justify-content: space-between; 
  gap: 24px; 
  color: #aaa; 
  font-size: 12px; }

.footer-row div { 
  display: flex; 
  gap: 25px; }

.footer-row a:hover { color: #fff; }



/* INTERIOR PAGES: Gallery, services, about, and inquiry form. */
.page-shell {
  padding:90px 0 110px;
  min-height:65vh}

.page-intro {
  max-width:700px;
  margin-bottom:55px}

.page-title {
  font-size:clamp(40px,5vw,68px)}

.page-intro>p:last-child {
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
  max-width:560px}

.gallery-controls {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:0 0 28px}

.filter-btn {
  border:1px solid #555;
  background:transparent;
  color:#ddd;
  padding:10px 20px;
  border-radius:99px;
  font-size:13px}

.filter-btn.active,.filter-btn:hover {
  background:#eee;
  color:#111}

.gallery-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:24px}

.gallery-item {
  border:0;
  padding:0;
  background:none;
  color:inherit;
  text-align:left;
  cursor:zoom-in}

.gallery-item img {
  aspect-ratio:3/2;
  object-fit:cover}

.gallery-item span {
  display:block;
  padding:14px 0;
  font-size:14px}

.gallery-note {
  color:#aaa;
  font-size:13px;
  margin-top:36px}

.lightbox {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.94);
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:60px 24px 35px}


.lightbox[hidden] {
  display:none}

.lightbox img {
  width:auto;
  max-width:100%;
  max-height:85vh;
  object-fit:contain}

.lightbox-close {
  position:absolute;
  right:24px;
  top:20px;
  border:0;
  background:transparent;
  color:white;
  font-size:32px}

.service-detail {
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:80px;
  padding:40px 0;
  border-top:1px solid var(--line);
  scroll-margin-top:20px}

.service-detail h2 {
  font-size:clamp(26px,3vw,42px);
  font-weight:300;
  line-height:1.15;
  margin:0}

.service-detail p {
  color:var(--muted);
  font-size:16px;
  line-height:1.8;
  max-width:570px;
  margin:0}

.contact-links {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  margin-top:35px}

.contact-links a {
  border-bottom:1px solid #777;
  padding-bottom:8px}

.project-form {
  display:grid;
  gap:22px;
  max-width:750px}

.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px}

.field {
  display:grid;
  gap:9px}

.field label {
  font-size:13px;
  color:#ddd}


.field input,.field select,.field textarea {
  width:100%;
  border:1px solid #4a4a4a;
  background:#151515;
  color:#fff;
  padding:15px 16px;
  border-radius:0;
  min-height:52px}


.field textarea {
  min-height:145px;
  resize:vertical}

.field input:focus,.field select:focus,.field textarea:focus {
  outline:1px solid #ddd}


.submit-button {
  background:#eee;
  color:#111;
  border:0;
  padding:17px 28px;
  justify-self:start;
  font-weight:600}


.form-help {
  color:#aaa;
  font-size:13px;
  max-width:700px;
  line-height:1.6}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)}

:focus-visible {
  outline:2px solid #eee;
  outline-offset:4px}


/* INTERIOR-PAGE DETAILS: Gallery category cards and form controls. */
.offer-card:focus-visible { outline-offset: -4px; }


/* SMALLER DESKTOP / TABLET: Keep the two-column composition readable. */
@media (max-width: 900px) {
  .editorial-layout { grid-template-columns: 36% 64%; }
  .editorial-triptych { grid-template-rows: 200px 150px; }
  .offer-heading { grid-template-columns: 1fr 1fr; gap: 20px; }
  .offer-rule { display: none; }
  .offer-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* MOBILE PREVIEW: Minimal safeguards only; full mobile refinement is next. */
@media (max-width: 760px) {
  :root { 
    --header-height: 66px; 
    --page-gutter: 19px; }

  .menu-toggle { 
    display: grid; 
    gap: 6px; 
    border: 0; 
    background: transparent; 
    padding: 10px; }
  

  .menu-toggle span { 
    display: block; 
    width: 25px; 
    height: 1px; 
    background: #fff; }
  
  .site-nav { 
    display: none; 
    position: absolute; 
    top: var(--header-height); 
    left: 0;
    right: 0; 
    padding: 18px; 
    background: #151515; 
    flex-direction: column; 
    align-items: stretch; 
    gap: 0; }
  
  .site-nav.open { display: flex; }
  
  .site-nav > a, .dropdown-toggle { 
    display: block; 
    padding: 14px 0; }
  
  .dropdown-panel { 
    position: static; 
    box-shadow: none; 
    width: 100%; }
  
  .opening { 
    min-height: auto; 
    grid-template-rows: clamp(260px, 53svh, 430px) auto; }
  
  .opening-content { padding-block: 24px 28px; }
  
  .opening-intro { 
    grid-template-columns: 1fr; 
    gap: 18px; }
  

  .opening-description { 
    margin: 0; 
    padding: 16px 0 0; 
    border-left: 0; 
    border-top: 1px solid #777; }
  

  .opening-services { 
    margin-top: 20px; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px 0; }
  

  .opening-services a:nth-child(2) { border: 0; }
  

  .editorial-layout { 
    grid-template-columns: 1fr; 
    gap: 32px; }
  
  .editorial-triptych { grid-template-rows: 220px 160px; }
  
  .offer-heading { grid-template-columns: 1fr; }
  
  .offer-cards { grid-template-columns: repeat(2, 1fr); }
  
  .gallery-grid, .service-detail, .field-row { grid-template-columns: 1fr; }
  
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }



/* =============================================================
   EDITORIAL REFINEMENT — compare to the dark three-photo reference.
   42% text / 58% imagery creates breathing room for the heading.
   Only this section changes; the approved homepage opening stays.
   ============================================================= */
@media (min-width: 901px) {
  .editorial-layout {
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 0;
  }

  .editorial-copy {
    padding-left: clamp(18px, 2vw, 36px); /* Move words slightly right. */
    padding-right: clamp(40px, 5vw, 92px); /* Keep space before photos. */
  }

  .editorial-copy h2 {
    font-size: clamp(43px, 3.7vw, 61px); /* Larger, elegant headline. */
    line-height: 1.09;
    letter-spacing: -.045em;
  }

  .editorial-copy > p:not(.eyebrow) {
    max-width: 335px; /* Preserve deliberate paragraph wrapping. */
    font-size: 15px;
    line-height: 1.7;
  }

  .editorial-triptych {
    grid-template-rows: clamp(220px, 20vw, 315px) clamp(150px, 14vw, 220px);
    gap: 8px;
  }
}


/* Each image must fill its grid cell rather than use intrinsic height. */
.editorial-triptych > div { 
  min-width: 0; 
  min-height: 0; 
  overflow: hidden; }

.editorial-triptych > div img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; }


  
/* TEMPORARY MOBILE SAFETY: We will refine mobile after desktop approval. */
@media (max-width: 760px) {
  .opening { 
    height: auto; 
    max-height: none; 
    min-height: 0; 
    padding-top: min(58vw, 380px); }
  
  .opening-photo { 
    height: min(80vw, 520px); 
    bottom: auto; }
  
  .opening-photo::after { 
    background: linear-gradient(transparent 20%, #0b0b0b 90%); }
  
  .opening-content { 
    position: relative; 
    inset: auto; 
    padding: 24px var(--page-gutter) 30px; }
  
  .opening-intro { 
    grid-template-columns: 1fr; 
    gap: 18px; }
  
  .opening-description { 
    border-left: 0; 
    border-top: 1px solid #777; 
    padding: 16px 0 0; }
  
  .opening-services { grid-template-columns: repeat(2, minmax(0, 1fr)); 
    gap: 12px 0; }
  
  .opening-services a:nth-child(2) { border-right: 0; }
}



/* ============================================================
   STUDIO FEATURE — screenshot-matched editorial composition.
   The 40/30/30 split keeps text and two photos aligned.
   The lower index stays inside the same framed section.
   ============================================================ */























/* ================================================================
   ROUND 2 — PHONE & TABLET FIXES
   ================================================================ */

/* Hero service labels: readable on all screens (were 10px). */
.opening-services a { font-size: 12px; }

/* Footer links wrap to a new line instead of running off screen. */
.footer-row div { flex-wrap: wrap; }

/* TABLETS: stack the Studio section before the photos get too thin. */
@media (max-width: 850px) {
  

  

  
}



/* PHONES */
@media (max-width: 760px) {
  .menu-toggle span { height: 2px; }        /* Thicker hamburger lines. */
  .page-shell { padding: 50px 0 70px; }     /* Less empty space on inner pages. */
  .service-detail { gap: 16px; }            /* Title sits closer to its text. */
  .submit-button { justify-self: stretch; } /* Full-width, easy-to-tap button. */
  .opening-photo img { object-position: 50% 50%; } /* Hero photo crop on phones. */
}

/* SMALL PHONES: one offer card per row so titles don't cram. */
@media (max-width: 480px) {
  .offer-cards { grid-template-columns: 1fr; }
}









@media (max-width: 850px) {
  
  
  
  
  
  
  
}



@media (max-width: 600px) {
  /* Temporary readable mobile arrangement; detailed mobile pass comes later. */
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
}



/* ==============================================================
   STUDIO SECTION — DESKTOP PROPORTION CORRECTION (November 2)
   These overrides intentionally sit LAST so earlier rules cannot
   accidentally restore the oversized images or visible frame.
   ============================================================== */
@media (min-width: 851px) {
  /* Remove the visible outer box and use the page's normal margins. */
  

  /* Shorter portrait images and a slightly narrower photo area. */
  

  /* Move text closer to the images and away from the far-left edge. */
  

  /* Keep the heading readable but within the reference's text area. */
  

  /* Give the four navigation cells enough height and vertical space. */
  

  

  /* No outer frame; only subtle separators between service links. */
  
}



/* ================================================================
   REFERENCE ALIGNMENT — STUDIO SECTION
   Desktop only. These are the final overrides for the screenshot:
   1) centered within the normal page container;
   2) text occupies ~44%, two images share remaining width;
   3) narrow, visible gutter BETWEEN the two photographs;
   4) four service links span the SAME width as the upper row.
   Edit these values to fine-tune without touching other sections.
   ================================================================ */
@media (min-width: 851px) {
  

  

  

  

  

  

  /* Gap inside image pair, without changing the grid's alignment. */
  

  

  

  
}


/* ================================================================
   SCROLL TRANSITIONS — homepage only
   Sections keep their normal document height; no fake spacer blocks.
   JavaScript adds .reveal-pending only to sections below the viewport.
   ================================================================ */
@media (prefers-reduced-motion: no-preference) {
  .home-reveal.reveal-pending {
    opacity: 0;
    transform: translateY(18px); /* Subtle rise, not a dramatic slide. */
  }

  .home-reveal {
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.22,1,.36,1);
  }

  .home-reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Remove excessive empty space between the homepage compositions. */
@media (min-width: 701px) {
  .editorial-section { padding-block: clamp(38px, 4vw, 64px); }
  
}

/* Accessibility: users requesting reduced motion see everything immediately. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}


/* ================================================================
   READABILITY PASS — NOVEMBER 3
   Slight increases to SMALL copy only. Layout, photography, large
   headings, and spacing remain untouched. Edit here for future tweaks.
   ================================================================ */
/* Desktop header links: previously 12px. */
.site-nav { font-size: 14px; }
.dropdown-panel a { font-size: 14px; }

/* Tiny uppercase section labels: previously 10px. */
.eyebrow, .studio-feature-copy .eyebrow { font-size: 11px; }

/* Introductory copy over the opening visual. */
.opening-description { font-size: clamp(14px, 1.08vw, 16px); }

/* Descriptions in editorial, services, and studio panels. */
.editorial-copy > p:not(.eyebrow) { font-size: 15px; }
.offer-heading > p:last-child { font-size: 14px; }


/* Category cards and footer. */
.offer-card span { font-size: 15px; }
.footer-row { font-size: 14px; }

/* Studio service navigation: slightly larger labels and numbers. */



/* Keep narrow screens from inheriting an oversized desktop nav. */
@media (max-width: 850px) {
  
}

/* FORM DROPDOWNS: Dark background so option text stays readable. */
.field select option { background: #151515; color: #fff; }




/* ================================================================
   ROUND 2 — PHONE & TABLET FIXES
   ================================================================ */

/* Hero service labels: readable on all screens (were 10px). */
.opening-services a { font-size: 12px; }

/* Footer links wrap to a new line instead of running off screen. */
.footer-row div { flex-wrap: wrap; }

/* TABLETS: stack the Studio section before the photos get too thin. */
@media (max-width: 850px) {
  

  

  
}


/* PHONES */
@media (max-width: 760px) {
  .menu-toggle span { height: 2px; }        /* Thicker hamburger lines. */
  .page-shell { padding: 50px 0 70px; }     /* Less empty space on inner pages. */
  .service-detail { gap: 16px; }            /* Title sits closer to its text. */
  .submit-button { justify-self: stretch; } /* Full-width, easy-to-tap button. */
  .opening-photo img { object-position: 50% 50%; } /* Hero photo crop on phones. */
}

/* SMALL PHONES: one offer card per row so titles don't cram. */
@media (max-width: 480px) {
  .offer-cards { grid-template-columns: 1fr; }
}


/* ROUND 3 — Underline the nav link for the page you're on. */
.site-nav a[aria-current="page"] 
{ text-decoration: underline; 
  text-underline-offset: 6px; 
}


/* ROUND 3 — "Request a quote" links on the Services page. */
.service-cta { display: inline-block; margin-top: 22px; padding-bottom: 6px; border-bottom: 1px solid #777; font-size: 14px; }
.service-cta:hover { border-color: #fff; }



/* ================================================================
   ROUND 4 — LAUNCH PREP
   ================================================================ */

/* Header stays at the top of the screen while scrolling. */
.site-header { position: sticky; top: 0; }

/* Jump links (Services page) land BELOW the sticky header, not under it. */
.service-detail { scroll-margin-top: 90px; }

/* Form placeholder text readable on the dark input boxes. */
.field input::placeholder, .field textarea::placeholder { color: #777; }



/* ==========================================
   HOMEPAGE HERO — IMAGE POSITION TEST
   ========================================== */

/* Adjust where the photograph sits inside the hero.
   This does not crop or modify the original image file. */
.opening-photo img {
  object-position: center 45%;
}



/* ============================================================
   HOMEPAGE — PROJECT INQUIRY
   ============================================================ */

.home-contact {
  padding: clamp(65px, 8vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.home-contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.home-contact-copy h2 {
  margin: 20px 0;
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 300;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.home-contact-copy > p:last-child {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Button leading to the project inquiry page. */
.home-contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 20px 26px;
  background: var(--text);
  color: var(--background);
  font-size: 15px;
  font-weight: 500;
}

.home-contact-button span {
  font-size: 22px;
}

.home-contact-button:hover {
  background: #ccc;
}

/* Mobile responsiveness. */
@media (max-width: 760px) {
  .home-contact-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
}

/* ==========================================================
   PORTFOLIO GALLERY
   A responsive masonry-style photography layout.
   Preserves the original proportions of each photograph.
   ========================================================== */

/* Arrange photographs into three vertical columns. */
.gallery-grid {
    display: block;
    column-count: 3;
    column-gap: 16px;
}

/* Each photograph occupies the width of its column. */
.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 0;
    border: none;
    background: #141414;
    overflow: hidden;
    break-inside: avoid;
    cursor: zoom-in;
}

/* IMPORTANT:
   Ensure JavaScript category filtering hides photographs.
*/
.gallery-item[hidden] {
    display: none;
}

/* Preserve the original photograph proportions. */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    transition: transform 0.45s ease, filter 0.45s ease;
}

/* Small expand symbol appears when hovering. */
.gallery-item::after {
    content: "↗";
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

/* Hover effects for desktop visitors. */
@media (hover: hover) {
    .gallery-item:hover img {
        transform: scale(1.035);
        filter: brightness(0.88);
    }

    .gallery-item:hover::after {
        opacity: 1;
    }
}

/* Visible keyboard focus for accessibility. */
.gallery-item:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.gallery-item:focus-visible::after {
    opacity: 1;
}

/* Gallery category buttons. */
.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

/* TABLETS: Two columns. */
@media (max-width: 1000px) {
    .gallery-grid {
        column-count: 2;
    }
}

/* PHONES: One column. */
@media (max-width: 560px) {
    .gallery-grid {
        column-count: 1;
    }

    .gallery-controls {
        gap: 8px;
        margin-bottom: 24px;
    }

    .filter-btn {
        padding: 9px 14px;
        font-size: 12px;
    }
}

/* Respect visitors who prefer less animation. */
@media (prefers-reduced-motion: reduce) {
    .gallery-item img,
    .gallery-item::after,
    .filter-btn {
        transition: none;
    }
}


/* =========================================
   SERVICES PAGE
   Featuring Tag LLC
========================================= */

.services-page {
    padding-top: clamp(60px, 7vw, 110px);
    padding-bottom: 90px;
}

/* SERVICES INTRODUCTION */

.services-intro {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 65px;
}

.services-intro h1 {
    font-size: clamp(36px, 4.5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin: 24px 0 0;
}

.services-intro h1 span {
    color: #929292;
}

.services-intro-description p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
    max-width: 420px;
    margin: 0 0 24px;
}

.services-text-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #666;
}


/* =========================================
   SERVICE CARD GRID
========================================= */

.services-collection {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    scroll-margin-top: 100px;
}

.expertise-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #141414;
    border: 1px solid #2d2d2d;
    overflow: hidden;
    scroll-margin-top: 100px;
    transition: border-color 0.25s ease;
}

.expertise-card:hover {
    border-color: #626262;
}


/* CARD NUMBER AND SMALL ICON */

.expertise-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
}

.expertise-card-top > span {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #a8a8a8;
}

/* Prevents the enormous icons */

.expertise-card-top > svg {
    display: block;
    width: 28px;
    height: 28px;
    max-width: 28px;
    flex-shrink: 0;
    color: #d0d0d0;
}


/* =========================================
   SERVICE PHOTOGRAPHS AND ILLUSTRATIONS
========================================= */

.expertise-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #101010;
}

.expertise-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.expertise-card:hover .expertise-visual > img {
    transform: scale(1.025);
}

/* Social media and editing illustrations */

.expertise-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
}

.expertise-graphic > svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
}


/* =========================================
   SERVICE CARD CONTENT
========================================= */

.expertise-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(22px, 2.5vw, 36px);
}

.expertise-content h2 {
    font-size: clamp(23px, 2.2vw, 34px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.2;
    margin: 0 0 16px;
}

.expertise-content > p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0 0 24px;
}


/* SERVICE DELIVERABLES */

.expertise-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.expertise-deliverables li {
    position: relative;
    padding: 12px 0 12px 22px;
    border-top: 1px solid #303030;
    font-size: 14px;
    line-height: 1.5;
    color: #d0d0d0;
}

.expertise-deliverables li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 9px;
    height: 1px;
    background: #929292;
}


/* SERVICE CARD BUTTONS */

.expertise-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: auto;
}

.expertise-inquiry {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 18px;
    background: #242424;
    border: 1px solid #414141;
    color: #ededed;
    font-size: 13px;
    transition: background 0.25s ease;
}

.expertise-inquiry:hover {
    background: #363636;
}

.expertise-inquiry span {
    font-size: 18px;
}

.expertise-secondary {
    font-size: 13px;
    color: #b1b1b1;
    border-bottom: 1px solid #555;
    padding-bottom: 4px;
}

.expertise-secondary:hover {
    color: #eeeeee;
}


/* =========================================
   PROJECT PROCESS
========================================= */

.services-process {
    margin-top: clamp(70px, 9vw, 140px);
    padding-top: 45px;
    border-top: 1px solid var(--line);
}

.services-process-heading {
    margin-bottom: 45px;
}

.services-process-heading h2,
.services-closing h2 {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 18px 0;
}

.services-process-heading > p:last-child,
.services-closing > div > p:last-child {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0;
}

.services-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.services-process-step {
    padding: 25px 0;
    border-top: 1px solid #555;
}

.services-process-step > span {
    display: block;
    color: #929292;
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.services-process-step h3 {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}

.services-process-step p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
    max-width: 320px;
    margin: 0;
}


/* =========================================
   FINAL PROJECT INQUIRY
========================================= */

.services-closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 70px;
    padding: clamp(28px, 4vw, 60px);
    background: #161616;
    border: 1px solid #303030;
}

.services-project-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 40px;
    padding: 18px 24px;
    background: #292929;
    border: 1px solid #484848;
    font-size: 14px;
    color: #ededed;
    transition: background 0.25s ease;
}

.services-project-button:hover {
    background: #3b3b3b;
}

.services-project-button span {
    font-size: 22px;
}


/* KEYBOARD ACCESSIBILITY */

.services-page a:focus-visible {
    outline: 2px solid #bcbcbc;
    outline-offset: 5px;
}


/* =========================================
   TABLET AND MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 1000px) {

    .services-intro {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 45px;
    }

    .services-intro-description p {
        max-width: 580px;
    }

    .expertise-card-top {
        padding: 18px 22px;
    }

}

@media (max-width: 760px) {

    .services-page {
        padding-top: 45px;
        padding-bottom: 60px;
    }

    .services-collection {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .services-process-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .services-process-step > span {
        margin-bottom: 16px;
    }

    .services-closing {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        margin-top: 40px;
    }

    .services-project-button {
        width: 100%;
        box-sizing: border-box;
    }

}

@media (prefers-reduced-motion: reduce) {

    .expertise-card,
    .expertise-visual > img,
    .expertise-inquiry,
    .services-project-button {
        transition: none;
    }

    .expertise-card:hover .expertise-visual > img {
        transform: none;
    }

}


/* ========================================
   ABOUT PAGE
   Compact, cohesive editorial layout
======================================== */

.about-page {
    --about-spacing: clamp(36px, 4vw, 64px);

    padding: var(--about-spacing) 0;
}

/* ABOUT INTRODUCTION */

.about-intro {
    margin-bottom: 32px;
}

.about-intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(24px, 4vw, 60px);
}

.about-intro h1 {
    margin: 12px 0 0;
    font-size: clamp(36px, 4vw, 64px);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.about-intro h1 span {
    display: block;
    color: #999;
}

.about-intro-layout > p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}


/* FEATURE PHOTOGRAPH */

/* Shorter cinematic frame without stretching the image. */

.about-feature img {
    display: block;
    width: 100%;
    height: clamp(260px, 30vw, 420px);
    object-fit: cover;
    object-position: center 55%;
}

.about-image-caption {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.1em;
}


/* COMPANY INTRODUCTION */

/* Give the description more room and bring the
   two columns closer together. */

.about-story {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(24px, 4vw, 60px);
    padding-block: var(--about-spacing);
}

/* Consistent heading sizes throughout the page. */

.about-story h2,
.about-values h2,
.about-contact h2 {
    margin: 14px 0 0;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.15;
}

.about-story-copy p {
    max-width: 600px;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.about-text-link {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 8px 0;
    border-bottom: 1px solid #555;
    font-size: 14px;
    transition: border-color 0.25s ease;
}

.about-text-link:hover {
    border-color: var(--text);
}


/* CREATIVE VALUES */

.about-values {
    padding-bottom: var(--about-spacing);
}

.about-values-heading {
    border-top: 1px solid var(--line);
    padding-top: 28px;
    margin-bottom: 24px;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

/* Compact cards with consistent internal spacing. */

.about-value {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(20px, 2.2vw, 30px);
    background: #151515;
    border: 1px solid #303030;
}

.about-value-number {
    color: #999;
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.about-value h3 {
    margin: 0 0 12px;
    font-size: clamp(21px, 1.8vw, 27px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.about-value p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}


/* FINAL CONTACT PANEL */

/* Keep the inquiry section compact and aligned. */

.about-contact-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: clamp(24px, 3vw, 42px);
    background: #171717;
    border: 1px solid #303030;
}

.about-contact-panel p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.about-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 28px;
    padding: 17px 22px;
    background: #262626;
    border: 1px solid #454545;
    color: var(--text);
    font-size: 14px;
    transition: background 0.25s ease;
}

.about-contact-button:hover {
    background: #383838;
}


/* TABLET RESPONSIVENESS */

@media (max-width: 1000px) {

    .about-intro-layout,
    .about-story {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-intro-layout > p {
        max-width: 580px;
    }

    .about-values-grid {
        gap: 12px;
    }

}


/* MOBILE RESPONSIVENESS */

@media (max-width: 760px) {

    .about-page {
        --about-spacing: 36px;
    }

    .about-intro {
        margin-bottom: 28px;
    }

    .about-intro h1 {
        font-size: clamp(30px, 8vw, 42px);
    }

    .about-feature img {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .about-story {
        gap: 24px;
    }

    .about-story h2,
    .about-values h2,
    .about-contact h2 {
        font-size: clamp(28px, 7vw, 36px);
    }

    .about-values-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .about-value {
        padding: 24px;
    }

    .about-contact-panel {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .about-contact-button {
        width: 100%;
        gap: 12px;
    }

    .about-image-caption {
        font-size: 9px;
        letter-spacing: 0.05em;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .about-text-link,
    .about-contact-button {
        transition: none;
    }

}


/* ========================================
   CONTACT PAGE — CLEAN CENTERED LAYOUT
======================================== */

/* Center the page content */
.contact-page {
    max-width: 960px;
    margin-inline: auto;
    padding-top: clamp(45px, 5vw, 80px);
    padding-bottom: 80px;
}

/* Keep the introduction compact */
.contact-page .page-intro {
    max-width: 100%;
    margin-bottom: 35px;
}

.contact-page .eyebrow {
    margin-bottom: 18px;
}

/* Match the typography of the other pages */
.contact-page .page-title {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.contact-page .page-intro > p:last-child {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Keep the form at a comfortable width */
.contact-page .project-form {
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 20px;
}

/* Form labels */
.contact-page .field label {
    font-size: 14px;
}

/* Consistent input sizes */
.contact-page .field input,
.contact-page .field select {
    min-height: 50px;
    padding: 12px 15px;
    font-size: 15px;
}

/* Project description box */
.contact-page .field textarea {
    min-height: 125px;
    padding: 15px;
    font-size: 15px;
    resize: vertical;
}

/* Refined submit button */
.contact-page .submit-button {
    width: fit-content;
    padding: 15px 28px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.contact-page .submit-button:hover {
    background: #cccccc;
}

/* Mobile layout */
@media (max-width: 600px) {
    .contact-page {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .contact-page .field-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-page .submit-button {
        width: 100%;
    }
}



/* ========================================
   THANK YOU PAGE
======================================== */

/* Center the confirmation within the page */
.thank-you-page {
    display: grid;
    place-items: center;
    min-height: 75vh;
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

.thank-you-content {
    max-width: 600px;
    width: 100%;
}

/* Minimal confirmation symbol */
.confirmation-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 26px;
    margin: 0 auto 32px;
}

/* Confirmation heading */
.thank-you-content h1 {
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.1;
    margin: 20px 0;
}

.thank-you-content > p:not(.eyebrow) {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0 auto;
}

/* Navigation after successful submission */
.thank-you-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.thank-you-actions a {
    padding: 15px 24px;
    border: 1px solid var(--line);
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.thank-you-actions a:first-child {
    background: var(--text);
    color: var(--background);
}

.thank-you-actions a:hover {
    background: #ccc;
    color: #111;
}



/* ============================================================
   HOMEPAGE — CONSISTENT SPACING AND COMMERCIAL FEATURE
   ============================================================ */

/* Consistent spacing between homepage sections */
.editorial-section,
.studio-feature,
.offer-panel,
.home-contact {
    padding-block: clamp(42px, 4.5vw, 72px);
}


/* =========================
   FERRARI EDITORIAL SECTION
   ========================= */

.editorial-layout {
    grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
    gap: clamp(24px, 4vw, 60px);
}

.editorial-copy {
    padding: 0;
}

.editorial-copy h2 {
    font-size: clamp(32px, 3.4vw, 54px);
}

.editorial-copy > p:not(.eyebrow) {
    margin: 20px 0;
    max-width: 390px;
}

.editorial-arrow {
    display: inline-block;
}


/* =========================
   COMMERCIAL SECTION
   ========================= */

/* Warm charcoal instead of overpowering white */
.studio-feature {
    background: #191817;
    color: #f3f2f0;
}

/* Keep the photograph and text closer together */
.studio-feature-frame {
    width: min(
        calc(100% - 2 * var(--page-gutter)),
        var(--content-width),
        1100px
    );
    margin-inline: auto;
    padding: 0;
}

/* Two balanced columns instead of three */
.studio-feature-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    height: auto;
    min-height: 0;
}

/* Position the text in the right column */
.studio-feature-copy {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    min-height: 0;
    padding: 0;
}

.studio-feature-copy .eyebrow {
    color: #c1bcb5;
    margin-bottom: 16px;
}

.studio-feature-copy h2 {
    margin: 0;
    font-size: clamp(28px, 2.8vw, 46px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: -.045em;
}

.studio-feature-description {
    color: #b1afad;
    font-size: 15px;
    line-height: 1.65;
    margin: 20px 0 0;
    max-width: 400px;
}

.studio-feature-accent {
    display: block;
    width: 36px;
    height: 1px;
    background: #77716a;
    margin-top: 22px;
}

/* Wider photograph in the left column */
.studio-feature-image {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.studio-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================
   PORTFOLIO SECTION
   ========================= */

.offer-heading {
    margin-bottom: 24px;
}


/* =========================
   PROJECT INQUIRY SECTION
   ========================= */

.home-contact-inner {
    align-items: center;
    gap: 28px;
}

.home-contact-copy h2 {
    font-size: clamp(32px, 3.5vw, 56px);
    margin: 14px 0;
}


/* =========================
   TABLET RESPONSIVENESS
   ========================= */

@media (max-width: 900px) {

    .studio-feature-main {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .studio-feature-copy {
        grid-column: 1;
        grid-row: 1;
        padding: 0;
    }

    .studio-feature-image {
        grid-column: 1;
        grid-row: 2;
        aspect-ratio: 4 / 3;
    }
}


/* =========================
   MOBILE RESPONSIVENESS
   ========================= */

@media (max-width: 760px) {

    .editorial-section,
    .studio-feature,
    .offer-panel,
    .home-contact {
        padding-block: 36px;
    }

    .editorial-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .editorial-triptych {
        grid-template-rows:
            clamp(150px, 52vw, 260px)
            clamp(90px, 28vw, 150px);
    }

    .opening-services {
        margin-top: 0;
        gap: 8px 0;
    }

    .opening-content {
        gap: 20px;
    }

    .offer-heading {
        gap: 12px;
        margin-bottom: 22px;
    }

    .offer-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .offer-card-info {
        min-height: 60px;
        padding: 16px;
    }

    .home-contact-inner {
        align-items: flex-start;
        gap: 24px;
    }

    .home-contact-button {
        max-width: 100%;
    }
}



/* ============================================================
   FERRARI EDITORIAL — FINAL REFINEMENTS
   ============================================================ */

/* Balance the text and photography on desktop */
.editorial-layout {
  grid-template-columns: minmax(0, 34fr) minmax(0, 66fr);
  gap: clamp(24px, 3vw, 48px);
}

/* Keep the description comfortably readable */
.editorial-copy > p:not(.eyebrow) {
  max-width: 420px;
  line-height: 1.65;
  margin: 20px 0;
}

/* Descriptive About page link */
.editorial-copy .editorial-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.editorial-arrow span:last-child {
  font-size: 22px;
}

.editorial-arrow:hover {
  opacity: 0.75;
}

/* Mobile editorial layout */
@media (max-width: 760px) {
  .editorial-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .editorial-copy h2 {
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.12;
  }

  .editorial-copy > p:not(.eyebrow) {
    margin: 16px 0;
    font-size: 15px;
    line-height: 1.6;
  }
}


/* ============================================================
   COMMERCIAL FEATURE — FINAL REFINEMENTS
   ============================================================ */

/* Match the outer alignment of the other homepage sections */
.studio-feature-frame {
  width: min(
    calc(100% - 2 * var(--page-gutter)),
    var(--content-width)
  );
}

/* Give the photograph more visual presence */
.studio-feature-main {
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: clamp(32px, 5vw, 80px);
}

/* Match the editorial heading typography */
.studio-feature-copy h2 {
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.12;
  text-wrap: balance;
}

.studio-feature-description {
  max-width: 420px;
  line-height: 1.65;
  margin-top: 20px;
}

/* Maintain a balanced photograph */
.studio-feature-image {
  aspect-ratio: 4 / 3;
}

/* Tablet and mobile layout */
@media (max-width: 900px) {
  .studio-feature-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Mobile-specific breathing room */
@media (max-width: 760px) {
  .studio-feature {
    padding-block: 40px;
  }

  .studio-feature-copy h2 {
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.12;
  }

  .studio-feature-description {
    font-size: 15px;
    line-height: 1.6;
    margin-top: 16px;
  }

  .studio-feature-image {
    aspect-ratio: 1 / 1;
  }
}


/* ============================================================
   PORTFOLIO — FINAL HEADING REFINEMENTS
   ============================================================ */

/* Align the heading and description above the cards */
.offer-panel .offer-heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: clamp(24px, 4vw, 60px);
  margin-bottom: 30px;
}

/* Small uppercase introduction */
.offer-heading-copy .eyebrow {
  margin: 0 0 16px;
}

/* Match the other homepage section headings */
.offer-heading-copy h2 {
  margin: 0;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

/* Portfolio description */
.offer-panel .offer-heading > p {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  justify-self: end;
}

/* Stack the heading and description on mobile */
@media (max-width: 760px) {
  .offer-panel .offer-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .offer-heading-copy h2 {
    font-size: clamp(30px, 7vw, 40px);
  }

  .offer-heading-copy .eyebrow {
    margin-bottom: 12px;
  }

  .offer-panel .offer-heading > p {
    justify-self: start;
    line-height: 1.6;
  }
}


/* ============================================================
   HOMEPAGE CONTACT — FINAL REFINEMENTS
   ============================================================ */

/* Distinguish the contact section from the footer */
.home-contact {
  background: #191817;
}

/* Balance the text and button on desktop */
@media (min-width: 901px) {
  .home-contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
  }

  .home-contact-button {
    justify-self: center;
  }
}

/* Make the mobile contact button easier to tap */
@media (max-width: 760px) {
  .home-contact-button {
    width: 100%;
    box-sizing: border-box;
    justify-content: space-between;
  }
}


/* ============================================================
   GALLERY — FINAL DESIGN REFINEMENTS
   Scoped to the gallery page only.
   ============================================================ */

/* Reduce excessive space around the introduction. */
.gallery-page .page-shell {
    padding-top: clamp(40px, 5vw, 80px);
    padding-bottom: clamp(48px, 6vw, 90px);
}

.gallery-page .page-intro {
    margin-bottom: 32px;
}

/* Match the elegant headings on the homepage. */
.gallery-page .page-title {
    font-size: clamp(36px, 4.5vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.045em;
    margin: 16px 0 20px;
}

.gallery-page .page-intro > p:last-child {
    margin: 0;
    line-height: 1.7;
}

/* Space between the filters and photographs. */
.gallery-page .gallery-controls {
    margin-bottom: 30px;
}

/* Give smaller categories two wider columns. */
.gallery-page .gallery-grid[data-active-category="food"],
.gallery-page .gallery-grid[data-active-category="architecture"] {
    column-count: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Ensure filtered photographs remain hidden. */
.gallery-page .gallery-item[hidden] {
    display: none;
}

/* MOBILE GALLERY */
@media (max-width: 760px) {

    .gallery-page .page-shell {
        padding-top: 36px;
        padding-bottom: 40px;
    }

    .gallery-page .page-intro {
        margin-bottom: 26px;
    }

    .gallery-page .gallery-controls {
        gap: 8px;
        margin-bottom: 24px;
    }

    .gallery-page .filter-btn {
        padding: 10px 14px;
    }

    /* Every category uses one column on mobile. */
    .gallery-page .gallery-grid,
    .gallery-page .gallery-grid[data-active-category="food"],
    .gallery-page .gallery-grid[data-active-category="architecture"] {
        column-count: 1;
        grid-template-columns: 1fr;
    }
}


/* ========================================
   ABOUT PAGE — FINAL DESKTOP REFINEMENT
   Does not affect mobile or other pages.
======================================== */

@media (min-width: 1001px) {

    /* Create a more focused content area. */
    .about-page .container {
        max-width: 1200px;
    }

    /* Restore balanced vertical spacing. */
    .about-page {
        --about-spacing: clamp(64px, 5vw, 85px);
    }

    /* Balance the headline and description. */
    .about-intro-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        align-items: center;
        gap: 48px;
    }

    .about-intro {
        margin-bottom: 42px;
    }

    /* Keep the photograph cinematic. */
    .about-feature img {
        height: clamp(360px, 32vw, 460px);
        object-position: center 55%;
    }

    /* Bring the company description closer
       to its heading. */
    .about-story {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        align-items: center;
        gap: 48px;
    }

    /* Give the values section breathing room. */
    .about-values-heading {
        padding-top: 36px;
        margin-bottom: 32px;
    }

    .about-values-grid {
        gap: 18px;
    }

    .about-value {
        padding: 32px;
    }

    .about-value-number {
        margin-bottom: 28px;
    }

    /* Make the inquiry panel feel less cramped. */
    .about-contact-panel {
        padding: 48px;
    }

}


/* ============================================================
   CONTACT / PROJECT INQUIRY PAGE
   ============================================================ */

/* Main page dimensions */
.inquiry-page {
    max-width: 1200px;
    padding-top: clamp(48px, 6vw, 90px);
    padding-bottom: clamp(48px, 6vw, 90px);
}

/* Page introduction */
.inquiry-intro {
    padding-bottom: 40px;
    margin-bottom: 48px;
    border-bottom: 1px solid #343434;
}

.inquiry-intro h1 {
    margin: 24px 0;
    font-size: clamp(38px, 4.5vw, 68px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.inquiry-intro h1 span {
    display: block;
    color: #999;
}

.inquiry-description {
    max-width: 580px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Two-column desktop layout */
.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    align-items: start;
    gap: clamp(32px, 5vw, 72px);
}

/* Direct contact section */
.inquiry-contact h2,
.inquiry-form-panel h2 {
    margin: 20px 0 16px;
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.inquiry-contact > p:not(.eyebrow),
.inquiry-form-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* Contact links */
.inquiry-contact-links {
    display: grid;
    gap: 12px;
    margin-top: 30px;
}

.inquiry-contact-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    border: 1px solid #343434;
    background: #141414;
    transition: background 0.2s ease,
                border-color 0.2s ease;
}

.inquiry-contact-links a:hover {
    background: #202020;
    border-color: #666;
}

.inquiry-contact-links strong {
    display: block;
    font-size: 16px;
    font-weight: 400;
}

.inquiry-contact-links small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.inquiry-contact-links a > span {
    font-size: 21px;
    flex-shrink: 0;
}

/* Form panel */
.inquiry-form-panel {
    min-width: 0;
    padding: clamp(24px, 3vw, 44px);
    background: #151515;
    border: 1px solid #343434;
}

.inquiry-form-panel .project-form {
    display: grid;
    gap: 24px;
    width: 100%;
    max-width: none;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Form field layout */
.inquiry-form-panel .field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}

.inquiry-form-panel .field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.inquiry-form-panel label {
    color: #e4e4e4;
    font-size: 14px;
    font-weight: 400;
}

/* Inputs, dropdowns and textarea */
.inquiry-form-panel input:not([type="hidden"]):not(.sr-only),
.inquiry-form-panel select,
.inquiry-form-panel textarea {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 14px;
    border: 1px solid #414141;
    border-radius: 0;
    background: #0e0e0e;
    color: #f3f2f0;
    font: inherit;
    font-size: 16px;
    color-scheme: dark;
}

.inquiry-form-panel input::placeholder,
.inquiry-form-panel textarea::placeholder {
    color: #929292;
}

.inquiry-form-panel input:focus,
.inquiry-form-panel select:focus,
.inquiry-form-panel textarea:focus {
    outline: 1px solid #b1afad;
    outline-offset: 2px;
}

.inquiry-form-panel textarea {
    min-height: 150px;
    resize: vertical;
}

/* Submit button */
.inquiry-form-panel .submit-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 18px 22px;
    background: #f0efed;
    color: #111;
    border: 0;
    border-radius: 0;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.inquiry-form-panel .submit-button:hover {
    background: #d4d4d4;
}

.inquiry-form-panel .submit-button span {
    font-size: 23px;
}

.inquiry-form-panel .form-help {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* Tablet layout */
@media (max-width: 900px) {
    .inquiry-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .inquiry-contact-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile layout */
@media (max-width: 600px) {
    .inquiry-page {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .inquiry-intro {
        padding-bottom: 28px;
        margin-bottom: 32px;
    }

    .inquiry-contact-links {
        grid-template-columns: 1fr;
    }

    .inquiry-form-panel {
        padding: 22px;
    }

    .inquiry-form-panel .field-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .inquiry-form-panel .submit-button {
        min-height: 58px;
    }
}


/* ========================================
   THANK-YOU PAGE — MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 600px) {

    .thank-you-actions {
        flex-direction: column;
        max-width: 320px;
        margin-inline: auto;
    }

    .thank-you-actions a {
        width: 100%;
        text-align: center;
    }
}