:root {
  --bg: #f6f0e7;
  --bg-soft: #fffaf4;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #211811;
  --muted: #705f54;
  --accent: #ff7a1a;
  --accent-soft: rgba(255, 122, 26, 0.18);
  --line: rgba(33, 24, 17, 0.12);
  --shadow: 0 24px 70px rgba(75, 48, 26, 0.14);
  --radius: 24px;
  --radius-sm: 18px;
  --container: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.72), transparent 22%),
    linear-gradient(180deg, #fffdf8, #f8f1e6 24%, #f5ede3 100%);
}

::selection {
  background: rgba(255, 122, 26, 0.2);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(255, 122, 26, 0.9);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 104px 0;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(255, 250, 244, 0.84);
  border-bottom: 1px solid rgba(33, 24, 17, 0.08);
  box-shadow: 0 10px 24px rgba(44, 26, 16, 0.04);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: clamp(118px, 15vw, 190px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.28));
}

.brand__text {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: inline-flex;
  justify-content: center;
  gap: 28px;
}

.nav a,
.footer__social a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav a::after,
.footer__social a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.footer__social a:hover,
.nav a:focus-visible,
.footer__social a:focus-visible {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after,
.footer__social a:hover::after,
.footer__social a:focus-visible::after {
  transform: scaleX(1);
}

.header__actions {
  display: inline-flex;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(33, 24, 17, 0.2);
  box-shadow: 0 12px 30px rgba(75, 48, 26, 0.12);
}

.button--accent {
  background: linear-gradient(135deg, #ff8c36, #ff6a00);
  color: #fff8f1;
  box-shadow: 0 18px 40px rgba(255, 122, 26, 0.24);
}

.button--accent:hover,
.button--accent:focus-visible {
  box-shadow: 0 22px 46px rgba(255, 122, 26, 0.3);
}

.button--large {
  padding: 15px 24px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(33, 24, 17, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 30px rgba(33, 24, 17, 0.08);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: calc(72vh - 88px);
  display: flex;
  align-items: center;
  padding: 40px 0 28px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, #fffdf8 0%, #f8f1e6 48%, #f4ece1 100%);
  transform: none;
  filter: none;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 122, 26, 0.18), transparent 25%),
    radial-gradient(circle at 80% 35%, rgba(255, 255, 255, 0.45), transparent 20%),
    linear-gradient(90deg, rgba(255, 249, 241, 0.16), transparent 34%, transparent 66%, rgba(255, 249, 241, 0.16));
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__polaroids {
  display: none;
}

.hero__polaroid {
  display: none;
}

.hero__panel {
  max-width: 640px;
  padding: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: #c76018;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(3.8rem, 10vw, 7.4rem);
  max-width: 10ch;
}

.hero h1 span {
  display: inline;
}

.hero__text,
.section-copy,
.about__content p,
.contact__intro p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.04rem;
}

.hero__text {
  max-width: 42rem;
  margin: 22px 0 0;
}

.hero-photo {
  padding: 16px 0 8px;
}

.hero-photo__wrap {
  display: flex;
  justify-content: center;
}

.between-photo {
  padding: 8px 0 10px;
}

.between-photo__wrap {
  display: flex;
  justify-content: center;
}

.polaroid {
  width: min(320px, 76vw);
  margin: 0;
  padding: 14px 14px 56px;
  border-radius: 6px;
  background: #fffdf8;
  border: 1px solid rgba(44, 26, 16, 0.06);
  box-shadow: 0 20px 48px rgba(44, 26, 16, 0.14);
  transform: rotate(-3deg);
}

.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.polaroid figcaption {
  margin-top: 14px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(33, 24, 17, 0.88);
}

.polaroid--right {
  transform: rotate(3deg);
}

.hero__cta {
  margin-top: 30px;
}

.about__grid,
.contact__card,
.section-heading--split {
  display: grid;
  gap: 28px;
}

.about__grid {
  grid-template-columns: 0.95fr 1.05fr;
  align-items: start;
  grid-template-areas:
    "heading content"
    "visual content"
    "highlights highlights";
}

.about .section-heading {
  grid-area: heading;
}

.about__feature {
  display: none;
  grid-area: visual;
  margin: 0;
  position: relative;
}

.about__feature img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 28px;
  filter: grayscale(1) contrast(1.04);
  border: 1px solid rgba(33, 24, 17, 0.06);
  box-shadow: 0 28px 80px rgba(44, 26, 16, 0.14);
}

