:root {
  --plum: #321c3d;
  --plum-deep: #201026;
  --coral: #ef593d;
  --amber: #f6a91d;
  --sky: #43a6c8;
  --ivory: #f7f1e8;
  --cream: #fffaf3;
  --ink: #241d25;
  --muted: #786d78;
  --line: rgba(50, 28, 61, 0.18);
  --display: "Gloock", Georgia, serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 200; left: 1rem; top: -5rem; background: white; color: black; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: 90px; padding: 0 clamp(1.2rem, 4vw, 4.5rem); display: flex; align-items: center; justify-content: space-between; color: white; transition: .35s ease; }
.site-header.scrolled { height: 72px; background: rgba(32,16,38,.92); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.brand { display: inline-flex; align-items: center; gap: .85rem; font-family: var(--display); font-size: 1.08rem; letter-spacing: .02em; }
.site-header .brand { position: relative; z-index: 2; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.55); }
.brand strong { font-weight: 400; font-size: 1.28em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3rem); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; }
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: white; transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.nav-cta { border: 1px solid rgba(255,255,255,.75); border-radius: 999px; padding: .8rem 1.2rem; transition: .25s; }
.nav-cta:hover { background: white; color: var(--plum); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 8px; }
.menu-toggle span { display: block; height: 1px; background: white; margin: 7px 0; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: white; overflow: hidden; }
.hero-image, .hero-shade, .hero-grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center; animation: heroZoom 18s ease-out both; }
.hero-shade { background: linear-gradient(90deg, rgba(25,9,29,.86) 0%, rgba(31,14,34,.56) 38%, rgba(31,14,34,.06) 73%), linear-gradient(0deg, rgba(18,8,21,.45), transparent 48%); animation: heroShadeIn 1.2s ease-out both; }
.hero-grain { opacity: .12; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%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)' opacity='.7'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.hero-halo { position: absolute; z-index: 1; top: 14%; right: -10%; width: min(60vw, 850px); aspect-ratio: 1; pointer-events: none; opacity: .65; animation: heroHaloIn 1.7s ease-out both, heroHaloDrift 20s ease-in-out 1.7s infinite alternate; }
.hero-halo span { position: absolute; inset: 9%; border: 1px solid rgba(255,192,83,.44); border-radius: 48% 52% 62% 38%; transform: rotate(28deg); }
.hero-halo span:last-child { inset: 21%; border-color: rgba(255,255,255,.32); border-radius: 62% 38% 45% 55%; transform: rotate(-24deg); }
.hero-content { position: relative; z-index: 2; width: min(760px, 88vw); margin-left: clamp(1.2rem, 8vw, 9rem); padding-top: 5rem; }
.eyebrow { margin: 0 0 1.4rem; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.ink { color: var(--coral); }
.hero h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.04em; }
.hero h1 { margin: 0; font-size: clamp(4.2rem, 9.5vw, 9.3rem); line-height: .82; }
.hero h1 em, .work h2 em, .contact h2 em { color: #ffc053; font-weight: 400; }
.hero h1.reveal.visible { animation: heroTitleIn 1s cubic-bezier(.18,.72,.2,1) both; }
.hero h1 em { position: relative; display: inline-block; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 2px; background: linear-gradient(90deg,var(--coral),var(--amber)); transform: scaleX(0); transform-origin: left; animation: heroUnderline .9s 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy { max-width: 570px; margin: 2rem 0; font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.7; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; align-items: center; gap: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; border: 0; cursor: pointer; padding: 1rem 1.4rem; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 600; transition: transform .25s, background .25s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--coral); color: white; }
.text-link { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; border-bottom: 1px solid rgba(255,255,255,.5); padding-bottom: .4rem; }
.hero-note { position: absolute; z-index: 2; right: clamp(1.2rem,4vw,4.5rem); bottom: 2.5rem; display: flex; align-items: center; gap: 1rem; font-size: .62rem; text-transform: uppercase; letter-spacing: .13em; }
.hero-note-line { width: 42px; height: 1px; background: rgba(255,255,255,.55); transform-origin: left; animation: heroUnderline 1.1s 1.1s both; }

.section-pad { padding: clamp(5rem, 10vw, 9rem) clamp(1.2rem, 7vw, 8rem); }
.intro { display: grid; grid-template-columns: 70px minmax(0, 1.7fr) minmax(250px, .7fr); gap: clamp(2rem, 5vw, 6rem); align-items: end; }
.section-number { color: var(--coral); font-size: .7rem; writing-mode: vertical-rl; }
.intro h2, .section-heading h2 { font-size: clamp(3rem, 6vw, 6.3rem); line-height: .96; margin: 0; }
.intro-body { font-size: 1rem; line-height: 1.8; color: var(--muted); margin: 0 0 .5rem; }

.services { background: var(--cream); display: grid; grid-template-columns: minmax(260px, .8fr) minmax(400px, 1.25fr); gap: clamp(3rem, 9vw, 10rem); }
.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 42px 1fr 1.35fr; gap: 1.2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.service-card > span { color: var(--coral); font-size: .7rem; }
.service-card h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 400; margin: -.35rem 0 0; }
.service-card p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }

