:root { --gold:#BC8D41; --ink:#0A0A0A; --ivory:#F7F3EA; --white:#FBF9F5; --graphite:#2B2A28; --border:#E7E1D5; }
  * { box-sizing: border-box; }
  body { margin: 0; background: #E8E4DC; -webkit-font-smoothing: antialiased; }
  a { color: var(--gold); text-decoration: none; }
  a:hover { color: var(--ink); }
  input, select, textarea { font-family: Inter, sans-serif; }
  input::placeholder, textarea::placeholder { color: #8C8880; }
  @keyframes samRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes samMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  /* Page frame + responsive preview */
  #page { width: 100%; max-width: none; margin: 0 auto; background: var(--white); color: var(--ink); font-family: Inter, sans-serif; overflow-x: clip; box-shadow: 0 0 60px rgba(0,0,0,0.12); transition: max-width .25s ease; }
  /* Container-query-like sizing driven off the frame width via clamp fallbacks (uses cqw where supported) */
  #page { container-type: inline-size; }

  /* ===== Shared site header (identical markup + behaviour on home + gallery) ===== */
  .site-header { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px clamp(20px, 4cqw, 64px); background: rgba(10,10,10,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid #1B1B1B; }
  .brand { display: flex; align-items: center; gap: 12px; color: #F7F3EA; flex: none; }
  .brand-mark { display: block; height: 48px; width: auto; flex: none; }
  .brand-text { display: flex; flex-direction: column; gap: 3px; }
  .brand-name { font-family: 'EB Garamond', serif; font-size: 20px; letter-spacing: 0.18em; line-height: 1; color: #F7F3EA; }
  .brand-tag { font-family: 'JetBrains Mono', monospace; font-size: 7.5px; letter-spacing: 0.3em; color: #B6A48C; }
  .site-nav { display: flex; align-items: center; gap: clamp(14px, 2cqw, 30px); }
  .site-nav .nav-link { color: #E7E1D5; font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
  .site-nav .nav-link:hover, .site-nav .nav-link.active { color: #BC8D41; }
  .lang-dd { position: relative; flex: none; }
  .lang-dd-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 9px 13px; background: transparent; border: 1px solid rgba(247,243,234,0.3); color: #E7E1D5; font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.14em; }
  .lang-dd-btn:hover { border-color: #BC8D41; }
  .lang-dd-btn .caret { font-size: 7px; transition: transform .2s; }
  .lang-dd.open .lang-dd-btn .caret { transform: rotate(180deg); }
  .lang-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 140px; background: rgba(10,10,10,0.98); border: 1px solid #2B2A28; box-shadow: 0 12px 34px rgba(0,0,0,0.45); display: none; flex-direction: column; z-index: 70; }
  .lang-dd.open .lang-menu { display: flex; }
  .lang-menu button { text-align: left; padding: 12px 15px; background: transparent; border: 0; cursor: pointer; color: #C9C3B6; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; }
  .lang-menu button:hover { background: #1B1B1B; color: #F7F3EA; }
  .lang-menu button.active { color: #BC8D41; }
  .btn-quote { padding: 13px 22px; background: #BC8D41; color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
  .btn-quote:hover { background: #F7F3EA; color: #0A0A0A; }
  .menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 42px; padding: 0 12px; flex: none; border: 1px solid rgba(247,243,234,0.3); background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; height: 1.5px; width: 100%; background: #F7F3EA; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* Mobile header — driven by the #page container width, so it matches the MOBILE preview toggle AND real phones */
  @container (max-width: 760px) {
    .menu-toggle { display: flex; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 6px clamp(20px, 4cqw, 64px) 20px; background: rgba(10,10,10,0.98); border-bottom: 1px solid #1B1B1B; }
    .site-header:not(.open) .site-nav { display: none; }
    .site-nav .nav-link { padding: 15px 2px; border-bottom: 1px solid #1B1B1B; font-size: 13px; }
    .site-nav .lang-dd { align-self: flex-start; margin: 16px 0 2px; }
    .btn-quote { text-align: center; margin-top: 14px; padding: 15px 22px; }
  }

  /* Hover / focus states (replacing the mockup's style-hover / style-focus) */
  .nav-link:hover { color: var(--gold); }
  .btn-gold { background: var(--gold); color: #fff; }
  .btn-gold:hover { background: var(--ink); color: #fff; }
  .btn-gold-lightflip:hover { background: var(--ivory); color: var(--ink); }
  .btn-outline-dark { border: 1px solid var(--ink); color: var(--ink); }
  .btn-outline-dark:hover { background: var(--ink); color: var(--ivory); }
  .btn-outline-light { border: 1px solid rgba(247,243,234,0.45); color: var(--ivory); }
  .btn-outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
  .shot:hover { border-color: var(--gold) !important; }
  .play-btn:hover { border-color: var(--gold) !important; background: rgba(188,141,65,0.2) !important; }
  .social { transition: transform .2s, opacity .2s; }
  .social:hover { transform: translateY(-2px); opacity: 0.85; }

  /* Video cards (See our work in motion) */
  .vcard { position: relative; aspect-ratio: 16 / 9; background: repeating-linear-gradient(45deg, #141414 0 11px, #1B1B1B 11px 22px); border: 1px solid #2B2A28; display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
  .vcard:hover { border-color: var(--gold); }
  .vcard .tag { position: absolute; top: 12px; left: 12px; padding: 5px 9px; background: rgba(6,6,6,0.85); border: 1px solid #2B2A28; font-family: 'JetBrains Mono', monospace; font-size: 8.5px; letter-spacing: 0.14em; color: #E4D3B5; }
  .vcard .chip { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; background: rgba(6,6,6,0.85); border: 1px solid #BC8D41; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; letter-spacing: 0.1em; color: #E4D3B5; text-align: center; line-height: 1.5; }
  .vcard .vplay { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(247,243,234,0.6); border-radius: 50%; transition: border-color .2s, background .2s; }
  .vcard:hover .vplay { border-color: var(--gold); background: rgba(188,141,65,0.18); }
  .vcard .vplay::after { content: ''; width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 13px solid #F7F3EA; }
  .vcard { overflow: hidden; }
  .vcard > video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .shot { cursor: pointer; }

  /* Lightbox */
  #lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(6,6,6,0.94); }
  #lightbox.open { display: flex; }
  #lightbox .lb-img { max-width: 90vw; max-height: 88vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
  #lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; background: rgba(20,20,20,0.55); border: 1px solid rgba(247,243,234,0.3); color: #F7F3EA; cursor: pointer; line-height: 1; font-family: 'JetBrains Mono', monospace; }
  #lightbox button:hover { border-color: #BC8D41; color: #BC8D41; }
  #lightbox .lb-close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 24px; }
  #lightbox .lb-prev, #lightbox .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 66px; font-size: 28px; }
  #lightbox .lb-prev { left: 20px; }
  #lightbox .lb-next { right: 20px; }
  #lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; color: #C9C3B6; }
  @media (max-width: 640px) { #lightbox .lb-prev { left: 8px; } #lightbox .lb-next { right: 8px; } #lightbox .lb-prev, #lightbox .lb-next { width: 44px; height: 56px; } }
  #contact input:focus, #contact select:focus, #contact textarea:focus { border-color: var(--gold); outline: none; }

  /* Reveal helper */
  [data-reveal].revealed { animation: samRise 620ms cubic-bezier(.22,.61,.36,1) forwards; }



/* Native date picker, matched to the form's palette */
#sam-date { cursor: pointer; }
#sam-date:focus { outline: none; border-color: #BC8D41; }
#sam-date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.55; filter: sepia(1) saturate(3) hue-rotate(5deg); }
#sam-date::-webkit-calendar-picker-indicator:hover { opacity: 1; }