.about__credit {
  position: absolute;
  left: 18px;
  bottom: -20px;
  transform: none;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(8px);
  color: rgba(33, 24, 17, 0.72);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(44, 26, 16, 0.08);
}

.about__collage {
  display: flex;
  grid-area: visual;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 4px;
  flex-wrap: wrap;
}

.about-polaroid {
  width: min(152px, 41vw);
}

.about-polaroid img {
  aspect-ratio: 4 / 5;
}

.about-polaroid--one {
  transform: rotate(-7deg);
}

.about-polaroid--two {
  transform: rotate(5deg);
  margin-top: 20px;
}

.about-polaroid--three {
  transform: rotate(-3deg);
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  max-width: 11ch;
}

.about .section-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 5.6vw, 5rem);
}

.about__content {
  grid-area: content;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  align-self: start;
}

.about__intro {
  margin-bottom: 24px;
}

.about__lead {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

.about__support {
  margin: 14px 0 0;
  max-width: 52ch;
  color: var(--muted);
  line-height: 1.7;
}

.about__story {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(33, 24, 17, 0.1);
}

.about__story p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.75;
}

.about__highlights {
  grid-area: highlights;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.highlight-card,
.contact__card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 241, 0.76));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.highlight-card {
  min-height: 0;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card--wide {
  grid-column: auto;
  display: block;
  min-height: 0;
  background: rgba(255, 255, 255, 0.72);
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.highlight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 28ch;
}

.highlight-card:hover,
.highlight-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.18);
  box-shadow: 0 26px 54px rgba(44, 26, 16, 0.12);
}

.section-heading--split {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  margin-bottom: 32px;
}

.section-copy {
  margin: 0;
  justify-self: end;
  max-width: 42ch;
}

.portfolio__toolbar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.portfolio__toolbar span {
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  color: var(--muted);
}

.portfolio__grid {
  columns: 4 260px;
  column-gap: 18px;
}

.portfolio-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  margin-bottom: 18px;
  overflow: hidden;
  padding: 0;
  break-inside: avoid;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.5s ease, filter 0.35s ease;
}

.portfolio-item:hover img,
.portfolio-item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.portfolio-item:hover,
.portfolio-item:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 122, 26, 0.18);
  box-shadow: 0 28px 56px rgba(44, 26, 16, 0.16);
}

.contact__card {
  grid-template-columns: 1.1fr 1fr auto;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  gap: 24px;
}

.contact__details {
  display: grid;
  gap: 16px;
}

.contact__details a {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(44, 26, 16, 0.05);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contact__details a:hover,
.contact__details a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 26, 0.4);
  background: rgba(255, 122, 26, 0.08);
}

.contact__details span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer {
  padding: 28px 0 42px;
  border-top: 1px solid rgba(33, 24, 17, 0.08);
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.14), rgba(255, 248, 241, 0.36));
}

.footer__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 16px;
}

.footer__inner p {
  margin: 0;
  color: var(--muted);
}

