:root {
  --wine: #930e1a;
  --wine-dark: #671018;
  --ink: #181714;
  --muted: #726d65;
  --cream: #f4f0e8;
  --paper: #fbfaf6;
  --line: rgba(24, 23, 20, 0.14);
  --serif: "Libre Caslon Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: #e7e4dc;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.page-shell {
  width: min(1460px, calc(100% - 56px));
  margin: 28px auto 54px;
  overflow: hidden;
  border-radius: 32px;
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(39, 31, 24, 0.12);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 18px clamp(28px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 35px; height: 42px; fill: var(--wine); stroke: none; }
.brand span { display: grid; line-height: 1; }
.brand strong { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: 0.06em; text-transform: uppercase; }
.brand small { margin-top: 6px; color: var(--wine); font-size: 9px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.top-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 15px 11px 19px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  font-size: 13px;
  font-weight: 600;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.top-contact:hover { color: var(--wine); border-color: rgba(147,14,26,.35); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(54,40,29,.09); }
.top-contact svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; color: #fff; background: var(--wine); }

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.75fr) minmax(560px, 1.25fr);
  min-height: 710px;
  padding: clamp(46px, 7vw, 100px) clamp(28px, 5vw, 78px) 76px;
  gap: clamp(42px, 6vw, 96px);
  background: linear-gradient(105deg, var(--paper) 0 56%, var(--cream) 56% 100%);
}
.hero-copy { min-width: 0; align-self: center; }
.eyebrow { margin: 0 0 20px; color: var(--wine); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.035em; }
h1 { max-width: 620px; font-size: clamp(60px, 6.6vw, 102px); line-height: 0.92; }
h1 em { color: var(--wine); font-weight: 400; }
.intro { max-width: 500px; margin: 30px 0 34px; overflow-wrap: anywhere; color: var(--muted); font-size: 16px; line-height: 1.7; }

