/* VIHI Design — Phase 13 corporate showcase design system */
:root {
  --ink: #17150f;
  --ink-soft: #3d3a32;
  --paper: #faf8f4;
  --paper-deep: #f1ede4;
  --line: #e5e0d5;
  --accent: #b46a2e;
  --accent-deep: #8f4f1f;
  --muted: #6f6a5e;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --container: 1200px;
  --radius: 10px;
  --shadow-soft: 0 1px 2px rgba(23,21,15,.05), 0 8px 28px rgba(23,21,15,.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.92);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; letter-spacing: .02em; font-size: 17px; }
.brand img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.nav-desktop { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav-desktop a { position: relative; padding: 6px 0; }
.nav-desktop a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .18s ease; }
.nav-desktop a:hover::after { width: 100%; }
.nav-cta { color: var(--accent) !important; font-weight: 600; }

/* mobile menu */
.nav-toggle { display: none; }
.menu-btn { display: none; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle:checked ~ .nav-mobile { display: block; }
.nav-mobile { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 24px 20px; }
.nav-mobile a { display: block; padding: 12px 0; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border-bottom: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-deep); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.01em; font-weight: 600; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper-deep); overflow: hidden; }
.hero .container { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -.015em; }
.hero-copy h1 em { font-family: var(--serif); font-style: italic; color: var(--accent); }
.hero-copy .lede { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 34ch; }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 4/3; object-fit: cover; }
.hero-meta { margin-top: 24px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-family: var(--display); }

/* ---------- product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.product-card { display: block; }
.product-card .frame { border-radius: var(--radius); overflow: hidden; background: var(--paper-deep); aspect-ratio: 4/3; }
.product-card .frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .frame img { transform: scale(1.04); }
.product-card h3 { margin-top: 16px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.product-card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.product-card .tag { margin-top: 10px; font-size: 13px; color: var(--accent); font-weight: 600; }

/* featured editorial layout */
.featured-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.featured-main { grid-row: span 2; }
.featured-main .frame { aspect-ratio: 4/5; }

/* ---------- product detail ---------- */
.pd-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.pd-hero .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--paper-deep); }
.pd-hero .frame img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-family: var(--display); font-size: clamp(32px, 4vw, 46px); font-weight: 600; line-height: 1.1; }
.pd-info .pos { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--accent); margin-top: 12px; }
.pd-price { margin-top: 20px; font-size: 15px; color: var(--muted); }
.pd-price strong { color: var(--ink); font-size: 18px; }
.pd-info .desc { margin-top: 18px; color: var(--ink-soft); font-size: 16px; }
.pd-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.gallery-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.gallery-strip a { border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--paper-deep); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.pd-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-story .prose { color: var(--ink-soft); font-size: 16.5px; }
.pd-story .prose h2, .pd-story .prose h3 { font-family: var(--display); color: var(--ink); margin: 26px 0 10px; }
.pd-story .side img { border-radius: var(--radius); width: 100%; }

/* ---------- enquiry band ---------- */
.enquiry { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: 56px; text-align: center; }
.enquiry h2 { font-family: var(--display); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; }
.enquiry p { color: #cfc9bc; margin-top: 12px; font-size: 16px; }
.enquiry .btn { margin-top: 24px; }

/* ---------- research / articles ---------- */
.article-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.article-feature .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--paper-deep); }
.article-feature .frame img { width: 100%; height: 100%; object-fit: cover; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.article-card .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--paper-deep); }
.article-card .frame img { width: 100%; height: 100%; object-fit: cover; }
.article-card .meta { margin-top: 14px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-family: var(--display); }
.article-card h3 { margin-top: 8px; font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.article-card p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; font-weight: 600; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* article page */
.article-page { max-width: 760px; margin: 0 auto; }
.article-page .cover { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 36px; }
.article-page .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-page h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 600; }
.article-page .meta { margin-top: 14px; color: var(--muted); font-size: 14px; }
.prose { font-size: 17px; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose h2 { font-family: var(--display); font-size: 26px; margin: 36px 0 14px; }
.prose h3 { font-family: var(--display); font-size: 20px; margin: 28px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose img { border-radius: var(--radius); margin: 24px 0; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 18px; margin: 24px 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--ink-soft); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; margin-bottom: 28px; color: var(--muted); }

/* about / contact */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.about-grid .frame { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.about-grid .frame img { width: 100%; height: 100%; object-fit: cover; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.contact-card h3 { font-family: var(--display); font-size: 19px; margin-bottom: 10px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card a { color: var(--accent); font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); padding: 64px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--display); font-weight: 600; font-size: 18px; }
.footer-brand p { font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 30ch; }
.footer-col h4 { font-family: var(--display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-hero, .pd-story, .about-grid, .contact-grid, .article-feature { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-btn { display: block; }
  .section { padding: 56px 0; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-row: auto; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .enquiry { padding: 36px 22px; }
  .hero-copy h1 { font-size: clamp(34px, 9vw, 48px); }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

/* focus / accessibility */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible + .menu-btn {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }
/* ---------- Phase 13 page chrome ---------- */
.header-cta { padding: 10px 20px; font-size: 14px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; margin-bottom: 12px; background: #fff; }
.page-hero { background: var(--paper-deep); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-hero h1 { font-family: var(--display); font-size: clamp(36px, 5vw, 54px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; }
.page-hero p { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 56ch; }
.page-prose { max-width: 760px; margin: 0 auto; }
.notfound { text-align: center; padding: 96px 0; }
.notfound h1 { font-family: var(--display); font-size: clamp(30px, 4vw, 44px); font-weight: 600; }
.notfound p { color: var(--muted); margin-top: 12px; }
.notfound .btn { margin-top: 28px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-feature .meta { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-family: var(--display); }
.article-feature h3 { margin-top: 10px; font-family: var(--display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; line-height: 1.25; }
.article-feature h3 a:hover { color: var(--accent); }
.article-feature p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.article-feature .more { margin-top: 18px; font-weight: 600; font-size: 15px; }
.article-feature .more a { color: var(--accent); }
.pagination .disabled, .pagination .ellipsis { color: var(--muted); border-color: var(--line); opacity: .75; }
/* utility classes (CSP: no inline style attributes) */
.grid-follow { margin-top: 28px; }
.section-flush { padding-top: 0; }
.btn-row { margin-top: 36px; }

/* branded fallback for articles without a cover photo */
.frame-brand { display: flex; align-items: center; justify-content: center; }
.article-card .frame-brand img, .article-feature .frame-brand img { width: 64px; height: 64px; object-fit: contain; opacity: .3; }

@media (max-width: 768px) {
  .header-cta { display: none; }
  .page-hero { padding: 48px 0 44px; }
}