.footer__social {
  display: inline-flex;
  justify-content: end;
  gap: 18px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(23, 16, 10, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__figure {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 110px);
}

.lightbox__figure img {
  max-height: calc(100vh - 170px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
}

.lightbox__figure figcaption {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.lightbox__figure figcaption:empty {
  display: none;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.lightbox__close {
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.35rem;
}

.lightbox__nav--prev {
  left: 22px;
}

.lightbox__nav--next {
  right: 22px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@media (max-width: 900px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__actions {
    display: none;
  }

  .about__grid,
  .section-heading--split,
  .contact__card,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-areas:
      "heading"
      "visual"
      "content"
      "highlights";
  }

  .section-copy {
    justify-self: start;
  }

  .contact__card {
    justify-items: start;
  }

  .footer__social {
    justify-content: start;
  }
}

@media (min-width: 901px) and (max-width: 1080px) {
  .portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    columns: unset;
  }

  .portfolio-item {
    margin-bottom: 0;
    break-inside: auto;
  }

  .portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .hero-photo {
    display: none;
  }

  .hero__content {
    max-width: 1100px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.58fr);
    align-items: center;
    gap: 48px;
    padding: 12px 24px 12px 28px;
  }

  .hero__polaroids {
    display: block;
    position: relative;
    justify-self: center;
    width: min(360px, 30vw);
    min-height: 360px;
  }

  .hero__polaroid {
    display: block;
    position: absolute;
    width: min(210px, 18vw);
    margin-top: 0;
    opacity: 1;
    transform: var(--hero-polaroid-transform);
  }

  .hero__polaroid--primary {
    left: 0;
    top: 56px;
    --hero-polaroid-transform: rotate(-6deg);
    transform-origin: top left;
    z-index: 2;
  }

  .hero__polaroid--secondary {
    right: -180px;
    top: 16px;
    --hero-polaroid-transform: rotate(6deg);
    transform-origin: top right;
    z-index: 1;
  }

  .hero__panel {
    max-width: 38rem;
  }

  .about__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-areas:
      "heading heading"
      "visual content"
      "highlights highlights";
    gap: 36px 36px;
    align-items: start;
  }

  .about .section-heading {
    max-width: 56rem;
  }

  .about__collage {
    display: none;
  }

  .about__feature {
    display: block;
    align-self: start;
    margin-top: 12px;
  }

  .about__feature img {
    max-width: 360px;
  }

  .about__content {
    padding-top: 36px;
  }

  .about__intro {
    max-width: 40rem;
    margin: 0;
  }

  .about__lead {
    max-width: 24ch;
    font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  }

  .about__support {
    max-width: 42ch;
    font-size: 1rem;
  }

  .about__story {
    column-count: 2;
    column-gap: 28px;
    gap: 0;
    max-width: 42rem;
    margin-top: 26px;
    padding-top: 22px;
  }

  .about__story p {
    max-width: none;
    margin: 0 0 15px;
    break-inside: avoid;
    font-size: 0.96rem;
    line-height: 1.74;
  }

  .about__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 10px;
  }
}