.link-list { display: grid; max-width: 470px; gap: 10px; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 12px 0 21px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  font-size: 14px;
  font-weight: 500;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.link-list a:hover { color: var(--wine); border-color: rgba(147,14,26,.28); transform: translateX(5px); box-shadow: 0 12px 30px rgba(54,40,29,.08); }
.link-list svg { width: 37px; height: 37px; padding: 9px; border-radius: 50%; background: var(--cream); transition: color 220ms ease, background 220ms ease, transform 220ms ease; }
.link-list a:hover svg { color: #fff; background: var(--wine); transform: rotate(-10deg); }
.link-list .primary-link { min-height: 76px; padding: 0 13px 0 24px; color: #fff; background: var(--wine); border-color: var(--wine); box-shadow: 0 14px 28px rgba(103,16,24,.16); }
.link-list .primary-link:hover { color: #fff; background: var(--wine-dark); border-color: var(--wine-dark); transform: translateX(5px) translateY(-2px); box-shadow: 0 18px 34px rgba(103,16,24,.24); }
.link-list .primary-link svg { background: rgba(255,255,255,.16); }
.link-list .primary-link:hover svg { color: var(--wine-dark); background: #fff; }
.primary-link span { display: grid; gap: 5px; font-family: var(--serif); font-size: 22px; }
.primary-link small { font-family: var(--sans); font-size: 9px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }

.hero-gallery { position: relative; min-height: 550px; align-self: center; }
.hero-gallery figure { position: absolute; margin: 0; overflow: hidden; background: #ded9cf; }
.hero-gallery img { height: 100%; object-fit: cover; }
.hero-main { inset: 1% 18% 3% 0; border-radius: 160px 14px 14px 14px; }
.hero-main img { object-position: center 46%; }
.hero-main figcaption { position: absolute; left: 24px; bottom: 22px; padding: 10px 14px; color: #fff; background: rgba(24,23,20,.72); backdrop-filter: blur(8px); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.hero-detail { right: 0; width: 27%; border: 8px solid var(--paper); animation: detail-float 7s ease-in-out infinite; }
.hero-detail-top { top: 9%; height: 34%; border-radius: 70px 12px 12px 12px; }
.hero-detail-bottom { bottom: 5%; height: 38%; border-radius: 12px 12px 70px 12px; animation-delay: -3.5s; }
.hero-detail-top img { object-position: 58% center; }
.hero-detail-bottom img { object-position: 55% center; }
.material-note { position: absolute; right: 1%; top: 47%; width: 25%; padding: 10px 12px; border: 1px solid rgba(147,14,26,.11); border-radius: 999px; color: var(--wine); background: rgba(251,250,246,.82); backdrop-filter: blur(10px); font-family: var(--serif); font-size: clamp(15px, 1.4vw, 20px); line-height: 1.08; text-align: center; }

@keyframes detail-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.projects { position: relative; z-index: 1; padding: 110px clamp(28px, 5vw, 78px) 0; background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 0.8fr 1.3fr 1fr; align-items: end; gap: 38px; margin-bottom: 54px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { max-width: 560px; font-size: clamp(44px, 4.5vw, 68px); line-height: 1; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; }
.project-card { position: relative; min-height: 520px; overflow: hidden; border-radius: 28px; background: #ddd; box-shadow: 0 18px 48px rgba(35,28,22,.08); transition: transform 350ms ease, box-shadow 350ms ease; }
.project-card img { height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(.2,.8,.2,1); }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 28px 54px rgba(35,28,22,.14); }
.project-card:hover img { transform: scale(1.035); }
.project-wide img { object-position: 50% 52%; }
.project-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(14,12,10,.84)); }
.project-card div { position: absolute; z-index: 1; inset: auto 26px 25px; color: #fff; }
.project-card span { font-size: 10px; letter-spacing: .18em; opacity: .68; }
.project-card h3 { margin: 7px 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.project-card p { max-width: 310px; margin: 0; font-size: 12px; line-height: 1.5; opacity: .8; }
.detail-showcase { padding: 112px 0 0; overflow: hidden; background: var(--paper); }
.detail-heading { display: grid; grid-template-columns: 1.45fr .75fr; align-items: end; gap: 56px; padding: 0 clamp(28px, 5vw, 78px) 48px; }
.detail-heading h2 { font-size: clamp(46px, 5vw, 74px); line-height: .98; }
.detail-heading > p { max-width: 440px; margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.detail-marquee { width: 100%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.detail-track { display: flex; width: max-content; gap: 16px; animation: detail-scroll 58s linear infinite; }
.detail-group { display: flex; flex-shrink: 0; gap: 16px; padding-left: 16px; }
.detail-marquee:hover .detail-track, .detail-marquee:focus-within .detail-track { animation-play-state: paused; }
.detail-card { position: relative; flex: 0 0 290px; width: 290px; height: 410px; padding: 0; overflow: hidden; border: 0; border-radius: 28px; color: #fff; background: #ddd; box-shadow: 0 16px 34px rgba(35,28,22,.1); cursor: zoom-in; text-align: left; }
.detail-card-wide { flex-basis: 410px; width: 410px; }
.detail-card::after { content: ""; position: absolute; inset: 42% 0 0; background: linear-gradient(transparent, rgba(16,12,10,.78)); }
.detail-card img { height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.8,.2,1), filter 350ms ease; }
.detail-card:hover img, .detail-card:focus-visible img { transform: scale(1.08); filter: saturate(1.05) contrast(1.02); }
.detail-card span { position: absolute; z-index: 1; right: 22px; bottom: 22px; left: 22px; font-family: var(--serif); font-size: 24px; line-height: 1.05; }
.detail-card small { display: block; margin-bottom: 7px; font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .72; }
.detail-card:focus-visible { outline: 3px solid rgba(147,14,26,.45); outline-offset: 4px; }
.detail-hint { margin: 20px 0 0; color: var(--muted); font-size: 9px; letter-spacing: .15em; text-align: center; text-transform: uppercase; }

@keyframes detail-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 8px)); }
}

.zoom-dialog { width: min(920px, calc(100% - 32px)); max-width: none; padding: 0; overflow: visible; border: 0; border-radius: 32px; color: #fff; background: transparent; }
.zoom-dialog::backdrop { background: rgba(18,14,12,.82); backdrop-filter: blur(12px); }
.zoom-dialog figure { margin: 0; overflow: hidden; border: 8px solid rgba(255,255,255,.92); border-radius: 32px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.38); }
.zoom-dialog img { width: 100%; max-height: 78vh; object-fit: contain; background: #f2eee6; }
.zoom-dialog figcaption { padding: 16px 20px 18px; color: var(--ink); background: #fff; font-family: var(--serif); font-size: 22px; text-align: center; }
.zoom-close { position: absolute; z-index: 2; top: -16px; right: -16px; display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: var(--wine); cursor: pointer; }
.zoom-close svg { width: 20px; }
.closing-wrap {
  position: relative;
  z-index: 2;
  padding: 96px clamp(28px, 5vw, 78px) 72px;
  background: var(--paper);
}

.closing {
  position: relative;
  z-index: 1;
  clear: both;
  margin: 0;
  padding: 76px 28px 82px;
  overflow: hidden;
  border-radius: 44px;
  color: #fff;
  background: linear-gradient(135deg, #681018 0%, #8a121d 100%);
  box-shadow: 0 28px 70px rgba(75,11,18,.2);
  text-align: center;
}
.closing::before, .closing::after { content: ""; position: absolute; top: 50%; width: 18%; height: 1px; background: rgba(255,255,255,.24); }
.closing::before { left: 5%; }
.closing::after { right: 5%; }
.closing .eyebrow { color: #e7c6b8; }
.closing h2 { font-size: clamp(56px, 6vw, 90px); line-height: .98; }
.closing > p:not(.eyebrow) { max-width: 520px; margin: 24px auto 32px; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.7; }
.closing a { display: inline-flex; align-items: center; gap: 24px; padding: 11px 12px 11px 22px; border-radius: 999px; color: var(--wine-dark); background: #fff; box-shadow: 0 16px 38px rgba(45,5,10,.18); font-size: 13px; font-weight: 600; transition: transform 220ms ease, box-shadow 220ms ease; }
.closing a:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(45,5,10,.26); }
.closing a svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; color: #fff; background: var(--wine); transition: transform 220ms ease; }
.closing a:hover svg { transform: rotate(-10deg); }

footer { display: grid; grid-template-columns: 1fr auto auto; align-items: center; min-height: 108px; padding: 24px clamp(28px, 5vw, 78px); column-gap: clamp(30px, 6vw, 90px); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { display: grid; }
.footer-brand strong { font-family: var(--serif); font-size: 22px; font-weight: 400; letter-spacing: .12em; }
.footer-brand span { margin-top: 3px; color: var(--wine); font-size: 8px; letter-spacing: .17em; }
footer p { color: var(--muted); }
footer a { border-bottom: 1px solid var(--ink); }
.footer-credit { grid-column: 1 / -1; justify-self: end; margin: -12px 0 0; color: rgba(24,23,20,.42); font-size: 8px; letter-spacing: .08em; text-transform: lowercase; }
.footer-credit a { border: 0; color: inherit; transition: color 180ms ease; }
.footer-credit a:hover { color: var(--wine); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .page-shell { width: calc(100% - 20px); margin: 10px auto 30px; border-radius: 24px; }
  .hero { grid-template-columns: 1fr; padding-top: 72px; background: var(--paper); }
  .hero-copy { max-width: 680px; }
  .hero-gallery { min-height: 650px; }
  .section-heading { grid-template-columns: 1fr 1.5fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-wide { grid-column: 1 / -1; min-height: 600px; }
  .detail-heading { grid-template-columns: 1fr 1fr; }
  .closing::before, .closing::after { display: none; }
}

@media (max-width: 640px) {
  body { background: var(--paper); }
  .topbar { min-height: 78px; padding: 14px 20px; }
  .brand-mark { width: 28px; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 7px; }
  .top-contact { padding: 8px; font-size: 0; gap: 0; }
  .top-contact svg { width: 27px; height: 27px; padding: 6px; }
  .hero { min-height: auto; padding: 58px 20px 70px; gap: 54px; }
  h1 { font-size: clamp(58px, 19vw, 80px); }
  .intro { font-size: 15px; }
  .hero-gallery { min-height: 470px; margin-right: -20px; }
  .hero-main { inset: 0 14% 0 0; border-radius: 100px 10px 10px 10px; }
  .hero-detail { width: 25%; border-width: 5px; }
  .hero-detail-top { top: 7%; height: 34%; }
  .hero-detail-bottom { bottom: 3%; height: 37%; }
  .material-note { display: none; }
  .projects { padding: 80px 20px 0; }
  .section-heading { display: block; margin-bottom: 36px; }
  .section-heading h2 { font-size: 48px; }
  .section-heading > p:last-child { margin-top: 22px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-wide { grid-column: auto; min-height: 480px; }
  .detail-showcase { padding-top: 82px; }
  .detail-heading { display: block; padding: 0 20px 34px; }
  .detail-heading h2 { font-size: 48px; }
  .detail-heading > p { margin-top: 20px; }
  .detail-card { flex-basis: 240px; width: 240px; height: 340px; border-radius: 22px; }
  .detail-card-wide { flex-basis: 310px; width: 310px; }
  .detail-track { animation-duration: 48s; }
  .zoom-dialog { width: calc(100% - 24px); }
  .zoom-dialog figure { border-width: 5px; border-radius: 24px; }
  .zoom-close { top: -10px; right: -6px; }
  .closing-wrap { padding: 52px 14px 46px; }
  .closing { padding: 62px 20px 70px; border-radius: 30px; }
  .closing h2 { font-size: 56px; }
  footer { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 20px 36px; }
  footer p { margin: 0; }
  .footer-credit { margin-top: 2px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .detail-marquee { overflow-x: auto; mask-image: none; scrollbar-width: none; }
  .detail-track { animation: none; }
  .detail-group[aria-hidden="true"] { display: none; }
}
