:root {
  --ivory: #f7f5f0;
  --stone: #ece8e0;
  --ink: #171614;
  --muted: #6e6a63;
  --brown: #4b3329;
  --gold: #a2875c;
  --gold-light: #c4b09a;
  --line: rgba(23, 22, 20, .12);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --ease: cubic-bezier(.25,.1,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Header --- */
.header { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 48px; background: rgba(247,245,240,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: .24em; transition: opacity .3s var(--ease); }
.wordmark:hover { opacity: .7; }
.wordmark span { color: var(--gold); font-size: 10px; letter-spacing: .32em; }
.nav { display: flex; align-items: center; gap: 32px; justify-self: start; grid-column: 1; grid-row: 1; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease); }
.nav a:hover::after { width: 100%; }
.header > .wordmark { grid-column: 2; }
.header-actions { display: flex; gap: 24px; justify-self: end; grid-column: 3; }
.text-button, .icon-button { border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; transition: opacity .3s var(--ease); }
.text-button:hover { opacity: .6; }
.mobile-menu { display: none; }

/* --- Hero --- */
.hero { position: relative; height: min(80vw, 800px); min-height: 620px; overflow: hidden; background: #e8e3da; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-slide.active { opacity: 1; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: background .3s; }
.dot.active { background: #fff; }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(23,22,20,.08) 0%, rgba(23,22,20,.32) 100%); z-index: 1; }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(23,22,20,.08) 0%, rgba(23,22,20,.32) 100%); }
.hero-copy { position: absolute; top: 50%; left: 9%; max-width: 520px; transform: translateY(-50%); z-index: 1; }
.eyebrow { margin: 0 0 18px; color: var(--gold-light); font-size: 10px; font-weight: 600; letter-spacing: .24em; line-height: 1.5; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 600; line-height: .93; letter-spacing: -.03em; }
h1 { font-size: clamp(72px, 7.5vw, 112px); color: #fff; }
h2 { font-size: clamp(44px, 4.8vw, 74px); }
.hero-copy > p:not(.eyebrow) { max-width: 380px; margin: 28px 0 34px; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.75; }

/* --- Buttons --- */
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 28px; border: 1px solid var(--ink); cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; transition: all .35s var(--ease); }
.button.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.dark:hover { color: var(--ink); background: transparent; }
.button.light { color: #fff; background: transparent; border-color: rgba(255,255,255,.5); }
.button.light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* --- Sections --- */
.section { padding: 140px 6vw; }
.intro { text-align: center; padding-bottom: 80px; }
.intro-copy { max-width: 620px; margin: 28px auto 0; color: var(--muted); font-size: 15px; line-height: 1.85; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 48px; }

/* --- Stats Bar --- */
.stats-bar { padding: 50px 6vw; background: var(--ink); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 960px; margin: 0 auto; text-align: center; }
.stat { padding: 24px; }
.stat-number { display: block; font-family: var(--serif); font-size: clamp(40px, 4vw, 56px); color: var(--gold); line-height: 1; margin-bottom: 8px; }
.stat-label { display: block; color: rgba(255,255,255,.6); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* Scroll Reveal */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Capabilities Grid --- */
.capabilities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.cap-card { padding: 0 0 32px; background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); overflow: hidden; }
.cap-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.06); }
.cap-img { width: 100%; height: 180px; overflow: hidden; margin-bottom: 24px; background: #f4f2ed; }
.cap-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cap-card:hover .cap-img img { transform: scale(1.06); }
.cap-card h3 { margin: 0 20px 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; }
.cap-card p { margin: 0 20px 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* --- VS Comparison --- */
.vs-section { background: #f3f1eb; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 800px; margin: 0 auto; }
.vs .col { padding: 48px 42px; transition: transform .35s var(--ease); }
.vs .col:hover { transform: translateY(-3px); }
.vs .bad-col { background: #fdf8f6; border: 1px solid #e8d0cb; }
.vs .good-col { background: #f7faf7; border: 1px solid #c8ddce; }
.vs h4 { margin: 0 0 24px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.vs .bad-col h4 { color: #a0493a; }
.vs .good-col h4 { color: #3a6b4a; }
.vs ul { margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.9; }
.vs li { padding: 6px 0; transition: transform .2s var(--ease); }
.vs li:hover { transform: translateX(4px); }
.vs li::before { margin-right: 12px; font-weight: 700; }
.bad-col li::before { content: '✗'; color: #c45; }
.good-col li::before { content: '✓'; color: #3a8; }

/* --- Process --- */
.process-section { background: #fff; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.step-card { text-align: center; padding: 44px 24px 36px; background: var(--ivory); border: 1px solid var(--line); transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease); }
.step-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.06); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--gold); font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 22px; transition: transform .3s var(--ease); }
.step-card:hover .step-num { transform: scale(1.08); }
.step-card h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.step-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* --- Samples & Pricing --- */
.samples-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 800px; margin: 0 auto; }
.sample-card { padding: 52px 42px; background: #fff; border: 1px solid var(--line); text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.sample-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.06); }
.sample-icon { font-size: 44px; display: block; margin-bottom: 18px; }
.sample-card h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.sample-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }

/* --- Craft / Our Approach --- */
.craft { text-align: center; }
.craft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1080px; margin: 72px auto 0; text-align: left; }
.craft-grid span { color: var(--gold); font-family: var(--serif); font-size: 36px; }
.craft-grid h3 { margin: 20px 0 14px; font-family: var(--serif); font-size: 32px; }
.craft-grid p { margin: 0; color: var(--muted); line-height: 1.85; }

/* --- Contact CTA --- */
.wholesale { padding: 120px 6vw; color: #fff; background: var(--brown); text-align: center; }
.wholesale .eyebrow { color: #d7c8b0; }
.wholesale p:not(.eyebrow) { max-width: 640px; margin: 24px auto 36px; color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.85; }

/* --- Footer --- */
.footer { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 48px; padding: 80px 6vw; border-top: 1px solid var(--line); background: #f1eee8; }
.footer h3 { margin: 0 0 20px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.footer p, .footer a { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; transition: color .2s var(--ease); }
.footer a:hover { color: var(--ink); }
.footer .wordmark { margin-bottom: 18px; color: var(--ink); font-size: 15px; }
.newsletter { display: flex; margin-top: 18px; border-bottom: 1px solid var(--ink); }
.newsletter input { width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; }
.newsletter button { border: 0; background: transparent; cursor: pointer; font-size: 20px; transition: transform .2s var(--ease); }
.newsletter button:hover { transform: translateX(3px); }

/* --- Notice toast --- */
.notice { position: fixed; right: 24px; bottom: 24px; z-index: 40; max-width: 380px; padding: 16px 20px; color: #fff; background: var(--brown); opacity: 0; transform: translateY(12px); transition: .3s var(--ease); pointer-events: none; font-size: 12px; line-height: 1.6; }
.notice.show { opacity: 1; transform: translateY(0); }

/* --- Madewell-style Product Grid --- */
.portfolio { background: #fff; padding: 0; }
.portfolio .section-heading, .portfolio .intro-copy { padding: 0 6vw; }
.portfolio .section-heading { padding-top: 80px; }
.madewell-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; width: 100%;
}
.mw-card { cursor: pointer; }
.mw-img-wrap {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 4; background: #f2f0ed;
}
.mw-img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .5s var(--ease);
}
.mw-product { z-index: 1; }
.mw-model { z-index: 2; opacity: 0; }
.mw-card:hover .mw-model { opacity: 1; }
.mw-name { margin: 12px 16px 4px; font-family: var(--serif); font-size: 16px; font-weight: 600; }
.mw-meta { margin: 0 16px 16px; color: var(--muted); font-size: 12px; }

/* --- Gallery Lightbox --- */
.gallery-lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: #fff; overflow-y: auto;
  display: none; opacity: 0;
  transition: opacity .3s var(--ease);
}
.gallery-lightbox.open { display: block; opacity: 1; }
.gallery-lightbox-header {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: 38px 1fr 38px; align-items: center;
  padding: 18px 6vw; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(8px);
}
.gallery-lightbox-header h2 { font-size: 28px; margin: 0; text-align: center; font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; }
.gallery-close {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--serif); font-size: 38px; line-height: .7; color: var(--ink);
  transition: opacity .2s;
}
.gallery-close:hover { opacity: .5; }
#gallery-lightbox-grid.madewell-grid { gap: 12px; }
#gallery-lightbox-grid .mw-name { display: block; margin: 36px 16px 12px; }
#gallery-lightbox-grid .mw-meta { display: block; margin: 0 16px 48px; }

/* --- Channel Toggle --- */
.channel-toggle {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 36px; border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; max-width: 420px; margin-left: auto; margin-right: auto;
}
.toggle-label { padding: 12px 16px; font-size: 12px; color: var(--muted); letter-spacing: .08em; background: var(--ivory); }
.channel-option {
  flex: 1; text-align: center; padding: 12px 16px; cursor: pointer;
  font-size: 13px; font-weight: 500; background: #fff; color: var(--muted);
  transition: all .25s var(--ease); border-left: 1px solid var(--line);
}
.channel-option input { display: none; }
.channel-option.active { background: var(--ink); color: #fff; }

/* --- Inquiry Form --- */
.inquiry { background: #fff; }
.inquiry-form { max-width: 680px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 14px 16px; border: 1px solid var(--line); background: var(--ivory);
  font-size: 14px; color: var(--ink); outline: none; transition: border-color .3s var(--ease);
  font-family: var(--sans); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #b8b4ad; }
.hidden { display: none; }
.inquiry-form .button { margin-top: 8px; }
.form-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.form-hint { margin-top: 6px; color: var(--muted); font-size: 11px; font-style: italic; }
.form-group input[type="file"] { padding: 10px 14px; font-size: 12px; }

/* --- Logo Design Guide --- */
.logo-guide { background: #fff; }
.logo-sections { max-width: 960px; margin: 0 auto; }
.logo-block { margin-bottom: 72px; }
.logo-block h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--gold-light); }
.logo-options, .emboss-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.logo-opt, .emboss-card { padding: 36px 28px; background: var(--ivory); border: 1px solid var(--line); text-align: center; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.logo-opt:hover, .emboss-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.04); }
.logo-opt span, .emboss-card span { font-size: 38px; display: block; margin-bottom: 16px; }
.logo-opt h4, .emboss-card h4 { margin: 0 0 12px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.logo-opt p, .emboss-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }

/* --- File Format Table --- */
.file-table { width: 100%; border-collapse: collapse; background: var(--ivory); overflow: hidden; border: 1px solid var(--line); }
.file-table th { padding: 16px 20px; background: var(--ink); color: #fff; text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.file-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.7; transition: background .2s var(--ease); }
.file-table tbody tr:hover td { background: rgba(162,135,92,.04); }
.file-table tr:last-child td { border-bottom: none; }
.file-note { margin-top: 18px; color: var(--muted); font-size: 13px; font-style: italic; }

/* --- Case Studies --- */
.clients { background: #f9f8f5; }
.clients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.case-card { background: #fff; padding: 40px 36px; border: 1px solid var(--line); }
.case-num { font-family: var(--serif); font-size: 11px; color: var(--gold); letter-spacing: .2em; margin-bottom: 12px; text-transform: uppercase; }
.case-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 18px; line-height: 1.2; }
.case-story p { margin: 0 0 12px; color: var(--ink); font-size: 13px; line-height: 1.8; }
.case-specs { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }

/* --- FAQ --- */
.faq { background: #f9f8f5; }
.faq-grid { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary { padding: 24px 8px; cursor: pointer; font-family: var(--serif); font-size: 21px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; transition: color .2s var(--ease); }
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--sans); font-size: 24px; font-weight: 300; color: var(--gold); transition: transform .25s var(--ease); }
.faq-item[open] summary { color: var(--ink); }
.faq-item[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-item p { margin: 0 8px 28px; color: var(--muted); font-size: 14px; line-height: 1.85; max-width: 680px; }
.faq-item p:last-child, .faq-item .faq-shipping p:last-child { margin-bottom: 28px; }
.faq-shipping { margin: 0 8px 0; }
.faq-shipping p { margin-bottom: 10px !important; }
.faq-shipping ol, .faq-shipping ul { margin: 6px 0 22px; padding-left: 22px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.faq-shipping li { margin-bottom: 5px; }
.cost-table { width: 100%; margin: 8px 0 18px; border-collapse: collapse; font-size: 13px; }
.cost-table td { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); transition: background .2s var(--ease); }
.cost-table tr:hover td { background: rgba(162,135,92,.03); }
.cost-table td:last-child { text-align: right; font-weight: 500; color: var(--ink); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .header { grid-template-columns: 35px 1fr auto; padding: 17px 20px; }
  .header > .wordmark { grid-column: 2; justify-self: center; }
  .nav { display: none; }
  .mobile-menu { display: block; grid-column: 1; grid-row: 1; width: 24px; padding: 0; }
  .mobile-menu span { display: block; height: 1px; margin: 6px 0; background: var(--ink); }
  .header-actions { grid-column: 3; }
  .hero { min-height: 680px; }
  .hero-slide { object-position: 62% 55%; }
  .hero::after { background: linear-gradient(180deg, rgba(23,22,20,.04) 40%, rgba(23,22,20,.45) 100%); }
  .hero-copy { top: auto; right: 20px; bottom: 48px; left: 20px; max-width: 100%; transform: none; }
  h1 { font-size: 60px; }
  .hero-copy > p:not(.eyebrow) { color: rgba(255,255,255,.85); }
  .section { padding: 100px 22px; }
  h2 { font-size: 44px; }
  .intro { padding-bottom: 40px; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cap-card { padding: 0 0 24px; }
  .cap-img { height: 140px; }
  .vs { grid-template-columns: 1fr; gap: 20px; }
  .vs .col { padding: 36px 28px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .step-card { padding: 32px 18px 28px; }
  .samples-grid { grid-template-columns: 1fr; gap: 20px; }
  .sample-card { padding: 40px 30px; }
  .craft-grid { display: block; margin-top: 48px; text-align: center; }
  .craft-grid div + div { margin-top: 44px; }
  .footer { grid-template-columns: repeat(2, 1fr); padding: 60px 24px; gap: 36px; }
  .footer > div:first-child, .footer > div:last-child { grid-column: 1 / -1; }
  .logo-block { margin-bottom: 48px; }
  .logo-block h3 { font-size: 26px; }
  .logo-options, .emboss-options { grid-template-columns: 1fr; }
  .file-table { font-size: 12px; }
  .file-table th, .file-table td { padding: 12px 14px; }
  .stats-bar { padding: 36px 20px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-number { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; gap: 14px; }
  .channel-toggle { max-width: 100%; }
  .toggle-label { display: none; }
  .gallery-lightbox-header { padding: 14px 20px; }
  #gallery-lightbox-grid.madewell-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .madewell-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .portfolio .section-heading, .portfolio .intro-copy { padding: 0 20px; }
  .clients-grid { grid-template-columns: 1fr; }
  .case-card { padding: 32px 24px; }
}
