@import url('assets/css/layout.css');

@font-face { font-family: 'Six Caps'; src: url('assets/fonts/six-caps-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('assets/fonts/libre-baskerville-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Libre Baskerville'; src: url('assets/fonts/libre-baskerville-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-500.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('assets/fonts/dm-sans-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Anton'; src: url('assets/fonts/anton-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --umber: #231c18;
  --clay: #a84b26;
  --limestone: #e5d5c5;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--umber); }
body { overflow-x: hidden; }
body { font-family: 'Libre Baskerville', Georgia, serif; color: var(--umber); }
a { color: inherit; text-decoration: none; }

.hero {
  width: min(100vw, 1586px);
  min-height: 992px;
  margin: 0 auto;
  background: var(--limestone) url('assets/plates/limestone-texture.png') center / 720px auto repeat;
  isolation: isolate;
}

.plate {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strata-art { z-index: 1; overflow: hidden; }
.strata-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.contact-rail { z-index: 4; background: var(--umber); }

.r-brand-name,
.r-brand-rsg,
.r-summary-build,
.r-summary-finish,
.navigation,
.headline span,
.quote-cta,
.rail-item { z-index: 5; }

.brand {
  color: #2f2720;
}

.r-brand-name {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.r-brand-rsg {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 86px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
  text-transform: none;
}

.r-brand-rsg::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  display: block;
  width: 70px;
  height: 4px;
  background: var(--clay);
}

.services-summary {
  margin: 0;
}

.r-summary-build,
.r-summary-finish {
  z-index: 5;
  padding-left: 28px;
  border-left: 1px solid rgba(35, 28, 24, .55);
  font-size: var(--r-summary-build-font);
  line-height: 1.25;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #f3e8db;
  font-size: 16px;
  white-space: nowrap;
}

.menu-toggle { display: none; }

.navigation a:first-child {
  padding-bottom: 9px;
  border-bottom: 3px solid #cd5e2a;
}

.headline { margin: 0; }
.headline span { display: flex; align-items: flex-start; text-transform: uppercase; }

.headline .r-headline-top {
  position: absolute;
  left: 4%;
  top: 16.5%;
  width: 22%;
  height: 9.5%;
  font-family: 'Anton', sans-serif;
  font-size: 43px;
  line-height: 1;
  letter-spacing: .005em;
  color: #2d251f;
  white-space: nowrap;
  transform: scaleX(1.1);
  transform-origin: left top;
}

.headline .r-headline-bottom {
  position: absolute;
  left: 4%;
  top: 27.2%;
  width: 40.5%;
  height: 11.2%;
  font-family: 'Anton', sans-serif;
  font-size: 105px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .005em;
  color: #a54d24;
  white-space: nowrap;
  transform: scaleX(.82);
  transform-origin: left top;
}

.quote-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: #a84b26;
  color: #f7ede2;
  font-size: 17px;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.quote-cta svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.quote-cta:hover { background: #8d3c1d; box-shadow: 0 14px 28px rgba(35, 28, 24, .24); transform: translateY(-2px); }
.quote-cta:focus-visible, .navigation a:focus-visible, .menu-toggle:focus-visible, .rail-item:focus-visible, .brand:focus-visible { outline: 3px solid #f5c59f; outline-offset: 4px; }

.rail-item {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7cec5;
  font-size: 12px;
  line-height: 1.45;
}

.rail-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  width: 1px;
  height: 42%;
  background: rgba(229, 213, 197, .25);
}

.rail-item svg {
  flex: 0 0 24px;
  width: 24px;
  fill: none;
  stroke: #c95f31;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.r-rail-service-one { font-size: 12px; }
.r-rail-service-one, .r-rail-service-two { letter-spacing: 1px; }
.r-rail-service-two { color: #b9b1ab; font-size: 12px; }
.r-rail-invoice { color: #d0cbc2; font-size: 12px; }
.r-rail-location { color: #c8c6bd; font-size: 12px; }
.r-rail-phone { color: #cfc6bd; font-size: 12px; }
.r-rail-email { color: #cfc6bd; font-size: 16px; }
.r-rail-phone, .r-rail-email { white-space: nowrap; }
.r-rail-phone svg, .r-rail-email svg { flex-basis: 24px; width: 24px; }
.rail-item svg.whatsapp-icon { fill: #c95f31; stroke: none; }

.rail-icons { z-index: 4; pointer-events: none; }

::selection { background: #a84b26; color: #fff6eb; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #231c18; }
::-webkit-scrollbar-thumb { background: #a84b26; border: 3px solid #231c18; }

.section-shell { padding: 150px clamp(32px, 6vw, 96px); }
.projects { background: #e5d5c5 url('assets/plates/limestone-texture.png') center / 760px auto repeat; }
.projects-heading { display: grid; grid-template-columns: 1.45fr .55fr; gap: 8vw; align-items: end; margin-bottom: 84px; }
.projects-heading h2,
.services-content h2,
.portfolio-intro h2,
.contact-copy h2 { margin: 0; font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; letter-spacing: -.035em; }
.projects-heading h2 { max-width: 850px; font-size: clamp(54px, 7vw, 108px); line-height: .96; }
.projects-heading p { max-width: 38ch; margin: 0 0 10px; font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.65; }

.work-strata { position: relative; height: 800px; max-width: 1320px; margin: 0 auto; isolation: isolate; }
.work-strata::before { content: ''; position: absolute; right: 8%; top: 10%; width: 46%; height: 74%; background: rgba(168,75,38,.12); }
.work-layer { position: absolute; margin: 0; overflow: hidden; background: #4f3d2d; outline: 10px solid #e5d5c5; }
.work-layer::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(168,75,38,.12); mix-blend-mode: multiply; pointer-events: none; }
.work-layer-finish { left: 0; top: 72px; z-index: 2; width: 61%; height: 690px; }
.work-layer-water { right: 0; top: 0; z-index: 4; width: 43%; height: 360px; }
.work-layer-structure { right: 6%; bottom: 0; z-index: 3; width: 41%; height: 405px; }
.work-layer img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.work-layer-finish img { filter: saturate(.56) sepia(.08) contrast(1.06); }
.work-layer-water img { filter: saturate(.78) contrast(1.08); }
.work-layer-structure img { filter: saturate(.48) sepia(.12) contrast(1.13); }
@media (hover: hover) { .work-layer:hover img { transform: scale(1.025); } }
.work-layer figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 28px; color: #f4e9dd; background: rgba(35,28,24,.86); }
.work-layer-finish figcaption { right: auto; width: 64%; }
.work-layer figcaption strong { font-family: 'DM Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #d9784a; }
.work-layer figcaption span { font-size: 15px; }

.services-section { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 860px; background: var(--umber); color: #eadfd4; }
.services-photo { position: relative; min-height: 720px; overflow: hidden; }
.services-photo img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.services-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 64%, rgba(35,28,24,.88)); }
.services-photo > span { position: absolute; left: 38px; bottom: 44px; z-index: 1; font-family: 'Six Caps', sans-serif; font-size: 96px; letter-spacing: .015em; text-transform: uppercase; color: #f0e4d8; text-shadow: 0 4px 22px rgba(20,15,12,.48); }
.services-content { padding: 120px clamp(40px, 7vw, 118px); align-self: center; }
.services-content h2 { max-width: 720px; margin-bottom: 82px; font-size: clamp(50px, 5.7vw, 92px); line-height: .98; }
.service-line { display: grid; grid-template-columns: 150px 1fr; gap: 34px; padding: 25px 0; border-top: 1px solid rgba(234,223,212,.22); }
.service-line > span { font-family: 'DM Sans', sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: #d9784a; }
.service-line p { max-width: 42ch; margin: 0; font-size: 18px; line-height: 1.55; }
.text-link { display: inline-flex; gap: 44px; align-items: center; margin-top: 48px; padding-bottom: 8px; border-bottom: 1px solid #d9784a; font-family: 'DM Sans', sans-serif; font-size: 15px; }

.portfolio-section { background: #ca6b3e; color: #17110e; }
.portfolio-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .45fr); gap: clamp(48px, 8vw, 128px); align-items: end; margin-bottom: 118px; }
.portfolio-intro h2 { max-width: 900px; font-size: clamp(56px, 7vw, 96px); line-height: .94; }
.portfolio-intro-copy { display: grid; gap: 28px; padding-bottom: 8px; }
.portfolio-intro-copy p { max-width: 39ch; margin: 0; font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.65; }
.portfolio-intro-copy span { padding-top: 18px; border-top: 1px solid rgba(23,17,14,.34); font-family: 'DM Sans', sans-serif; font-size: 11px; line-height: 1.45; letter-spacing: .14em; text-transform: uppercase; }
.portfolio-ledger { display: grid; gap: 18px; }
.portfolio-chapter { min-width: 0; }
.portfolio-chapter-toggle {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(270px, 22vw, 340px);
  padding: 28px;
  display: block;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: #231c18;
  color: #f0e4d8;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .34s ease;
}
.portfolio-chapter-toggle::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(12,9,8,.48), rgba(12,9,8,.04) 72%); transition: background-color .35s ease; }
.portfolio-chapter-media { position: absolute; z-index: -2; inset: 0; display: block; }
.portfolio-chapter-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; filter: saturate(.68) contrast(1.08) brightness(.84); transform: scale(1.002); transition: transform 1s cubic-bezier(.16,1,.3,1), filter .7s ease; }
.portfolio-chapter-toggle:focus-visible { outline: 3px solid #f5c59f; outline-offset: 4px; }
.portfolio-chapter-copy { position: absolute; left: 28px; bottom: 28px; z-index: 1; width: min(66%, 820px); padding: 24px 28px 26px; display: grid; gap: 12px; border: 1px solid rgba(245,230,218,.26); background: rgba(28,22,19,.56); -webkit-backdrop-filter: blur(16px) saturate(118%); backdrop-filter: blur(16px) saturate(118%); transition: background-color .32s ease, border-color .32s ease; }
.portfolio-chapter-title { max-width: 760px; font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(40px, 4.6vw, 66px); font-weight: 400; line-height: .98; letter-spacing: -.035em; color: #f6ecdf; text-wrap: balance; }
.portfolio-chapter-description { max-width: 48ch; font-family: 'DM Sans', sans-serif; font-size: 15px; line-height: 1.55; color: #dfd1c5; }
.portfolio-chapter-control { position: absolute; right: 28px; bottom: 28px; z-index: 1; min-height: 70px; padding: 9px 10px 9px 16px; display: flex; align-items: center; gap: 20px; border: 1px solid rgba(245,230,218,.26); background: rgba(28,22,19,.56); -webkit-backdrop-filter: blur(16px) saturate(118%); backdrop-filter: blur(16px) saturate(118%); font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; transition: background-color .32s ease, border-color .32s ease; }
.portfolio-chapter-control svg { width: 50px; height: 50px; padding: 14px; border: 1px solid rgba(245,230,218,.5); fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .48s cubic-bezier(.16,1,.3,1), background-color .25s ease, color .25s ease; }
.portfolio-chapter-toggle.is-open .portfolio-chapter-copy,
.portfolio-chapter-toggle.is-open .portfolio-chapter-control { background: rgba(23,17,14,.78); border-color: rgba(239,147,104,.62); }
.portfolio-chapter-toggle.is-open .portfolio-chapter-media img { transform: scale(1.035); filter: saturate(.82) contrast(1.06) brightness(.72); }
.portfolio-chapter-toggle.is-open .portfolio-chapter-control svg { transform: rotate(45deg); background: #ca6b3e; color: #17110e; border-color: #ca6b3e; }
@media (hover: hover) {
  .portfolio-chapter-toggle:hover .portfolio-chapter-media img { transform: scale(1.025); filter: saturate(.8) contrast(1.06) brightness(.76); }
  .portfolio-chapter-toggle:hover .portfolio-chapter-copy,
  .portfolio-chapter-toggle:hover .portfolio-chapter-control { background: rgba(23,17,14,.7); border-color: rgba(245,230,218,.42); }
}
.portfolio-panel { margin-top: 38px; padding: 14px; background: #231c18; transform-origin: top center; }
.portfolio-panel[hidden] { display: none !important; }
.portfolio-panel.is-opening { animation: chapter-unfold .68s cubic-bezier(.16,1,.3,1) both; }
.portfolio-panel.is-closing { animation: chapter-fold .26s ease both; }
.portfolio-panel.is-opening .work-card { will-change: transform, opacity, clip-path, filter; animation: chapter-card-deal .64s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(.08s + var(--chapter-order, 0) * .045s); }
@keyframes chapter-unfold {
  from { opacity: .15; transform: translateY(34px); clip-path: inset(0 0 10% 0); }
  to { opacity: 1; transform: translateY(0); clip-path: inset(0); }
}
@keyframes chapter-fold {
  from { opacity: 1; transform: translateY(0); clip-path: inset(0); }
  to { opacity: 0; transform: translateY(14px); clip-path: inset(0 0 6% 0); }
}
@keyframes chapter-card-deal {
  from { opacity: 0; transform: translate3d(var(--card-drift, 0), 34px, 0) scale(.97); clip-path: inset(0 0 18% 0); filter: blur(4px) saturate(.55); }
  55% { opacity: 1; }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); clip-path: inset(0); filter: blur(0) saturate(1); }
}
.portfolio-cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; grid-auto-rows: 62px; gap: 14px; min-width: 0; }
.work-card { position: relative; grid-column: span 4; grid-row: span 4; min-width: 0; margin: 0; overflow: hidden; background: #231c18; }
.work-card--hero { grid-column: span 8; grid-row: span 6; }
.work-card--tall { grid-column: span 4; grid-row: span 6; }
.work-card--wide { grid-column: span 8; grid-row: span 4; }
.work-card--compact { grid-column: span 4; grid-row: span 4; }
.portfolio-cards--extended .work-card:nth-child(8) { grid-column: span 4; grid-row: span 6; }
.portfolio-cards--extended .work-card:nth-child(9) { grid-column: span 8; grid-row: span 6; }
.portfolio-cards--extended .work-card:nth-child(10),
.portfolio-cards--extended .work-card:nth-child(11),
.portfolio-cards--extended .work-card:nth-child(12) { grid-column: span 4; grid-row: span 4; }
.work-card img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.72) contrast(1.08); transition: transform .85s cubic-bezier(.16,1,.3,1), filter .6s ease; }
.work-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 52%, rgba(18,13,11,.3)); }
.work-card figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: max-content; max-width: calc(100% - 24px); min-height: 0; padding: 10px 13px 11px; display: grid; align-content: center; gap: 4px; border: 1px solid rgba(245,230,218,.24); background: rgba(29,22,19,.66); color: #f0e4d8; -webkit-backdrop-filter: blur(10px) saturate(110%); backdrop-filter: blur(10px) saturate(110%); }
.work-card figcaption span { font-family: 'DM Sans', sans-serif; font-size: 8px; line-height: 1.35; text-transform: uppercase; letter-spacing: .15em; color: #ef9368; }
.work-card figcaption strong { overflow-wrap: anywhere; font-family: 'Libre Baskerville', Georgia, serif; font-size: clamp(14px, 1.15vw, 17px); font-weight: 400; line-height: 1.16; }
@media (hover: hover) {
  .work-card:hover img { transform: scale(1.025); filter: saturate(.88) contrast(1.06); }
}

.contact-section { min-height: 760px; padding: 140px clamp(32px, 6vw, 96px) 34px; display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr auto; gap: 70px; background: #1e1916; color: #eadfd4; }
.contact-copy h2 { max-width: 900px; font-size: clamp(60px, 7.5vw, 118px); line-height: .93; }
.contact-copy p { margin: 30px 0 0; font-family: 'DM Sans', sans-serif; font-size: 18px; color: #bdb2aa; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; font-family: 'DM Sans', sans-serif; }
.contact-actions > a:not(.contact-primary), .contact-actions > span { color: #cfc5bc; font-size: 15px; }
.contact-actions > a:not(.contact-primary):hover { color: #e68a5e; }
.contact-whatsapp { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.contact-whatsapp .whatsapp-icon { width: 22px; height: 22px; fill: #d9784a; }
.contact-primary { display: flex; justify-content: space-between; gap: 54px; width: min(100%, 420px); padding: 22px 25px; margin-bottom: 12px; background: #ca6b3e; color: #17110e; font-weight: 600; }
.contact-primary:hover { background: #d9784a; }
.contact-section footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 30px; padding-top: 26px; border-top: 1px solid rgba(234,223,212,.18); font-family: 'DM Sans', sans-serif; font-size: 12px; letter-spacing: .08em; color: #a99d95; }

.motion-ready .reveal-layer { clip-path: inset(0 0 12% 0); filter: saturate(.78); }
.motion-ready .reveal-layer.is-visible { clip-path: inset(0); filter: none; transition: clip-path 1s cubic-bezier(.16,1,.3,1), filter 1s ease; }

@media (max-width: 1586px) {
  .hero { min-height: 0; }
  .r-brand-name { font-size: clamp(10px, .82vw, 13px); }
  .r-brand-rsg { font-size: clamp(66px, 5.42vw, 86px); }
  .r-summary-build, .r-summary-finish { font-size: clamp(14px, 1.135vw, 18px); }
  .navigation { font-size: clamp(13px, 1.01vw, 16px); }
  .headline .r-headline-top { font-size: clamp(34px, 2.71vw, 43px); }
  .headline .r-headline-bottom { font-size: clamp(82px, 6.62vw, 105px); }
  .quote-cta { font-size: clamp(14px, 1.07vw, 17px); }
  .r-rail-service-one, .r-rail-service-two, .r-rail-invoice,
  .r-rail-location, .r-rail-phone { font-size: clamp(10px, .76vw, 12px); }
  .r-rail-email { font-size: clamp(12px, 1.01vw, 16px); }
}

@media (min-width: 1101px) and (max-width: 1585px) {
  .r-summary-build, .r-summary-finish { font-size: 12px; line-height: 1.3; }
  .r-summary-finish { width: 18.5%; }
  .rail-item svg { flex-basis: 29px; width: 29px; height: 29px; }
  .r-rail-invoice { left: 39%; top: 90.4%; width: 12.5%; height: 5.5%; font-size: 11px; }
  .r-rail-location { left: 52.2%; top: 90.4%; width: 17%; height: 5.5%; font-size: 11px; }
  .r-rail-phone { left: 70.5%; top: 90.4%; width: 11%; height: 5.5%; font-size: 11px; }
  .r-rail-email { left: 83%; top: 90.4%; width: 16%; height: 5.5%; font-size: 12px; }
}

@media (max-width: 1100px) {
  .hero { width: 100%; height: 900px; min-height: 900px; aspect-ratio: auto; }
  .strata-art img { object-position: 46% center; }
  .r-brand-name { left: 6%; top: 4%; width: auto; height: auto; }
  .r-brand-rsg { left: 6%; top: 7%; width: auto; height: auto; font-size: 70px; }
  .r-summary-build, .r-summary-finish { display: none; }
  .navigation { left: auto; right: 6%; top: 5%; width: 38%; height: auto; font-size: 14px; }
  .headline .r-headline-top { left: 6%; top: 20%; width: auto; height: auto; font-size: 38px; }
  .headline .r-headline-bottom { left: 6%; top: 27%; width: auto; height: auto; font-size: clamp(64px, 10vw, 88px); transform: scaleX(.78); }
  .quote-cta { left: 6%; top: 41%; width: 270px; height: 54px; }
  .contact-rail { top: 79%; height: 21%; }
  .r-rail-service-one, .r-rail-service-two, .r-rail-invoice { display: none; }
  .r-rail-location { left: 6%; top: 83%; width: 42%; height: 5%; }
  .r-rail-phone { left: 54%; top: 83%; width: 30%; height: 5%; }
  .r-rail-email { left: 6%; top: 91%; width: 44%; height: 5%; }
  .rail-item:not(:last-child)::after { display: none; }

  .section-shell { padding: 110px clamp(28px, 5vw, 62px); }
  .projects-heading, .portfolio-intro { grid-template-columns: 1fr; gap: 28px; }
  .projects-heading p, .portfolio-intro-copy p { max-width: 52ch; }
  .services-section { grid-template-columns: 1fr; }
  .services-photo { min-height: 580px; }
  .services-photo::after { background: linear-gradient(transparent 72%, rgba(35,28,24,.9)); }
  .services-content { padding: 100px clamp(32px, 7vw, 80px); }
  .portfolio-intro { margin-bottom: 92px; }
  .portfolio-ledger { gap: 14px; }
  .portfolio-chapter-toggle { min-height: 280px; padding: 24px; }
  .portfolio-chapter-control { gap: 18px; }
  .portfolio-cards { grid-auto-rows: 56px; gap: 12px; }
  .contact-section { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 680px) {
  .hero { height: 860px; min-height: 860px; background: #d8c5b5; }
  .strata-art img { object-position: center; }
  .r-brand-name { left: 20px; top: 22px; font-size: 11px; }
  .r-brand-rsg { left: 20px; top: 42px; font-size: 50px; }
  .r-brand-rsg::after { bottom: -3px; width: 44px; height: 3px; }
  .menu-toggle { position: absolute; right: 20px; top: 20px; z-index: 8; width: 62px; height: 62px; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid rgba(229,213,197,.34); border-bottom: 3px solid #cd5e2a; border-radius: 0; background: rgba(35,28,24,.95); color: #f3e8db; font-family: 'DM Sans', sans-serif; cursor: pointer; box-shadow: 0 12px 28px rgba(35,28,24,.18); }
  .menu-toggle-label { font-size: 9px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; }
  .menu-toggle-lines { position: relative; width: 24px; height: 10px; display: block; }
  .menu-toggle-lines i { position: absolute; left: 0; width: 24px; height: 1px; display: block; background: currentColor; transition: top .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1); }
  .menu-toggle-lines i:first-child { top: 1px; }
  .menu-toggle-lines i:last-child { top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child { top: 5px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child { top: 5px; transform: rotate(-45deg); }
  .navigation { left: auto; right: 20px; top: 92px; z-index: 7; width: 220px; height: auto; padding: 8px; gap: 0; display: grid; grid-template-columns: 1fr; align-content: start; justify-content: stretch; overflow: hidden; border: 1px solid rgba(229,213,197,.25); background: #231c18; font-size: 13px; box-shadow: 0 18px 38px rgba(35,28,24,.3); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .22s ease, visibility .22s ease, transform .32s cubic-bezier(.16,1,.3,1); }
  .navigation.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .navigation a, .navigation a:not(:last-child), .navigation a:last-child { width: 100%; min-width: 0; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid rgba(229,213,197,.15); background: transparent; color: #f3e8db; }
  .navigation a::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-right: 1px solid #d9784a; border-bottom: 1px solid #d9784a; transform: rotate(-45deg); }
  .navigation a:first-child { padding-bottom: 0; border-bottom: 1px solid rgba(229,213,197,.15); }
  .navigation a:last-child { border-bottom: 0; }
  .headline .r-headline-top { left: 20px; top: 132px; font-size: 27px; }
  .headline .r-headline-bottom { left: 20px; top: 170px; width: 330px; max-width: calc(100% - 40px); font-size: 56px; white-space: normal; line-height: .88; transform: scaleX(.86); }
  .quote-cta { left: 20px; top: 276px; width: 222px; height: 48px; padding: 0 18px; font-size: 13px; }
  .contact-rail { top: 80%; height: 20%; }
  .r-rail-location { left: 20px; top: 82%; width: calc(100% - 40px); min-height: 44px; font-size: 12px; }
  .r-rail-phone { left: 20px; top: 88%; width: calc(100% - 40px); min-height: 44px; font-size: 12px; }
  .r-rail-email { left: 20px; top: 94%; width: calc(100% - 40px); min-height: 44px; font-size: 12px; }

  .section-shell { padding: 70px 20px; }
  .projects-heading { margin-bottom: 40px; }
  .projects-heading h2, .portfolio-intro h2 { font-size: 43px; }
  .projects-heading p, .portfolio-intro-copy p { font-size: 15px; }
  .work-strata { display: block; height: 820px; }
  .work-strata::before { right: -20px; top: 72px; width: 68%; height: 600px; }
  .work-layer { outline-width: 7px; }
  .work-layer-finish { left: 0; top: 0; width: 88%; height: 440px; }
  .work-layer-water { left: auto; right: 0; top: 350px; width: 72%; height: 245px; }
  .work-layer-structure { left: 8%; right: auto; top: 545px; bottom: auto; width: 82%; height: 275px; }
  .work-layer figcaption { gap: 10px; padding: 15px 16px; }
  .work-layer-finish figcaption { right: 0; bottom: 88px; width: 100%; }
  .work-layer figcaption strong { font-size: 10px; }
  .work-layer figcaption span { font-size: 13px; }
  .services-photo { min-height: 410px; }
  .services-photo img { object-position: 54% 52%; }
  .services-photo > span { left: 20px; bottom: 22px; font-size: 82px; }
  .services-content { padding: 70px 20px; }
  .services-content h2 { margin-bottom: 46px; font-size: 43px; }
  .service-line { grid-template-columns: 1fr; gap: 10px; }
  .service-line p { font-size: 16px; }
  .portfolio-intro { margin-bottom: 74px; }
  .portfolio-intro-copy { gap: 20px; }
  .portfolio-intro-copy span { font-size: 9px; line-height: 1.6; }
  .portfolio-ledger { gap: 12px; }
  .portfolio-chapter-toggle { min-height: 300px; padding: 0; }
  .portfolio-chapter-toggle::after { background: linear-gradient(180deg, rgba(12,9,8,.08), rgba(12,9,8,.64)); }
  .portfolio-chapter-media img { object-position: 62% center; }
  .portfolio-chapter:nth-child(2) .portfolio-chapter-media img { object-position: 68% center; }
  .portfolio-chapter:nth-child(3) .portfolio-chapter-media img { object-position: 66% center; }
  .portfolio-chapter:nth-child(4) .portfolio-chapter-media img { object-position: 64% center; }
  .portfolio-chapter-copy { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 16px 16px 17px; gap: 8px; background: rgba(24,19,16,.62); -webkit-backdrop-filter: blur(12px) saturate(112%); backdrop-filter: blur(12px) saturate(112%); }
  .portfolio-chapter-title { max-width: calc(100% - 72px); font-size: 31px; }
  .portfolio-chapter-description { max-width: 31ch; font-size: 11px; line-height: 1.45; }
  .portfolio-chapter-control { top: 12px; right: 12px; bottom: auto; min-height: 46px; padding: 5px 5px 5px 10px; gap: 8px; background: rgba(24,19,16,.66); font-size: 7px; -webkit-backdrop-filter: blur(12px) saturate(112%); backdrop-filter: blur(12px) saturate(112%); }
  .portfolio-chapter-control svg { width: 36px; height: 36px; padding: 10px; }
  .portfolio-panel { margin-top: 12px; padding: 8px; }
  .portfolio-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 78px; gap: 8px; }
  .work-card,
  .portfolio-cards--extended .work-card:nth-child(9),
  .portfolio-cards--extended .work-card:nth-child(10),
  .portfolio-cards--extended .work-card:nth-child(11),
  .portfolio-cards--extended .work-card:nth-child(12) { grid-column: span 1; grid-row: span 2; }
  .work-card--hero, .work-card--wide { grid-column: 1 / -1; grid-row: span 4; }
  .work-card--tall,
  .portfolio-cards--extended .work-card:nth-child(8) { grid-column: span 1; grid-row: span 4; }
  .work-card--standard, .work-card--compact { grid-column: span 1; grid-row: span 2; }
  .portfolio-cards--extended .work-card:nth-child(9) { grid-column: 1 / -1; grid-row: span 4; }
  .work-card figcaption { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 8px 9px 9px; gap: 3px; -webkit-backdrop-filter: blur(8px) saturate(108%); backdrop-filter: blur(8px) saturate(108%); }
  .work-card figcaption span { font-size: 7px; }
  .work-card figcaption strong { font-size: 12px; }
  .contact-section { padding: 70px 20px max(24px, env(safe-area-inset-bottom)); gap: 46px; }
  .contact-copy h2 { font-size: 43px; }
  .contact-actions { gap: 20px; }
  .contact-primary { width: 100%; min-height: 54px; align-items: center; }
  .contact-section footer { flex-direction: column; }

}

@media (max-height: 520px) and (orientation: landscape) and (max-width: 950px) {
  .hero { height: 520px; min-height: 520px; }
  .headline .r-headline-top { top: 24%; }
  .headline .r-headline-bottom { top: 32%; font-size: 48px; }
  .quote-cta { top: 54%; }
  .contact-rail { top: 78%; height: 22%; }
  .r-rail-location, .r-rail-phone, .r-rail-email { top: 84%; min-height: 44px; }
  .r-rail-location { left: 3%; width: 36%; }
  .r-rail-phone { left: 42%; width: 22%; }
  .r-rail-email { left: 68%; width: 29%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .portfolio-panel.is-opening,
  .portfolio-panel.is-closing,
  .portfolio-panel.is-opening .work-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}
