/* ==========================================================================
   Studio Antun — v2
   Estética editorial de arquitetura: linho, areia, nogueira e espresso.
   ========================================================================== */

:root {
  /* Paleta — tirada dos próprios renders (madeira, off-white, greige, latão) */
  --linen: #F3EEE7;
  --sand: #E8E0D4;
  --stone: #D6CBBB;
  --paper: #FBF9F5;
  --ink: #1E1A16;
  --ink-soft: #5F574D;
  --ink-mute: #8D8377;
  --walnut: #9A6A43;
  --walnut-deep: #7C5234;
  --espresso: #1B1714;
  --espresso-2: #26211C;
  --line: rgba(30, 26, 22, 0.14);
  --line-light: rgba(243, 238, 231, 0.16);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(96px, 13vw, 180px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--walnut);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--walnut);
  outline-offset: 3px;
}

/* Grão sutil de papel sobre o site todo */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== LAYOUT HELPERS ===== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--walnut);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}

.eyebrow__num {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
  font-style: italic;
  text-transform: none;
}

.eyebrow--light {
  color: #C9A27E;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.section-title em,
.hero__title em {
  font-style: italic;
  color: var(--walnut);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: clamp(56px, 7vw, 96px);
}

.section-intro {
  max-width: 420px;
  color: var(--ink-soft);
  font-size: 17px;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }

  .section-intro {
    justify-self: end;
  }
}

/* ===== BUTTONS ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.5s var(--ease);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark::before {
  background: var(--walnut);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn--ghost::before {
  background: var(--ink);
}

.btn--ghost:hover {
  color: var(--paper);
  border-color: var(--ink);
}

.btn--light {
  background: var(--linen);
  color: var(--ink);
}

.btn--light::before {
  background: #C9A27E;
}

.btn--sm {
  height: 44px;
  padding: 0 22px;
  font-size: 13px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.5s var(--ease);
}

.link-arrow:hover {
  color: var(--walnut);
}

.link-arrow:hover svg {
  transform: translate(3px, -3px);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
  transition: height 0.5s var(--ease);
}

.header.is-scrolled {
  background: rgba(243, 238, 231, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}

.header.is-scrolled .header__inner {
  height: 68px;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.logo__mark {
  display: block;
  width: 30px;
  height: 36px;
  flex-shrink: 0;
  color: var(--ink);
  transition: color 0.4s var(--ease);
}

.logo__mark svg,
.about__badge-core svg {
  width: 100%;
  height: 100%;
  stroke-linecap: butt;
}

.logo:hover .logo__mark {
  color: var(--walnut);
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.005em;
}

.logo__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.menu {
  display: flex;
  gap: 6px;
}

.menu__link {
  position: relative;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.3s;
}

.menu__link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--walnut);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}

.menu__link:hover,
.menu__link.is-active {
  color: var(--ink);
}

.menu__link:hover::after,
.menu__link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.lang__btn {
  color: var(--ink-mute);
  padding: 6px 2px;
  transition: color 0.3s;
}

.lang__btn.active,
.lang__btn:hover {
  color: var(--ink);
}

.lang__sep {
  color: var(--stone);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.burger span:first-child {
  top: 17px;
}

.burger span:last-child {
  top: 25px;
}

.menu-open .burger span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-open .burger span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

@media (max-width: 1080px) {
  .burger {
    display: block;
  }

  .header__cta {
    display: none;
  }

  .menu {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 var(--gutter);
    background: var(--linen);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.8s var(--ease);
  }

  .menu-open .menu {
    clip-path: inset(0 0 0 0);
  }

  .menu__link {
    font-family: var(--serif);
    font-size: clamp(44px, 11vw, 72px);
    line-height: 1.1;
    color: var(--ink);
    padding: 4px 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
  }

  .menu__link::after {
    display: none;
  }

  .menu__link:hover {
    color: var(--walnut);
  }

  .menu-open .menu__link {
    opacity: 1;
    transform: none;
  }

  .menu-open .menu__link:nth-child(1) { transition-delay: 0.15s; }
  .menu-open .menu__link:nth-child(2) { transition-delay: 0.2s; }
  .menu-open .menu__link:nth-child(3) { transition-delay: 0.25s; }
  .menu-open .menu__link:nth-child(4) { transition-delay: 0.3s; }
  .menu-open .menu__link:nth-child(5) { transition-delay: 0.35s; }

  .menu-open .header {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 520px) {
  .logo__text {
    display: none;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(24px, 4vw, 56px));
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: clamp(56px, 7vw, 96px);
}

@media (min-width: 980px) {
  .hero__grid {
    grid-template-columns: 1.08fr 1fr;
    gap: clamp(40px, 6vw, 110px);
    min-height: calc(100vh - var(--header-h) - 120px);
  }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 8.2vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

.hero__sub {
  max-width: 480px;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__scroll {
  display: none;
  align-items: center;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 96px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hero__scroll-line {
  position: relative;
  width: 56px;
  height: 1px;
  background: var(--stone);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--walnut);
  animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

@media (min-width: 980px) {
  .hero__scroll {
    display: inline-flex;
  }
}

/* Visual: arco + detalhe + legenda */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: min(540px, 62vh);
  justify-self: center;
  padding-bottom: 40px;
}