.work { background: var(--plum-deep); color: white; padding-bottom: clamp(5rem, 8vw, 8rem); }
.work-intro { display: flex; justify-content: space-between; align-items: end; gap: 3rem; }
.work-intro h2 { font-size: clamp(3.6rem, 7vw, 7.4rem); line-height: .92; margin: 0; }
.work-intro > p { max-width: 350px; color: rgba(255,255,255,.62); line-height: 1.8; }
.gallery { display: grid; grid-template-columns: 1.45fr .8fr; gap: clamp(1rem,3vw,2.5rem); padding: 0 clamp(1.2rem, 7vw, 8rem); align-items: end; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; object-fit: cover; filter: saturate(.9); transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; }
.gallery-main img { aspect-ratio: 4 / 3; }
.gallery-side img { aspect-ratio: 3 / 4; }
.gallery figure { overflow: hidden; }
.gallery figure:hover img { transform: scale(1.025); filter: saturate(1.05); }
.gallery figcaption { display: flex; justify-content: space-between; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; padding-top: .9rem; color: rgba(255,255,255,.65); }
.gallery figcaption span:last-child { color: #ffc053; }

.process { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(400px,1.1fr); gap: clamp(4rem,10vw,10rem); }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.process-list li { display: grid; grid-template-columns: 60px 1fr; border-bottom: 1px solid var(--line); padding: 2rem 0; }
.process-list > li > span { color: var(--coral); font-size: .72rem; }
.process-list h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 400; margin: -.35rem 0 .5rem; }
.process-list p { margin: 0; color: var(--muted); line-height: 1.7; }

.estimate { background: var(--cream); display: grid; grid-template-columns: minmax(260px, .75fr) minmax(430px, 1.25fr); gap: clamp(3rem, 8vw, 8rem); }
.estimate-heading h2 { font-size: clamp(3.2rem, 5.5vw, 6rem); line-height: .95; margin: 0 0 2rem; }
.estimate-heading > p:last-child { max-width: 410px; color: var(--muted); line-height: 1.8; }
.estimate-panel { background: var(--ivory); padding: clamp(1.5rem, 3vw, 3rem); box-shadow: 0 18px 60px rgba(50,28,61,.07); }
.estimate-panel fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.estimate-panel legend { font-family: var(--display); font-size: 1.5rem; padding: 0 0 .6rem; }
.estimate-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding: .75rem 0; font-size: .9rem; }
.estimate-row small { display: block; margin-top: .25rem; color: var(--muted); font-size: .74rem; }
.estimate-row input { flex: 0 0 68px; width: 68px; padding: .45rem .2rem .45rem .5rem; border: 1px solid var(--line); background: var(--cream); color: var(--ink); text-align: center; }
.estimate-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 2px solid var(--plum); padding-top: 1.3rem; font-size: .85rem; }
.estimate-total strong { font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; white-space: nowrap; }
.estimate-note { color: var(--muted); font-size: .78rem; line-height: 1.6; margin: 1rem 0; }
.estimate-panel .button:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.contact { background: var(--plum); color: white; display: grid; grid-template-columns: minmax(300px,.95fr) minmax(330px,.75fr); gap: clamp(4rem,12vw,12rem); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 45% 55% 62% 38%; background: linear-gradient(135deg,var(--coral),var(--amber),var(--sky),#7a3d84); filter: blur(0); opacity: .13; right: -240px; top: -210px; transform: rotate(20deg); }
.contact-copy, .contact-form { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(4rem,7vw,7rem); line-height: .9; margin: 0 0 2rem; }
.contact-copy > p:not(.eyebrow) { color: rgba(255,255,255,.66); line-height: 1.8; max-width: 500px; }
.contact-copy > a { display: block; width: max-content; margin-top: .7rem; border-bottom: 1px solid rgba(255,255,255,.35); font-size: .9rem; }
.contact-form { display: grid; gap: 1.2rem; }
.contact-form label { display: grid; gap: .55rem; text-transform: uppercase; letter-spacing: .12em; font-size: .66rem; color: rgba(255,255,255,.7); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.32); border-radius: 0; padding: .7rem 0; background: transparent; color: white; outline: none; resize: vertical; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--amber); }
.contact-form input::-webkit-calendar-picker-indicator { filter: invert(1); }
.button-light { margin-top: .6rem; justify-self: start; background: var(--ivory); color: var(--plum); }