@media (min-width: 1081px) {
  .portfolio__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    columns: unset;
  }

  .portfolio-item {
    margin-bottom: 0;
    break-inside: auto;
  }

  .portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .about__grid {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    grid-template-areas:
      "heading heading"
      "visual content"
      "highlights highlights";
    gap: 36px 44px;
    align-items: start;
  }

  .about .section-heading {
    max-width: 70rem;
  }

  .about__collage {
    display: none;
  }

  .about__feature {
    display: block;
    align-self: start;
    margin-top: 6px;
  }

  .about__feature img {
    max-width: 460px;
  }

  .about .section-heading h2 {
    max-width: 100%;
    font-size: clamp(4rem, 5vw, 5.8rem);
    line-height: 0.92;
  }

  .about__content {
    padding-top: 0;
    justify-self: start;
    width: 100%;
  }

  .about__intro {
    max-width: 42rem;
    margin: 0;
  }

  .about__lead {
    max-width: 100%;
    font-size: clamp(1.12rem, 1.25vw, 1.4rem);
    line-height: 1.46;
  }

  .about__support {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .about__story {
    column-count: 2;
    column-gap: 22px;
    gap: 0;
    max-width: 42rem;
    padding-top: 18px;
    margin-top: 18px;
  }

  .about__story p {
    max-width: none;
    margin: 0 0 12px;
    break-inside: avoid;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .about__highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
    padding-left: 92px;
    padding-right: 24px;
  }

  .highlight-card,
  .highlight-card--wide {
    min-height: 220px;
  }

  .hero .container {
    width: min(1180px, calc(100% - 72px));
  }

  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 36px;
  }

  .brand {
    gap: 18px;
  }

  .brand__logo {
    width: clamp(150px, 13vw, 210px);
  }

  /* A logo já contém o nome completo, então no desktop o texto extra pesa visualmente. */
  .brand__text {
    display: none;
  }

  .nav {
    justify-self: center;
    gap: 40px;
  }

  .header__actions {
    justify-self: end;
  }

  .hero {
    min-height: calc(68vh - 88px);
    padding: 24px 0 20px;
  }

  .hero-photo {
    display: none;
  }

  .between-photo {
    padding: 0 0 4px;
  }

  .hero__content {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
    align-items: center;
    gap: 64px;
    padding: 12px 28px 12px 36px;
    margin-left: 0;
  }

  .hero__polaroids {
    display: block;
    position: relative;
    justify-self: center;
    width: min(430px, 30vw);
    min-height: 380px;
  }

  .hero__polaroid {
    display: block;
    position: absolute;
    width: min(220px, 16vw);
    opacity: 1;
    transform: var(--hero-polaroid-transform);
  }

  .hero__polaroid--primary {
    left: 0;
    top: 58px;
    --hero-polaroid-transform: rotate(-6deg);
    transform-origin: top left;
  }

  .hero__polaroid--secondary {
    right: -144px;
    top: 12px;
    --hero-polaroid-transform: rotate(6deg);
    transform-origin: top right;
  }

  .hero__panel {
    max-width: 44rem;
  }

  .hero h1 {
    font-size: clamp(4.4rem, 6.2vw, 6.3rem);
    max-width: 100%;
    line-height: 0.92;
    letter-spacing: 0.01em;
  }

  .hero h1 span {
    display: block;
  }

  .hero h1 span:nth-child(1) {
    margin-left: 0;
  }

  .hero h1 span:nth-child(2) {
    margin-left: 0;
  }

  .hero h1 span:nth-child(3) {
    margin-left: 0;
  }

  .hero h1 span:nth-child(4) {
    margin-left: 0;
  }

  .hero__text {
    max-width: 42rem;
    font-size: 1.1rem;
  }

  .section-heading--split {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    align-items: end;
    gap: 40px;
  }

  .section-heading--split h2 {
    max-width: 100%;
    font-size: clamp(4.1rem, 5.2vw, 5.8rem);
    line-height: 0.92;
  }

  .section-copy {
    max-width: 30rem;
    padding-bottom: 10px;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 901px) and (max-width: 1280px) {
  .header__inner {
    min-height: 76px;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
  }

  .brand__text {
    display: none;
  }

  .brand__logo {
    width: clamp(112px, 18vw, 154px);
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    margin-left: 0;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid var(--line);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header__actions {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 8px 0 6px;
  }

  .hero__content {
    max-width: 100%;
    display: block;
    padding: 0;
  }

  .hero__panel {
    max-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 4rem);
    max-width: 8ch;
    line-height: 0.92;
  }

  .hero h1 span {
    display: block;
    margin-left: 0;
  }

  .hero__text {
    max-width: 26ch;
    margin-top: 10px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .hero__polaroids {
    display: none;
  }

  .hero-photo {
    display: block;
    padding: 0 0 8px;
  }

  .polaroid {
    width: min(270px, 72vw);
    padding: 12px 12px 46px;
    transform: rotate(-2deg);
  }

  .polaroid figcaption {
    margin-top: 12px;
    font-size: 1rem;
  }

  .polaroid--right {
    transform: rotate(2deg);
  }

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

  .portfolio-item {
    margin-bottom: 0;
    break-inside: auto;
  }

  .portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .about__grid,
  .section-heading--split,
  .contact__card,
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-areas:
      "heading"
      "visual"
      "content"
      "highlights";
    gap: 28px;
  }

  .about__feature {
    display: none;
  }

  .about__collage {
    display: flex;
  }

  .about__content {
    padding-top: 0;
  }

  .about__lead,
  .about__support,
  .about__story {
    max-width: 100%;
  }

  .about__story {
    display: grid;
    column-count: unset;
    margin-top: 22px;
    padding-top: 18px;
  }

  .about__story p {
    max-width: none;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .about__highlights {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 10px;
    padding-left: 0;
    padding-right: 0;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.5rem, 6.8vw, 3.8rem);
    max-width: 100%;
  }

  .about .section-heading h2,
  .portfolio .section-heading h2 {
    max-width: 100%;
    font-size: clamp(2.6rem, 7vw, 4rem);
    line-height: 0.96;
  }

  .section-copy {
    justify-self: start;
    max-width: 100%;
  }

  .contact__card {
    justify-items: start;
  }

  .footer__social {
    justify-content: start;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }

  .header__inner {
    min-height: 76px;
    gap: 14px;
    grid-template-columns: auto 1fr auto;
  }

  .brand__text {
    display: none;
  }

  .brand__logo {
    width: clamp(112px, 34vw, 154px);
  }

  .hero {
    min-height: calc(60svh - 76px);
    align-items: center;
    padding: 4px 0 2px;
  }

  .hero__backdrop {
    background:
      radial-gradient(circle at top left, rgba(255, 122, 26, 0.16), transparent 32%),
      radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.8), transparent 24%),
      linear-gradient(180deg, #fffdf8 0%, #f7efe4 52%, #f3eadf 100%);
    transform: none;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero-photo {
    padding: 0 0 8px;
  }

  .between-photo {
    padding: 6px 0 4px;
  }

  .polaroid {
    width: min(270px, 72vw);
    padding: 12px 12px 46px;
    transform: rotate(-2deg);
  }

  .polaroid figcaption {
    margin-top: 12px;
    font-size: 1rem;
  }

  .polaroid--right {
    transform: rotate(2deg);
  }

  .hero__panel {
    max-width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 10.2vw, 3.4rem);
    max-width: 8ch;
    line-height: 0.92;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
  }

  .hero__text {
    margin-top: 0;
    max-width: 100%;
    color: rgba(33, 24, 17, 0.76);
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .hero__cta {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
  }

  .hero__panel .eyebrow,
  .hero__panel h1 {
    max-width: 100%;
  }

  .hero__panel .eyebrow {
    margin-bottom: 16px;
  }

  .hero__panel h1 + .hero__text {
    margin-top: 10px;
  }

  .hero__cta .button {
    min-width: 0;
    padding-inline: 22px;
  }

  .section-heading h2,
  .contact h2 {
    font-size: clamp(2.3rem, 12vw, 3.4rem);
  }

  .about .section-heading h2 {
    max-width: 100%;
    font-size: clamp(2.5rem, 10.5vw, 3.6rem);
    line-height: 0.96;
  }

  .portfolio .section-heading h2 {
    max-width: 100%;
    font-size: clamp(2.4rem, 9.2vw, 3.2rem);
    line-height: 0.96;
  }

  .section-heading--split {
    gap: 18px;
    margin-bottom: 24px;
  }

  .about__highlights {
    grid-template-columns: 1fr;
  }

  .about__lead {
    font-size: 1.18rem;
  }

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

  .portfolio-item {
    border-radius: 18px;
    margin-bottom: 0;
    break-inside: auto;
  }

  .contact__card {
    gap: 18px;
  }

  .portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }

  .contact__card {
    padding: 24px;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox__nav {
    display: none;
  }

  .lightbox__figure img {
    max-height: calc(100vh - 140px);
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