@media (min-width: 980px) {
  .hero__visual {
    justify-self: end;
  }
}

.hero__arch {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 40px 80px -40px rgba(60, 40, 20, 0.45);
}

.hero__slides {
  cursor: pointer;
}

.hero__slides,
.hero__slide {
  position: absolute;
  inset: 0;
}

.hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.12);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1.02);
}

.hero__detail {
  position: absolute;
  left: -14%;
  top: 34%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sand);
  border: 8px solid var(--linen);
  box-shadow: 0 24px 50px -20px rgba(60, 40, 20, 0.4);
}

.hero__detail-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.4s var(--ease) 0.15s, transform 1.6s var(--ease) 0.15s;
}

.hero__detail-img.active {
  opacity: 1;
  transform: scale(1);
}

.hero__caption {
  position: absolute;
  right: -6%;
  bottom: 0;
  width: min(300px, 70%);
  padding: 20px 22px 18px;
  background: rgba(251, 249, 245, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -24px rgba(60, 40, 20, 0.35);
}

.hero__caption-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hero__counter {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
}

.hero__counter #slide-current {
  color: var(--ink);
}

.hero__arrows {
  display: flex;
  gap: 6px;
}

.hero__arrows .icon-btn {
  width: 36px;
  height: 36px;
}

.hero__arrows .icon-btn svg {
  width: 15px;
  height: 15px;
}

.hero__caption-title {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.1;
}

.hero__caption-label {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.hero__progress {
  height: 2px;
  margin-top: 16px;
  background: var(--sand);
  border-radius: 2px;
  overflow: hidden;
}

.hero__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--walnut);
  transform-origin: left;
  transform: scaleX(0);
}

.hero__progress span.run {
  animation: progress 6s linear forwards;
}

@keyframes progress {
  to { transform: scaleX(1); }
}

@media (max-width: 979px) {
  .hero__detail {
    left: -4%;
    width: 30%;
    border-width: 6px;
  }

  .hero__caption {
    right: -2%;
  }
}

/* Ticker de serviços */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: var(--linen);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.ticker__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ticker__group span {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 40px);
  white-space: nowrap;
  padding: 0 28px;
}

.ticker__group span:nth-of-type(even) {
  font-style: italic;
  color: var(--walnut);
}

.ticker__group i {
  font-style: normal;
  color: var(--stone);
  font-size: 18px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px clamp(16px, 2vw, 28px);
}

@media (min-width: 600px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .projects__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.project {
  cursor: pointer;
  outline: none;
}

.project__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand);
  clip-path: inset(0 round var(--radius));
  transition: clip-path 0.8s var(--ease);
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}

.project:hover .project__media img,
.project:focus-visible .project__media img {
  transform: scale(1.1);
}

.project__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0) 55%, rgba(20, 16, 12, 0.45));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

.project:hover .project__media::after,
.project:focus-visible .project__media::after {
  opacity: 1;
}

.project__count {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251, 249, 245, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project__view {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--linen);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.6s var(--ease);
}

.project__view svg {
  width: 18px;
  height: 18px;
}

.project:hover .project__view,
.project:focus-visible .project__view {
  transform: translate(-50%, -50%) scale(1);
}

.project__meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.project__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--walnut);
}

.project__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 2.1vw, 32px);
  line-height: 1.05;
  transition: color 0.3s;
}

.project:hover .project__title {
  color: var(--walnut-deep);
}

.project__label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.project__year {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ===== ABOUT ===== */
.about {
  background: var(--sand);
  position: relative;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
}

@media (min-width: 980px) {
  .about__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(60px, 8vw, 140px);
  }
}

