:root {
  --ink: #0b1016;
  --ink-2: #121a23;
  --paper: #f4f0e8;
  --paper-2: #e8e1d6;
  --copper: #e78945;
  --copper-dark: #b95b27;
  --sky: #49b7cf;
  --muted: #8c98a5;
  --line: rgba(255,255,255,.13);
  --shadow: 0 24px 70px rgba(0,0,0,.28);
  --radius: 24px;
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .07; z-index: 20; 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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
em { color: var(--copper); font-style: normal; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 999px; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 78px; padding: 0 clamp(1rem,4vw,4rem); display: flex; align-items: center; justify-content: space-between; transition: background .25s, border .25s; }
.site-header.scrolled { background: rgba(11,16,22,.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: .98rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.brand b { color: var(--copper); }
.brand-emblem { display: inline-block; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: url("assets/logo-emblem.png") center / contain no-repeat; filter: drop-shadow(0 2px 5px rgba(0,0,0,.35)); }
.site-nav { display: flex; align-items: center; gap: 2rem; font-size: .88rem; font-weight: 650; }
.site-nav a { color: #cbd2d8; transition: color .2s; }
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; }
.site-nav .nav-cta { padding: .65rem 1rem; border: 1px solid var(--copper); color: var(--paper); }
.menu-toggle { display: none; color: var(--paper); background: transparent; border: 1px solid var(--line); padding: .45rem .75rem; }

.hero { min-height: 780px; padding: 150px clamp(1rem,6vw,7rem) 90px; display: grid; grid-template-columns: minmax(0,1fr) minmax(430px,.85fr); align-items: center; gap: clamp(2rem,6vw,7rem); overflow: hidden; position: relative; }
.hero::after { content: "FOUNDRY"; position: absolute; z-index: -1; left: 2vw; bottom: -8vw; font: 22vw/.7 var(--display); color: rgba(255,255,255,.025); letter-spacing: -.04em; }
.eyebrow { margin: 0 0 1rem; color: var(--sky); font-size: .77rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.hero h1, .section-heading h2, .custom-copy h2, .contact-intro h2 { margin: 0; font: 400 clamp(4rem,8vw,8.4rem)/.84 var(--display); letter-spacing: -.025em; text-transform: uppercase; }
.hero h1 { max-width: 790px; }
.hero-lede { max-width: 650px; margin: 2rem 0 2.1rem; color: #b8c1c9; font-size: clamp(1.08rem,1.5vw,1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border: 1px solid transparent; padding: .85rem 1.35rem; background: transparent; color: inherit; cursor: pointer; font-weight: 800; letter-spacing: .025em; transition: transform .2s, background .2s, border .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .filter-button:focus-visible, .product-card:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.button-primary { background: var(--copper); color: #15100c; }
.button-primary:hover { background: #f19a5c; }
.button-ghost { border-color: var(--line); }
.button-ghost:hover, .button-outline:hover { border-color: var(--sky); }
.button-outline { border-color: rgba(11,16,22,.25); color: var(--ink); }
.trust-row { display: flex; gap: clamp(1rem,3vw,2.6rem); list-style: none; margin: 3.4rem 0 0; padding: 0; }
.trust-row li { display: grid; }
.trust-row strong { font-size: .98rem; color: #fff; }
.trust-row span { color: var(--muted); font-size: .75rem; }

.hero-gallery { position: relative; min-height: 570px; }
.hero-card { position: absolute; overflow: hidden; margin: 0; background: var(--ink-2); box-shadow: var(--shadow); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.hero-card:hover img { transform: scale(1.04); }
.hero-card-main { inset: 3% 8% 8% 0; border-radius: 46% 46% 20px 20px; }
.hero-card-main::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 -140px 90px rgba(5,8,10,.75); }
.hero-card-main figcaption { position: absolute; z-index: 2; left: 2rem; right: 2rem; bottom: 1.7rem; display: grid; }
.hero-card-main figcaption span { color: var(--sky); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.hero-card-main figcaption strong { font: 400 1.8rem/1.1 var(--display); text-transform: uppercase; }
.hero-card-small { width: 34%; height: 30%; right: 0; border: 7px solid var(--ink); }
.hero-card-top { top: 0; }
.hero-card-bottom { bottom: 0; }
.hero-stamp { position: absolute; z-index: 3; right: 25%; top: 40%; width: 94px; height: 94px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--copper); color: var(--ink); border: 5px solid var(--ink); font: 400 1.7rem/.8 var(--display); transform: rotate(-8deg); }
.hero-stamp small { font: 800 .65rem/1 var(--body); letter-spacing: .2em; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--sky); color: var(--ink); }
.ticker div { display: flex; width: max-content; align-items: center; gap: 2.5rem; padding: .8rem 1.5rem; font: 400 1.05rem var(--display); letter-spacing: .08em; text-transform: uppercase; animation: crawl 28s linear infinite; }
.ticker i { font-style: normal; }
@keyframes crawl { to { transform: translateX(-18%); } }

.section { padding: clamp(5rem,9vw,9rem) clamp(1rem,6vw,7rem); }
.shop-section { background: var(--paper); color: var(--ink); }
.section-heading { display: grid; grid-template-columns: 1.5fr .6fr; gap: 3rem; align-items: end; margin-bottom: 3.4rem; }
.section-heading h2, .custom-copy h2, .contact-intro h2 { font-size: clamp(3.2rem,6vw,6.5rem); }
.section-heading > p { margin: 0 0 .5rem; color: #59616a; font-size: 1.05rem; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1rem; border-block: 1px solid rgba(11,16,22,.15); }
.category-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-button { border: 0; padding: .55rem .85rem; background: transparent; color: #5c646c; cursor: pointer; font-size: .88rem; font-weight: 800; }
.filter-button.active { background: var(--ink); color: var(--paper); }
.search-field { min-width: 240px; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid #9aa0a5; padding: .5rem .15rem; }
.search-field svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.1rem; margin-top: 2.2rem; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.product-media { position: relative; aspect-ratio: .88; overflow: hidden; background: var(--paper-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-media img { transform: scale(1.055); }
.product-badge { position: absolute; top: .75rem; left: .75rem; background: rgba(244,240,232,.92); color: var(--ink); padding: .35rem .55rem; font-size: .67rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.product-open { position: absolute; right: .75rem; bottom: .75rem; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 1.35rem; transition: background .2s, color .2s; }
.product-card:hover .product-open { background: var(--copper); color: var(--ink); }
.product-info { display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding: 1rem .1rem 1.25rem; }
.product-info h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.product-info p { grid-column: 1 / -1; margin: -.35rem 0 0; color: #687078; font-size: .82rem; line-height: 1.45; }
.product-price { font-weight: 850; color: var(--copper-dark); }
.empty-state { grid-column: 1/-1; padding: 5rem 1rem; text-align: center; color: #626971; }
.catalog-footer { display: grid; justify-items: center; gap: .8rem; margin-top: 2rem; }
.catalog-footer p { margin: 0; color: #6c737a; font-size: .8rem; }

.custom-section { display: grid; grid-template-columns: 1fr 1fr; background: var(--ink-2); }
.custom-image { position: relative; min-height: 760px; }
.custom-image img { width: 100%; height: 100%; object-fit: cover; }
.image-note { position: absolute; left: 2rem; bottom: 2rem; display: grid; padding: 1rem 1.2rem; background: var(--paper); color: var(--ink); }
.image-note span { color: #697078; font-size: .78rem; }
.custom-copy { padding: clamp(4rem,7vw,8rem); align-self: center; }
.custom-copy > p:not(.eyebrow) { max-width: 580px; color: #aeb7bf; font-size: 1.08rem; }
.service-list { margin: 2.6rem 0 2.8rem; border-top: 1px solid var(--line); }
.service-list article { display: grid; grid-template-columns: 54px 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.service-list article > span { color: var(--copper); font: 400 1.3rem var(--display); }
.service-list h3 { margin: 0 0 .25rem; font-size: 1rem; }
.service-list p { margin: 0; color: var(--muted); font-size: .88rem; }

.process-section { background: var(--paper); color: var(--ink); }
.process-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.process-grid li { min-height: 300px; padding: 1.8rem; background: #e9e2d7; display: flex; flex-direction: column; }
.process-grid li > span { color: var(--copper-dark); font: 400 3rem var(--display); }
.process-grid h3 { margin: auto 0 .5rem; font: 400 1.8rem var(--display); text-transform: uppercase; }
.process-grid p { margin: 0; color: #5f676e; }

.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem,8vw,9rem); padding: clamp(5rem,10vw,10rem) clamp(1rem,8vw,10rem); background: var(--ink); }
.contact-intro > p:not(.eyebrow) { max-width: 550px; color: #aeb7bf; }
.direct-contact { display: grid; gap: 1rem; margin-top: 3rem; }
.direct-contact a, .direct-contact div { display: grid; padding-bottom: .9rem; border-bottom: 1px solid var(--line); }
.direct-contact small { color: var(--sky); text-transform: uppercase; letter-spacing: .13em; font-size: .67rem; }
.direct-contact strong { font-size: clamp(.9rem,2vw,1.18rem); overflow-wrap: anywhere; }
.contact-form { align-self: start; padding: clamp(1.3rem,4vw,2.4rem); background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: grid; gap: .4rem; margin-bottom: 1rem; }
.contact-form label span { font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid #c7c1b7; border-radius: 0; padding: .85rem; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(73,183,207,.35); border-color: var(--sky); }
.contact-form textarea { resize: vertical; }
.form-note { margin: .75rem 0 0; color: #6b737b; font-size: .76rem; }

.site-footer { min-height: 120px; padding: 2rem clamp(1rem,6vw,7rem); display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

.product-dialog { width: min(980px,calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.65); }
.product-dialog::backdrop { background: rgba(2,5,8,.78); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; z-index: 3; top: .75rem; right: .75rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(11,16,22,.88); color: white; cursor: pointer; font-size: 1.6rem; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; }
.dialog-image { min-height: 460px; background: var(--paper-2); }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-body { padding: clamp(2rem,5vw,4rem); align-self: center; }
.dialog-body .eyebrow { color: var(--copper-dark); }
.dialog-body h2 { margin: 0; font: 400 clamp(2.4rem,4.5vw,4rem)/.92 var(--display); text-transform: uppercase; }
.dialog-price { display: block; margin: 1.2rem 0; color: var(--copper-dark); font-size: 1.55rem; font-weight: 900; }
.dialog-body > p { color: #565e65; }
.detail-list { margin: 1.2rem 0 2rem; padding: 1.2rem 0; list-style: none; border-block: 1px solid #cbc5bc; }
.detail-list li { display: flex; gap: .5rem; align-items: center; margin: .35rem 0; font-size: .9rem; }
.detail-list li::before { content: ""; width: 6px; height: 6px; background: var(--sky); transform: rotate(45deg); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; }
  .hero-copy { max-width: 850px; }
  .hero-gallery { min-height: 620px; max-width: 720px; width: 100%; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .site-nav { gap: 1rem; }
}

@media (max-width: 800px) {
  .site-header { height: 68px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; left: 0; right: 0; display: none; padding: 1rem; background: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .65rem; }
  .hero { min-height: auto; padding-inline: 1.25rem; }
  .hero h1 { font-size: clamp(3.7rem,15vw,6.4rem); }
  .hero-gallery { min-height: 480px; }
  .trust-row { justify-content: space-between; gap: .5rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1rem; }
  .section-heading > p { max-width: 580px; }
  .catalog-tools { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .custom-section, .contact-section { grid-template-columns: 1fr; }
  .custom-image { min-height: 560px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: 220px; }
  .site-footer { grid-template-columns: 1fr; gap: .6rem; }
  .dialog-grid { grid-template-columns: 1fr; }
  .dialog-image { min-height: 330px; max-height: 45vh; }
}

@media (max-width: 520px) {
  .brand { font-size: .78rem; }
  .brand-emblem { width: 34px; height: 34px; }
  .hero { padding-top: 115px; padding-bottom: 60px; }
  .hero-actions .button { width: 100%; }
  .hero-gallery { min-height: 370px; }
  .hero-card-main { inset: 0 0 0 0; }
  .hero-card-small, .hero-stamp { display: none; }
  .hero-card-main figcaption { left: 1.2rem; bottom: 1.1rem; }
  .trust-row { display: grid; grid-template-columns: repeat(3,1fr); }
  .trust-row span { line-height: 1.25; }
  .section { padding-inline: 1rem; }
  .product-grid { gap: .7rem; }
  .product-info { grid-template-columns: 1fr; gap: .3rem; }
  .product-info p { display: none; }
  .product-price { grid-row: 2; }
  .product-badge { font-size: .58rem; }
  .custom-image { min-height: 420px; }
  .custom-copy { padding: 4rem 1.25rem; }
  .contact-section { padding-inline: 1rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .dialog-body { padding: 2rem 1.2rem; }
  .dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
