/* Responsive composition: retain the desktop art direction, reflow at content limits. */
:root { --header-height: clamp(80px, 9.09722vw, 156px); }
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
main, section, .project > *, .project-layout > *, .contact-card > *, .footer-main > *, .service-row > *, .pricing-grid > * { min-width: 0; }
.button { padding-inline: 12px; text-align: center; }
.hero-actions { flex-wrap: wrap; }
.email-address, .footer-social p { overflow-wrap: anywhere; white-space: normal; }
.project-caption h3 { overflow-wrap: anywhere; }
.project-layout { grid-template-columns: minmax(0, 1fr) minmax(44px, 24%); padding-right: 0; }
.checkerboard { aspect-ratio: auto; grid-auto-rows: auto; }
.work-tile { aspect-ratio: 1; }
.about { display: flex; flex-direction: column; gap: 32px; }
.about-bottom { margin-top: auto; padding-top: 24px; }
#mobile-menu { padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); overflow-y: auto; overscroll-behavior: contain; }
.menu-top { gap: 16px; }
.menu-top img { width: min(52vw, 228px); height: auto; }
.menu-toggle, .menu-close { min-width: 64px; min-height: 44px; flex-shrink: 0; }
#mobile-menu nav a { min-height: 52px; }
.work-preview { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
@media(max-width:1100px) {
  .plan-summary, .price-plan .dash-list, .price-plan .text-link { white-space: normal; }
  .pricing-grid { gap: 0; }
  .contact-card { min-width: 0; }
  .project { grid-template-columns: minmax(0, 32%) minmax(0, 44%) minmax(0, 20%); }
  .project-caption h3 { font-size: clamp(24px, 3vw, 34px); }
  .project-metadata { font-size: 13px; }
}
@media(max-width:980px) {
  :root { --header-height: 84px; }
  .masthead .brand { width: clamp(170px, 24vw, 220px); }
  .masthead nav, .masthead .request { display: none; }
  .menu-toggle { display: flex; }
  .service-row { grid-template-columns: 8% 43% minmax(0, 1fr); }
  .service-description { width: auto; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(100px, .5fr) minmax(0, 1fr); }
  .footer-brand .brand { width: min(100%, 220px); }
  .footer-brand p { width: auto; }
  .footer-social { font-size: 12px; }
  .contact-card { padding: 24px 18px; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .contact-icon { width: 44px; height: 44px; padding: 6px; }
  .contact-card h3 { font-size: 20px; }
}
@media(min-width:721px) and (max-width:980px) {
  .hero .intro { font-size: 18px; max-width: 50%; }
  .hero .intro br { display: none; }
  .hero-actions .button { width: auto; min-width: 170px; }
  .hero-copy .eyebrow { font-size: 10px; }
  .service-row { padding-block: 26px; }
  .service-description .eyebrow { font-size: 11px; }
  .price-plan, .price-plan:nth-child(2), .price-plan:last-child { padding-inline: 18px; }
  .plan-summary { min-height: 95px; }
  .custom-work { flex-wrap: wrap; }
}
@media(max-width:720px) {
  :root { --gutter: clamp(18px, 5.5vw, 36px); --header-height: 80px; --body: 15px; --h2: clamp(28px, 6.5vw, 42px); }
  main > .hero { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-height)); height: auto; max-height: none; padding-bottom: 84px; }
  .hero-copy { order: 0; padding-top: 28px; }
  .hero h1 { font-size: 19.4vw; line-height: .97; }
  .hero .intro { max-width: 34ch; font-size: clamp(16px, 3.5vw, 20px); line-height: 1.45; }
  .hero-copy .eyebrow { max-width: 100%; font-size: 10px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .hero-actions .button { width: 100%; min-width: 0; height: auto; min-height: 50px; padding: 12px 8px; font-size: 11px; gap: 8px; }
  .hero-art { order: 1; position: relative; top: auto; left: -50%; width: 165%; height: auto; margin-top: -20px; aspect-ratio: 2880 / 1540; flex-shrink: 0; }
  .hero-art img { width: 100%; height: auto; }
  .hero-index { bottom: 62px; }
  .discover { min-height: 44px; bottom: 10px; }
  .about-title { font-size: 21vw!important; white-space: normal; }
  .about-bottom { gap: 18px; flex-wrap: wrap; }
  main > .about, main > .services, main > .pricing, main > .contact { padding-block: 40px; }
  .service-row, .service-row:first-child, .service-row:last-child { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .service-number { font-size: 28px; }
  .service-description, .service-row > .dash-list { padding-left: 12px; }
  .service-description .text-link { font-size: 11px; min-height: 44px; }
  .price-plan .text-link { white-space: normal; }
  .checkerboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-tile { background: var(--cyan); }
  .work-tile:nth-child(n) { background: var(--cyan); }
  .work-tile:nth-child(4n+2), .work-tile:nth-child(4n+3) { background: var(--paper); }
  .work-tile-label { font-size: 10px; padding: 9px; }
  .project { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .project-caption { padding-inline: 14px; }
  .project-layout { width: calc(100% - 28px); margin-inline: 14px; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .project-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: 12px; }
  .project > .project-metadata { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 14px; gap: 12px; font-size: 12px; }
  .contact-card { grid-template-columns: 44px minmax(0, 1fr); }
  .email-address { font-size: 12px; line-height: 1.5; }
  .footer-main { grid-template-columns: minmax(90px, .65fr) minmax(0, 1fr); gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer nav a { min-height: 44px; }
  .footer-bottom { line-height: 1.5; }
  .work-preview[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .work-preview > .project-metadata { width: 100%; }
}
@media(max-width:360px) {
  .masthead .brand { width: 155px; }
  .menu-toggle { min-width: 56px; font-size: 11px; }
  .contact-card { grid-template-columns: minmax(0, 1fr); }
  .contact-icon { width: 44px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); }
  .project > .project-metadata { gap: 8px; font-size: 11px; }
}
@media(max-height:500px) and (orientation:landscape) {
  #mobile-menu nav { margin-top: 16px; }
  #mobile-menu nav a { font-size: 28px; min-height: 44px; }
  .work-preview[open] { grid-template-columns: minmax(0, 1fr) minmax(140px, 25%); grid-template-rows: minmax(0, 1fr); }
  .work-preview > .project-metadata { grid-template-columns: 1fr; }
}

/* Portrait tablets need a wider artwork crop to keep the driver in frame. */
@media(min-width:721px) and (max-width:980px) and (max-aspect-ratio:1/1) {
  .hero-art { top: auto; bottom: 64px; left: -35%; width: 145%; height: auto; aspect-ratio: 2880 / 1540; }
  .hero-art img { width: 100%; height: auto; object-fit: contain; }
  .hero .rail { display: none; }
}

/* Cover the full hero height without stretching the artwork. */
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  aspect-ratio: auto;
}
.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}
@media(max-width:720px) {
  main > .hero { min-height: max(calc(100svh - var(--header-height)), 780px); }
  .hero-art img { object-position: 62% center; }
}

/* About copy replaces the empty text placeholder. */
.about-copy-placeholder {
  height: auto;
  min-height: 21.97531vw;
  padding: clamp(20px, 2.2vw, 38px);
  color: var(--paper);
  font-size: clamp(16px, 1.35vw, 23px);
  font-weight: 400;
  line-height: 1.6;
}
.about-copy-placeholder p + p { margin-top: 1.2em; }
@media(max-width:720px) {
  .about-copy-placeholder { min-height: 0; font-size: 16px; padding: 22px; }
}

.about-copy-placeholder { background: transparent; color: var(--ink); }

/* Align the biography with the label and heading above it. */
.about-copy-placeholder { padding: 0; min-height: 0; text-align: left; }
.about-copy-placeholder strong { font-weight: 700; }

/* Center the About text column vertically within its grid row. */
.about-grid > div:first-child { align-self: center; }

/* Lift the About content and leave breathing room at the lower edge. */
main > .about {
  padding-top: clamp(20px, 1.6vw, 32px);
  padding-bottom: clamp(48px, 4vw, 72px);
}
@media(max-width:720px) {
  main > .about { padding-top: 28px; padding-bottom: 48px; }
}

/* A taller portrait frame for the About photograph. */
.about-image-placeholder { height: 40vw; overflow: hidden; }
.about-image-placeholder img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media(max-width:720px) { .about-image-placeholder { height: 85vw; max-height: 620px; } }

/* Center the About image alongside the biography. */
.about-image-placeholder { align-self: center; margin-block: 0; }

/* Inset content using normal layout so browser zoom and scrolling stay native. */
main > section:not(.hero) {
  padding-inline: 0;
  padding-block: clamp(64px, 6vw, 112px);
}
main > section:not(.hero) > .section-content {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  display: flow-root;
}
.about > .section-content > .wrap { padding-inline: 0; }
.about > .section-content { display: flex!important; flex-direction: column; gap: 32px; flex: 1; }
.about .about-bottom { padding-top: 32px; }
@media(min-width:981px) {
  main > section:not(.hero) > .section-content {
    width: 82.25%;
    max-width: 1580px;
  }
}
@media(min-width:721px) and (max-width:980px) {
  main > section:not(.hero) > .section-content { width: 86%; }
}
@media(max-width:720px) {
  main > section:not(.hero) { padding-block: 56px; }
  main > section:not(.hero) > .section-content { width: calc(100% - 2 * max(var(--gutter), 24px)); }
}

/* Keep art-directed elements inside their narrower content columns. */
.section-content { min-width: 0; }
@media(min-width:981px) {
  .section-content { --h2: clamp(28px, 2.4vw, 49px); }
  .about-title { font-size: clamp(64px, 9.97vw, 192px)!important; }
  .about-image-placeholder { height: min(36vw, 692px); }
  .about-copy-placeholder { font-size: clamp(16px, 1.215vw, 21px); }
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price-plan, .price-plan:nth-child(2), .price-plan:last-child { padding-inline: clamp(20px, 3vw, 58px); }
  .price-plan .dash-list, .plan-summary, .price-plan .text-link { white-space: normal; }
  .contact-grid { gap: clamp(32px, 6.48vw, 124px); }
  .contact-card { grid-template-columns: minmax(44px, 6.12vw) minmax(0, 1fr); gap: 1.89vw; padding: 2.97vw; }
  .contact-icon { width: 100%; height: auto; aspect-ratio: 1; }
  .service-description { max-width: 100%; }
}

/* Wide desktop windows: fit the hero composition to both viewport axes. */
@media(min-width:981px) {
  main > .hero {
    --hero-unit: min(1vw, calc((100svh - var(--header-height)) / 54));
    min-height: max(600px, calc(100svh - var(--header-height)));
    padding-bottom: 100px;
  }
  .hero-copy { padding-top: max(28px, calc(7.84722 * var(--hero-unit))); }
  .hero h1 {
    font-size: max(72px, calc(11.08056 * var(--hero-unit)));
    margin-top: max(16px, calc(1.35 * var(--hero-unit)));
  }
  .hero .intro {
    font-size: max(18px, calc(1.66667 * var(--hero-unit)));
    margin-top: max(14px, calc(1.15 * var(--hero-unit)));
  }
  .hero-actions { margin-top: max(24px, calc(3.75 * var(--hero-unit))); }
  .hero-actions .button { height: max(48px, calc(4.58333 * var(--hero-unit))); }
  .hero-copy .eyebrow { font-size: max(12px, calc(1.04167 * var(--hero-unit))); }
  .hero-index { bottom: 64px; }
  .hero .discover { bottom: 12px; }
}

/* Desktop composition has a readable maximum size, rather than expanding
   indefinitely with the monitor. Section height remains content-driven. */
@media(min-width:981px) {
  :root { --header-height: clamp(84px, 6vw, 112px); }
  body > .masthead { height: var(--header-height); }
  .masthead .brand { width: clamp(200px, 16vw, 260px); }
  .masthead .request { width: clamp(210px, 16vw, 270px); height: 54px; }
  main > section:not(.hero) { padding-block: clamp(40px, 5vh, 64px); height: auto; }
  main > section:not(.hero) > .section-content { max-width: 1360px; }
  main > .about > .section-content { max-width: 1280px; flex: 0 0 auto; }
  main > .about { justify-content: center; }
  .about-title { font-size: clamp(72px, 7vw, 112px)!important; margin-top: 18px!important; }
  .about-copy-placeholder { font-size: 17px; line-height: 1.5; margin-top: 24px; }
  .about-copy-placeholder p + p { margin-top: 16px; }
  .about-image-placeholder { height: clamp(400px, 55vh, 540px); border-radius: 22px; }
  .about > .section-content { gap: 28px; }
  .about .about-bottom { padding-top: 0; margin-top: 0; font-size: 12px; }
}
html { scroll-padding-top: calc(var(--header-height) + 16px); }

/* Each section fills one visible screen beneath the fixed navigation.
   Longer content can expand naturally instead of being clipped. */
main > section {
  box-sizing: border-box;
  height: auto;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
main > section:not(.hero) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
}
main > section:not(.hero) > .section-content { flex: 0 0 auto; }
@media(min-width:981px) {
  main > .hero { min-height: max(600px, calc(100svh - var(--header-height))); }
}

/* The opening hero occupies exactly the screen below the fixed header. */
main > .hero {
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 0;
  max-height: none;
  padding-bottom: 0;
}
@media(max-width:980px) {
  .hero-copy { padding-top: clamp(16px, 4svh, 40px); }
  .hero h1 { font-size: min(19.4vw, 15svh); }
  .hero .intro { font-size: clamp(15px, 2.4svh, 20px); }
  .hero-actions { margin-top: clamp(14px, 3svh, 24px); }
  .hero-actions .button { min-height: 44px; }
}
@media(max-height:600px) and (min-width:981px) {
  .hero-copy { padding-top: 16px; }
  .hero h1 { font-size: min(8vw, 17svh); margin-top: 10px; }
  .hero .intro { font-size: 16px; margin-top: 10px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .button { height: 44px; }
  .hero .discover { left: auto; right: 20px; transform: none; }
}

/* Content stays in normal flow and scales with its available width. */
main > section:not(.hero) { justify-content: flex-start; padding-block: clamp(48px, 5vw, 88px); }
main > section[hidden] { display: none; }
main > section:not(.hero) > .section-content { position: relative; }
.highlighted-work .project { margin-top: 0; }
.highlighted-work { border-top: 1px solid rgb(242 241 237 / 18%); }
@media(min-width:981px) {
  .about-image-placeholder { height: auto; aspect-ratio: 1.18; }
  .about-copy-placeholder { font-size: clamp(16px, 1.05vw, 18px); }
}
@media(max-width:720px) {
  main > section:not(.hero) { min-height: auto; }
  .highlighted-work .project-layout { padding-top: 0; }
}

/* Lower sections scale against their bounded content area, not the monitor. */
:is(.services, .pricing, .work, .highlighted-work, .contact) > .section-content {
  container-type: inline-size;
  font-size: clamp(14px, 1.15vw, 17px);
}
:is(.services, .pricing, .work, .highlighted-work, .contact) .section-content h2 {
  font-size: clamp(28px, 3.1cqw, 42px);
}
:is(.services, .pricing, .work, .contact) .section-intro {
  font-size: clamp(18px, 2cqw, 26px);
}
:is(.services, .pricing, .work, .highlighted-work, .contact) .eyebrow,
:is(.services, .pricing, .work, .contact) .section-label {
  font-size: clamp(11px, 1.1cqw, 15px);
}
.service-list { margin-top: clamp(24px, 3cqw, 42px); }
.pricing-grid { margin-top: clamp(32px, 5cqw, 68px); min-height: 0; }
.checkerboard { margin-top: clamp(24px, 3cqw, 42px); }
.contact-grid { margin-top: clamp(28px, 4cqw, 54px); gap: clamp(24px, 5cqw, 68px); }
.contact-card { min-height: 0; }
.project-layout { gap: clamp(12px, 2cqw, 28px); }
.project-thumbs { gap: clamp(10px, 1.5cqw, 20px); }
.project-caption h3 { font-size: clamp(24px, 2.5cqw, 34px); }
.project-caption > p:last-child { font-size: clamp(16px, 1.5cqw, 20px); }
@media(min-width:721px) {
  .service-row, .service-row:first-child, .service-row:last-child {
    grid-template-columns: minmax(40px, 8%) minmax(0, 48%) minmax(0, 1fr);
    min-height: 0;
    gap: clamp(16px, 2cqw, 28px);
    margin-inline: 0;
    padding-block: clamp(24px, 3cqw, 40px);
    align-items: start;
  }
  .service-number { font-size: clamp(32px, 4.3cqw, 58px); padding-left: 0; }
  .service-description { width: auto; max-width: none; min-height: 0; padding-left: clamp(16px, 2cqw, 28px); }
  .service-description h3 { font-size: clamp(21px, 2cqw, 28px); }
  .service-description > p br { display: none; }
  .service-row > .dash-list { margin-top: 0; }
  .price-plan, .price-plan:nth-child(2), .price-plan:last-child { padding: 12px clamp(18px, 3cqw, 40px) 28px; min-width: 0; }
  .price { font-size: clamp(38px, 4.7cqw, 64px); margin-top: 24px; }
  .price > span { font-size: .52em; }
  .price.custom { font-size: clamp(28px, 3cqw, 40px); height: clamp(38px, 4.7cqw, 64px); }
  .plan-summary { min-height: 72px; margin-top: 20px; white-space: normal; }
  .price-plan .dash-list { white-space: normal; margin: 24px 0 0; letter-spacing: .04em; }
  .price-plan .dash-list li { margin-bottom: 12px; }
  .price-plan .text-link { white-space: normal; margin: 16px 0 0; }
  .custom-work { margin: 32px 0 0; flex-wrap: wrap; }
  .contact-card { grid-template-columns: clamp(44px, 6cqw, 82px) minmax(0, 1fr); padding: clamp(24px, 3cqw, 40px); gap: clamp(16px, 2cqw, 28px); }
  .contact-card h3 { font-size: clamp(20px, 2cqw, 28px); }
  .contact-icon { width: 100%; height: auto; aspect-ratio: 1; }
}
@media(max-width:720px) {
  .service-row, .service-row:first-child, .service-row:last-child { min-height: 0; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .project-layout { width: calc(100% - 28px); }
}