.about__visual {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.about__arch {
  aspect-ratio: 3 / 4.2;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: var(--stone);
}

.about__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: sepia(0.18) contrast(1.02);
}

.about__detail {
  position: absolute;
  right: -12%;
  bottom: -8%;
  width: 46%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 8px solid var(--sand);
  box-shadow: 0 30px 60px -30px rgba(60, 40, 20, 0.5);
}

.about__detail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  left: -8%;
  top: 8%;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--linen);
}

.about__badge > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 22s linear infinite;
}

.about__badge text {
  fill: currentColor;
  stroke: none;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.about__badge-core {
  width: 24px;
  height: 29px;
  color: #C9A27E;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  .about__detail {
    right: -4%;
  }

  .about__badge {
    left: -2%;
    width: 104px;
    height: 104px;
  }
}

.about__lead {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink);
  margin: 36px 0 22px;
}

.about__p {
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
}

/* ===== SERVICES ===== */
.services {
  position: relative;
}

.services__list {
  border-top: 1px solid var(--line);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease), color 0.4s;
}

.service::before {
  content: '';
  position: absolute;
  inset: -1px 0;
  z-index: -1;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
}

.service__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--walnut);
  padding-top: 6px;
}

.service__icon {
  display: none;
}

.service__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.05;
}

.service__desc {
  grid-column: 2;
  color: var(--ink-soft);
  max-width: 380px;
}

@media (min-width: 900px) {
  .service {
    grid-template-columns: 80px 56px 1.3fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 34px 24px;
  }

  .service__num {
    padding-top: 0;
  }

  .service__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.6s var(--ease);
  }

  .service__icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
  }

  .service__desc {
    grid-column: auto;
    justify-self: end;
    text-align: right;
  }

  .service:hover {
    padding-left: 40px;
    padding-right: 40px;
  }

  .service:hover::before {
    transform: scaleY(1);
  }

  .service:hover .service__icon {
    background: var(--walnut);
    border-color: var(--walnut);
    color: var(--paper);
    transform: rotate(-12deg);
  }
}

/* ===== PROCESS ===== */
.process {
  background: var(--paper);
  padding-bottom: calc(var(--section) * 0.8);
}

.process__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  counter-reset: step;
}

@media (min-width: 640px) {
  .process__steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process__steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  position: relative;
  padding: 36px 28px 40px 0;
  border-top: 1px solid var(--line);
}

.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: -1px;
  height: 1px;
  width: 100%;
  background: var(--walnut);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}

.step.is-visible::before {
  transform: scaleX(1);
}

.step::after {
  content: '';
  position: absolute;
  left: 0;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--walnut);
}

.step__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 104px);
  line-height: 1;
  color: var(--stone);
  margin-bottom: 20px;
  transition: color 0.5s var(--ease);
}

.step:hover .step__num {
  color: var(--walnut);
}

.step__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  margin-bottom: 10px;
}

.step__desc {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 280px;
}

/* ===== GALLERY STRIP ===== */
.strip {
  position: relative;
  padding: 0 0 clamp(72px, 9vw, 120px);
  background: var(--paper);
  overflow: hidden;
}

.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.strip__group {
  display: flex;
  gap: 20px;
  padding-right: 20px;
  flex-shrink: 0;
}

.strip__group img {
  height: clamp(220px, 28vw, 380px);
  width: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.strip__group img:nth-child(3n + 1) {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.strip__group img:nth-child(3n + 2) {
  margin-top: 48px;
}

/* ===== CONTACT ===== */
.contact {
  background: var(--espresso);
  color: var(--linen);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  right: -18vw;
  top: -30vw;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 106, 67, 0.28), transparent 65%);
  pointer-events: none;
}

.contact .section-title em {
  color: #C9A27E;
}

.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 72px;
}

@media (min-width: 980px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: clamp(60px, 8vw, 140px);
  }
}

.contact__sub {
  color: rgba(243, 238, 231, 0.65);
  font-size: 17px;
  max-width: 420px;
  margin: 28px 0 56px;
}

.contact__info {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-light);
}

.contact__info li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.contact__info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.45);
}

.contact__info a {
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  transition: color 0.3s;
  word-break: break-word;
}

.contact__info a:hover {
  color: #C9A27E;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 24px;
  background: var(--espresso-2);
  border: 1px solid var(--line-light);
  align-self: start;
}

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

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  position: relative;
}