.footer { background: #180c1d; color: rgba(255,255,255,.65); padding: 2.2rem clamp(1.2rem, 7vw, 8rem); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; font-size: .72rem; }
.footer p:nth-child(2) { text-align: center; }
.footer p:last-child { text-align: right; }
.footer-brand { color: white; }
.footer-brand img { width: 42px; height: 42px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.65,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes heroZoom { from { transform: scale(1.1) translateX(-1%); } to { transform: scale(1.02) translateX(0); } }
@keyframes heroShadeIn { from { opacity: .6; } to { opacity: 1; } }
@keyframes heroTitleIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroUnderline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes heroHaloIn { from { opacity: 0; transform: translateY(30px) rotate(-8deg); } to { opacity: .65; transform: translateY(0) rotate(0); } }
@keyframes heroHaloDrift { from { transform: translateY(0) rotate(0); } to { transform: translateY(-24px) rotate(8deg); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .site-header.scrolled { backdrop-filter: none; }
  .menu-toggle { display: block; position: relative; z-index: 2; }
  .site-nav { position: fixed; inset: 0; min-height: 100dvh; background: var(--plum-deep); flex-direction: column; justify-content: center; font-size: 1rem; transform: translateX(100%); transition: transform .35s ease; }
  .site-nav.open { transform: translateX(0); }
  .site-nav .nav-cta { margin-top: 1rem; }
  .intro { grid-template-columns: 30px 1fr; }
  .intro-body { grid-column: 2; }
  .services, .process, .estimate, .contact { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 36px 1fr; }
  .service-card p { grid-column: 2; }
  .work-intro { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer { grid-template-columns: 1fr; text-align: center; gap: 1.3rem; }
  .footer-brand { justify-content: center; }
  .footer p:nth-child(2), .footer p:last-child { text-align: center; margin: 0; }
}
@media (max-width: 600px) {
  .site-header { height: 74px; }
  .brand img { width: 42px; height: 42px; }
  .hero-content { margin-left: 1.2rem; padding-right: 1.2rem; }
  .hero-halo { top: 23%; right: -54%; width: 110vw; opacity: .35; }
  .hero h1 { font-size: clamp(3.8rem, 18vw, 5.8rem); }
  .hero-copy { font-size: .96rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.3rem; }
  .hero-note { display: none; }
  .section-pad { padding: 5rem 1.2rem; }
  .intro { gap: 1rem; }
  .intro h2, .section-heading h2 { font-size: 3rem; }
  .gallery { grid-template-columns: 1fr; padding: 0 1.2rem; }
  .gallery-side { width: 78%; margin-left: auto !important; }
  .contact h2 { font-size: clamp(2.95rem, 14vw, 3.5rem); }
  .estimate-panel { padding: 1.2rem; }
  .estimate-total { align-items: start; flex-direction: column; gap: .2rem; }
}