.field__input {
  width: 100%;
  padding: 26px 0 12px;
  font: inherit;
  font-size: 16px;
  color: var(--linen);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  outline: none;
  transition: border-color 0.4s var(--ease);
}

.field__input--area {
  resize: vertical;
  min-height: 120px;
}

.field__label {
  position: absolute;
  left: 0;
  top: 26px;
  font-size: 16px;
  color: rgba(243, 238, 231, 0.5);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.field::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #C9A27E;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}

.field:has(textarea)::after {
  bottom: 6px;
}

.field:focus-within::after {
  transform: scaleX(1);
}

.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label {
  transform: translateY(-22px) scale(0.75);
  color: #C9A27E;
}

.contact__honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.contact__submit {
  margin-top: 20px;
  align-self: flex-start;
}

.contact__submit.is-success {
  background: #6E8B6A;
  color: var(--paper);
}

.contact__submit.is-error {
  background: #A24D3F;
  color: var(--paper);
}

.contact__submit:disabled {
  cursor: default;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--espresso);
  color: rgba(243, 238, 231, 0.7);
  padding: 0 0 36px;
  overflow: hidden;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--line-light);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14px;
}

.footer__nav a,
.footer__top-link {
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__top-link:hover {
  color: #C9A27E;
}

.footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer__top-link svg {
  width: 16px;
  height: 16px;
}

.footer__word {
  font-family: var(--serif);
  font-size: clamp(64px, 17.5vw, 300px);
  line-height: 0.85;
  letter-spacing: -0.035em;
  color: var(--linen);
  white-space: nowrap;
  margin: 12px 0 28px;
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: rgba(243, 238, 231, 0.4);
  text-align: center;
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(0px, 3vw, 40px);
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 13, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.modal__container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1320px;
  max-height: 100%;
  height: 100%;
  background: var(--linen);
  border-radius: clamp(0px, 2vw, 24px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.modal.is-open .modal__backdrop {
  opacity: 1;
}

.modal.is-open .modal__container {
  opacity: 1;
  transform: none;
}

@media (min-width: 980px) {
  .modal__container {
    grid-template-columns: 1.55fr 1fr;
    height: min(860px, 100%);
  }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(251, 249, 245, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal__gallery {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--espresso);
}

.modal__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}

.modal__track {
  display: flex;
  height: 100%;
  transition: transform 0.8s var(--ease);
}

.modal__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.modal__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(251, 249, 245, 0.9);
  border-color: transparent;
  color: var(--ink);
  width: 48px;
  height: 48px;
}

.modal__nav--prev {
  left: 16px;
}

.modal__nav--next {
  right: 16px;
}

.modal__counter {
  position: absolute;
  left: 20px;
  bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 16, 13, 0.6);
  color: var(--linen);
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
}

.modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.modal__thumbs::-webkit-scrollbar {
  display: none;
}

.modal__thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  opacity: 0.45;
  outline: 2px solid transparent;
  outline-offset: -2px;
  transition: opacity 0.3s, outline-color 0.3s;
}

.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__thumb:hover {
  opacity: 0.8;
}

.modal__thumb.active {
  opacity: 1;
  outline-color: #C9A27E;
}

.modal__content {
  padding: clamp(28px, 4vw, 56px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal__number {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--walnut);
  margin-bottom: 8px;
}

.modal__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  padding-right: 48px;
}

.modal__desc {
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.modal__specs {
  border-top: 1px solid var(--line);
  margin-bottom: 36px;
}

.modal__spec {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.modal__spec dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 2px;
}

.modal__spec dd {
  text-align: right;
  font-weight: 500;
}

.modal__cta {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 979px) {
  .modal {
    padding: 0;
  }

  .modal__container {
    grid-template-rows: auto auto;
    overflow-y: auto;
    border-radius: 0;
  }

  .modal__gallery {
    height: 68vh;
    min-height: 360px;
  }

  .modal__content {
    overflow: visible;
  }

  .modal__nav {
    width: 40px;
    height: 40px;
  }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.project.reveal .project__media {
  clip-path: inset(18% 0 0 0 round var(--radius));
}

.project.reveal.is-visible .project__media {
  clip-path: inset(0 0 0 0 round var(--radius));
}

.hero__visual.reveal {
  transform: translateY(60px);
  transition-duration: 1.6s;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
