/*
Theme Name: tack LP
Theme URI: https://tack.example.jp/
Author: tack
Description: 「ありがとうを、かたちにする。」— クリエイティブ会社 tack の1ページ・ランディングページ用クラシックテーマ。白ベース＋ダークネイビー、深いグリーンのアクセント。キービジュアル画像とアクセントカラーは外観カスタマイザーから変更でき、お問い合わせは Contact Form 7 に対応します。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tack-lp
Tags: one-page, landing-page, custom-colors, custom-logo, translation-ready
*/

:root {
    --bg: #FCFCFB;
    --bg-soft: #F5F5F2;
    --ink: #0D1B2A;
    --ink-2: #475260;
    --ink-3: #8A929C;
    --line: rgba(13, 27, 42, 0.10);
    --line-soft: rgba(13, 27, 42, 0.06);
    --accent: #2A5F4F;
    --accent-soft: rgba(42, 95, 79, 0.08);
    --sans: "Noto Sans JP", sans-serif;
    --serif: "Noto Serif JP", serif;
    --maxw: 1120px;
    --pad: clamp(1.5rem, 5vw, 4rem);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    font-weight: 400;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }

  ::selection { background: var(--accent-soft); color: var(--accent); }

  a { color: inherit; text-decoration: none; }

  .shell { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

  /* ---------- Header ---------- */
  header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
    border-bottom: 1px solid transparent;
  }
  header.scrolled {
    background: rgba(252, 252, 251, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
  }
  .nav {
    display: flex; align-items: center; justify-content: space-between;
    height: 76px;
  }
  .brand {
    font-family: var(--serif);
    font-size: 26px; font-weight: 600; letter-spacing: 0.02em;
    display: flex; align-items: center; gap: 0.55rem;
  }
  .brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-bottom: 2px; }
  .nav-links { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.75rem); }
  .nav-links a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-2);
    position: relative; transition: color .25s ease;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
    background: var(--accent); transition: width .3s ease;
  }
  .nav-links a:hover { color: var(--ink); }
  .nav-links a:hover::after { width: 100%; }
  .nav-cta {
    font-size: 13px; font-weight: 500; padding: 9px 20px; border-radius: 999px;
    border: 1px solid var(--ink); color: var(--ink); transition: all .25s ease; white-space: nowrap;
  }
  .nav-cta:hover { background: var(--ink); color: var(--bg); }
  .nav-links a.nav-cta::after { display: none; }
  @media (max-width: 720px) { .nav-links .hide-sm { display: none; } }

  /* ---------- Section scaffolding ---------- */
  section { position: relative; }
  .sec-pad { padding-top: clamp(6rem, 13vw, 11rem); padding-bottom: clamp(6rem, 13vw, 11rem); }
  .eyebrow {
    display: inline-flex; align-items: baseline; gap: 0.7rem;
    font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--ink-3); margin-bottom: 1.6rem;
  }
  .eyebrow .num { color: var(--accent); font-feature-settings: "tnum"; }
  .eyebrow .bar { width: 28px; height: 1px; background: var(--line); align-self: center; }

  /* ---------- Hero ---------- */
  .hero { padding-top: clamp(10rem, 20vh, 14rem); padding-bottom: clamp(5rem, 10vw, 9rem); position: relative; overflow: hidden; }
  .hero-inner { max-width: 940px; position: relative; z-index: 1; }
  .hero-text { position: relative; z-index: 2; }
  .hero h1 {
    font-family: var(--serif); font-weight: 600;
    font-size: calc(clamp(2.6rem, 7.2vw, 5.6rem) * var(--hero-scale, 1)); line-height: 1.32;
    letter-spacing: 0.01em; color: var(--ink); text-wrap: balance;
  }
  .hero h1 .accent { color: var(--accent); }

  .hero-kicker {
    display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.8rem;
    font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--ink-2); font-feature-settings: "tnum";
  }
  .hero-kicker .kk-rule { width: 40px; height: 1px; background: var(--accent); display: inline-block; }
  .hero-kicker .kk-sep { color: var(--ink-3); margin: 0 0.1rem; }
  .hero .sub {
    margin-top: 2.2rem; font-size: clamp(1rem, 1.7vw, 1.22rem); font-weight: 300;
    line-height: 2; color: var(--ink-2); max-width: 24em; text-wrap: pretty;
  }
  .hero .actions { margin-top: 3rem; display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
  .btn-primary {
    display: inline-flex; align-items: center; gap: 0.7rem;
    background: var(--accent); color: #fff; font-weight: 500; font-size: 15px;
    padding: 16px 30px; border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
    box-shadow: 0 1px 2px rgba(13,27,42,0.06);
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(42,95,79,0.22); background: #244f42; }
  .btn-primary .arr { transition: transform .25s ease; }
  .btn-primary:hover .arr { transform: translateX(4px); }
  .btn-text { font-size: 14px; color: var(--ink-2); font-weight: 500; display: inline-flex; align-items: center; gap: 0.5rem; transition: color .2s ease; }
  .btn-text:hover { color: var(--ink); }

  .hero-meta {
    margin-top: clamp(4rem, 9vw, 7rem); display: flex; gap: clamp(2rem, 6vw, 5rem);
    flex-wrap: wrap; padding-top: 2.4rem; border-top: 1px solid var(--line-soft);
  }
  .hero-meta .item { max-width: 22ch; }
  .hero-meta .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 0.5rem; }
  .hero-meta .v { font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.75; }

  /* ---------- Hero — Key visual ---------- */
  .hero-visual { display: none; }
  .kv { display: none; }
  .kv-image { width: 100%; height: auto; }

  /* Split layouts (stripe / image) put the key visual beside the copy */
  body[data-kv="stripe"] .hero-inner,
  body[data-kv="image"] .hero-inner {
    max-width: var(--maxw);
    display: grid; grid-template-columns: 1.02fr 0.98fr;
    gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  }
  body[data-kv="stripe"] .hero-visual,
  body[data-kv="image"] .hero-visual { display: block; }
  body[data-kv="stripe"] .hero h1,
  body[data-kv="image"] .hero h1 { font-size: calc(clamp(2.3rem, 4.4vw, 4.2rem) * var(--hero-scale, 1)); }
  body[data-kv="stripe"] .hero-meta,
  body[data-kv="image"] .hero-meta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

  body[data-kv="stripe"] .kv-stripe { display: flex; }
  body[data-kv="image"] .kv-image { display: block; }

  .kv-stripe {
    aspect-ratio: 5 / 4; width: 100%; align-items: flex-end; padding: 16px;
    border: 1px solid var(--line);
    background-image: repeating-linear-gradient(135deg, var(--bg-soft) 0 12px, #eeeee9 12px 24px);
  }
  .kv-tag { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; color: var(--ink-3); background: rgba(252,252,251,0.85); padding: 3px 8px; border-radius: 3px; }
  .kv-image { aspect-ratio: 5 / 4; height: auto; border: 1px solid var(--line); }

  /* Shape: a quiet geometric key visual layered behind the copy */
  body[data-kv="shape"] .hero-visual {
    display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  }
  body[data-kv="shape"] .kv-shape { display: block; }
  .kv-shape .kv-disc, .kv-shape .kv-ring {
    position: absolute; border-radius: 50%;
    right: clamp(-8rem, -4vw, -3rem); top: 50%; translate: 0 -50%;
  }
  .kv-shape .kv-disc {
    width: clamp(20rem, 38vw, 38rem); aspect-ratio: 1;
    background: var(--accent-soft);
  }
  .kv-shape .kv-ring {
    width: clamp(26rem, 48vw, 48rem); aspect-ratio: 1;
    border: 1px solid var(--accent); opacity: 0.18; background: transparent;
  }

  /* Full-bleed: key visual fills the hero, copy sits on top with a scrim */
  body[data-kv="full"] .hero {
    min-height: 92vh; display: flex; align-items: center;
    padding-top: clamp(7rem, 14vh, 11rem); padding-bottom: clamp(6rem, 12vh, 9rem);
  }
  body[data-kv="full"] .hero-inner { position: static; max-width: var(--maxw); width: 100%; }
  body[data-kv="full"] .hero-visual { display: block; position: absolute; inset: 0; z-index: 0; }
  body[data-kv="full"] .kv-image {
    display: block; position: absolute; inset: 0;
    width: 100%; height: 100%; aspect-ratio: auto; border: 0;
  }
  body[data-kv="full"] .hero-visual::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(13,27,42,0.42) 0%, rgba(13,27,42,0.58) 58%, rgba(13,27,42,0.70) 100%);
  }
  body[data-kv="full"] .hero h1 { color: #fff; }
  body[data-kv="full"] .hero h1 .accent { color: #BFE8D8; }
  body[data-kv="full"] .hero .sub { color: rgba(255,255,255,0.86); }
  body[data-kv="full"] .hero .btn-text { color: rgba(255,255,255,0.82); }
  body[data-kv="full"] .hero .btn-text:hover { color: #fff; }
  body[data-kv="full"] .hero-meta { border-top-color: rgba(255,255,255,0.22); }
  body[data-kv="full"] .hero-meta .k { color: #BFE8D8; }
  body[data-kv="full"] .hero-meta .v { color: rgba(255,255,255,0.8); }
  body[data-kv="full"] .hero-kicker { color: rgba(255,255,255,0.82); }
  body[data-kv="full"] .hero-kicker .kk-rule { background: #BFE8D8; }
  body[data-kv="full"] .hero-kicker .kk-sep { color: rgba(255,255,255,0.5); }

  /* Image-right caption tag */
  .kv-cap { display: none; }
  body[data-kv="image"] .hero-visual { position: relative; }
  body[data-kv="image"] .kv-cap {
    display: flex; align-items: baseline; gap: 0.65rem;
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1.1rem 1.05rem;
    font-family: var(--serif); font-size: clamp(0.95rem, 1.4vw, 1.15rem); color: #fff;
    background: linear-gradient(transparent, rgba(13,27,42,0.62)); border-radius: 0 0 6px 6px;
  }
  .kv-cap .kv-cap-no {
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px;
    letter-spacing: 0.1em; color: #BFE8D8; border: 1px solid rgba(191,232,216,0.5);
    padding: 2px 7px; border-radius: 3px; align-self: center;
  }

  /* Editorial poster chrome (full-bleed mode only) */
  .hero-chrome { display: none; }
  body[data-kv="full"] .hero-chrome { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  body[data-kv="full"] .hero-chrome::before { content: ""; position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,0.22); }
  .hc-edge, .hc-corner {
    position: absolute; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    color: rgba(255,255,255,0.62); white-space: nowrap;
  }
  .hc-edge { top: 50%; font-size: 10.5px; letter-spacing: 0.3em; text-transform: uppercase; }
  .hc-left { left: 40px; transform: translate(-50%, -50%) rotate(-90deg); }
  .hc-right { right: 40px; transform: translate(50%, -50%) rotate(90deg); }
  .hc-corner { bottom: 40px; font-size: 11px; letter-spacing: 0.05em; color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 0.5rem; }
  .hc-bl { left: 42px; }
  .hc-br { right: 42px; }
  .hc-mark { width: 6px; height: 6px; border-radius: 50%; background: #BFE8D8; display: inline-block; }
  .hc-arrow { display: inline-block; margin-left: 0.15rem; animation: hcbob 1.8s ease-in-out infinite; }
  @keyframes hcbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
  @media (prefers-reduced-motion: reduce) { .hc-arrow { animation: none; } }
  @media (max-width: 880px) { .hc-edge { display: none; } body[data-kv="full"] .hero-chrome::before { inset: 14px; } .hc-bl, .hc-br { bottom: 26px; } .hc-bl { left: 26px; } .hc-br { right: 26px; } }

  /* Kicker centering (single-column modes) + dark-bg recolor */
  body[data-hero-align="center"]:is([data-kv="full"], [data-kv="none"], [data-kv="shape"]) .hero-kicker { justify-content: center; }
  body[data-hero-bg="ink"] .hero-kicker { color: rgba(245,245,242,0.8); }
  body[data-hero-bg="ink"] .hero-kicker .kk-rule { background: #8FD0BA; }

  /* Background tone */
  body[data-hero-bg="soft"] .hero { background: var(--bg-soft); }
  body[data-hero-bg="ink"] .hero { background: var(--ink); }
  body[data-hero-bg="ink"] .hero h1 { color: #F5F5F2; }
  body[data-hero-bg="ink"] .hero h1 .accent { color: #8FD0BA; }
  body[data-hero-bg="ink"] .hero .sub { color: rgba(245,245,242,0.74); }
  body[data-hero-bg="ink"] .hero .btn-text { color: rgba(245,245,242,0.7); }
  body[data-hero-bg="ink"] .hero .btn-text:hover { color: #fff; }
  body[data-hero-bg="ink"] .hero-meta { border-top-color: rgba(245,245,242,0.14); }
  body[data-hero-bg="ink"] .hero-meta .k { color: #8FD0BA; }
  body[data-hero-bg="ink"] .hero-meta .v { color: rgba(245,245,242,0.7); }
  body[data-hero-bg="ink"] .kv-stripe { border-color: rgba(245,245,242,0.16); background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, rgba(255,255,255,0.09) 12px 24px); }
  body[data-hero-bg="ink"] .kv-tag { color: rgba(245,245,242,0.6); background: rgba(13,27,42,0.6); }
  body[data-hero-bg="ink"] .kv-shape .kv-disc { background: rgba(143,208,186,0.12); }
  body[data-hero-bg="ink"] .kv-shape .kv-ring { border-color: #8FD0BA; opacity: 0.22; }

  /* Centered alignment (single-column variants only) */
  body[data-hero-align="center"][data-kv="none"] .hero-inner,
  body[data-hero-align="center"][data-kv="shape"] .hero-inner,
  body[data-hero-align="center"][data-kv="full"] .hero-inner { margin-left: auto; margin-right: auto; text-align: center; }
  body[data-hero-align="center"][data-kv="none"] .hero .sub,
  body[data-hero-align="center"][data-kv="shape"] .hero .sub,
  body[data-hero-align="center"][data-kv="full"] .hero .sub { margin-left: auto; margin-right: auto; }
  body[data-hero-align="center"][data-kv="none"] .hero .actions,
  body[data-hero-align="center"][data-kv="shape"] .hero .actions,
  body[data-hero-align="center"][data-kv="full"] .hero .actions { justify-content: center; }
  body[data-hero-align="center"][data-kv="none"] .hero-meta,
  body[data-hero-align="center"][data-kv="shape"] .hero-meta,
  body[data-hero-align="center"][data-kv="full"] .hero-meta { justify-content: center; }

  @media (max-width: 820px) {
    body[data-kv="stripe"] .hero-inner,
    body[data-kv="image"] .hero-inner { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
    .kv-stripe, .kv-image { aspect-ratio: 16 / 10; }
  }

  /* ---------- About ---------- */
  .about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
  .about-lead {
    font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 3vw, 2.05rem);
    line-height: 1.9; letter-spacing: 0.01em; color: var(--ink); text-wrap: pretty;
  }
  .about-lead .mark { color: var(--accent); }
  .rep-card { border-top: 1px solid var(--line); padding-top: 1.7rem; }
  .rep-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 500; margin-bottom: 0.9rem; }
  .rep-name { font-size: 1.25rem; font-weight: 500; }
  .rep-name .en { font-size: 0.82rem; color: var(--ink-3); font-weight: 400; margin-left: 0.6rem; letter-spacing: 0.03em; }
  .rep-role { margin-top: 0.5rem; font-size: 14px; color: var(--ink-2); font-weight: 300; line-height: 1.7; }
  @media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }

  /* ---------- Service ---------- */
  .sec-head { max-width: 640px; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
  .sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.5; letter-spacing: 0.01em; }
  .sec-head p { margin-top: 1.1rem; font-size: 1rem; font-weight: 300; color: var(--ink-2); line-height: 1.9; }

  .service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
  .svc {
    background: var(--bg); padding: clamp(2rem, 3.5vw, 3rem); position: relative;
    transition: background .35s ease;
  }
  .svc:hover { background: #fff; }
  .svc .idx { font-family: ui-monospace, monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }
  .svc h3 { margin-top: 1.3rem; font-size: 1.45rem; font-weight: 500; letter-spacing: 0.01em; display: flex; align-items: center; gap: 0.6rem; }
  .svc h3 .glyph { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); opacity: 0; transition: opacity .35s ease, transform .35s ease; }
  .svc:hover h3 .glyph { opacity: 1; transform: rotate(45deg) scale(1.1); }
  .svc .jp { font-size: 12px; color: var(--ink-3); margin-top: 0.35rem; letter-spacing: 0.05em; }
  .svc p { margin-top: 1.4rem; font-size: 0.95rem; font-weight: 300; color: var(--ink-2); line-height: 2; }
  @media (max-width: 720px) { .service-grid { grid-template-columns: 1fr; } }

  /* ---------- Philosophy ---------- */
  .philosophy { background: var(--ink); color: var(--bg); }
  .philosophy .eyebrow { color: rgba(252,252,251,0.55); }
  .philosophy .eyebrow .num { color: #8FD0BA; }
  .philosophy .eyebrow .bar { background: rgba(255,255,255,0.18); }
  .philo-quote {
    font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5.5vw, 4rem);
    line-height: 1.5; letter-spacing: 0.02em; text-wrap: balance;
  }
  .philo-quote .q { color: #8FD0BA; }
  .philo-body {
    margin-top: clamp(2.5rem, 5vw, 3.5rem); max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.12rem);
    font-weight: 300; line-height: 2.1; color: rgba(252,252,251,0.78); text-wrap: pretty;
  }

  /* ---------- Contact ---------- */
  .contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); }
  .contact-lead h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 2.6rem); line-height: 1.5; }
  .contact-lead p { margin-top: 1.3rem; font-size: 1rem; font-weight: 300; color: var(--ink-2); line-height: 1.95; max-width: 24em; }
  .contact-detail { margin-top: 2.6rem; display: flex; flex-direction: column; gap: 1.1rem; }
  .contact-detail .row .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
  .contact-detail .row .v { font-size: 15px; color: var(--ink); margin-top: 0.2rem; }

  form .field { margin-bottom: 1.5rem; }
  form .field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  @media (max-width: 560px) { form .field.row2 { grid-template-columns: 1fr; } }
  label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 0.55rem; }
  label .req { color: var(--accent); font-size: 11px; margin-left: 0.4rem; font-weight: 500; }
  label .opt { color: var(--ink-3); font-size: 11px; margin-left: 0.4rem; font-weight: 400; }
  .input, textarea.input {
    width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 4px;
    padding: 13px 15px; transition: border-color .2s ease, box-shadow .2s ease;
  }
  .input::placeholder { color: var(--ink-3); font-weight: 300; }
  .input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
  textarea.input { resize: vertical; min-height: 130px; line-height: 1.7; }
  .input.invalid { border-color: #C0532E; box-shadow: 0 0 0 3px rgba(192,83,46,0.10); }
  .err { font-size: 12px; color: #C0532E; margin-top: 0.4rem; display: none; }
  .err.show { display: block; }

  .consent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0.5rem 0 1.8rem; }
  .consent input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent); flex-shrink: 0; }
  .consent label { font-size: 13px; font-weight: 300; color: var(--ink-2); margin: 0; line-height: 1.6; }
  .consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

  .submit {
    width: 100%; background: var(--ink); color: var(--bg); border: none; cursor: pointer;
    font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 17px; border-radius: 999px;
    transition: background .25s ease, transform .2s ease; letter-spacing: 0.02em;
  }
  .submit:hover { background: var(--accent); transform: translateY(-2px); }
  .submit:disabled { opacity: 0.5; cursor: default; transform: none; }

  .form-sent {
    display: none; text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
  }
  .form-sent.show { display: block; }
  .form-sent .check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.4rem; }
  .form-sent h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
  .form-sent p { margin-top: 0.8rem; font-size: 14px; color: var(--ink-2); font-weight: 300; }
  @media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

  /* ---------- Footer ---------- */
  footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; }
  .foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; }
  .foot-id { display: flex; flex-direction: column; gap: 1rem; }
  .foot .brand { font-size: 22px; }
  .foot-addr {
    font-style: normal; font-size: 13px; font-weight: 300; line-height: 1.85; color: var(--ink-2);
    display: flex; flex-direction: column; gap: 0.05rem;
  }
  .foot-addr [itemprop="postalCode"] { font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
  .foot-nav { display: flex; gap: 1.8rem; }
  .foot-nav a { font-size: 13px; color: var(--ink-2); font-weight: 300; transition: color .2s ease; }
  .foot-nav a:hover { color: var(--accent); }
  .foot-copy { font-size: 12px; color: var(--ink-3); font-weight: 300; letter-spacing: 0.02em; }

  /* ---------- Reveal animation (opacity stays 1 so content is never hidden) ---------- */
  .reveal { opacity: 1; transform: translateY(20px); transition: transform 1s cubic-bezier(.16,1,.3,1); }
  .reveal.in { transform: none; }
  .reveal.d1 { transition-delay: .08s; }
  .reveal.d2 { transition-delay: .16s; }
  .reveal.d3 { transition-delay: .24s; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  /* ============================================================
     RESPONSIVE
     ============================================================ */

  /* Cap any author/user fixed-width text so it never overflows small screens */
  @media (max-width: 760px) {
    .philo-body[style], .contact-lead p[style] { width: auto !important; max-width: 100% !important; }
  }

  /* ---- Tablet ---- */
  @media (max-width: 900px) {
    :root { --pad: clamp(1.25rem, 5vw, 2.5rem); }
    .sec-pad { padding-top: clamp(4.5rem, 11vw, 7rem); padding-bottom: clamp(4.5rem, 11vw, 7rem); }
  }

  /* ---- Mobile ---- */
  @media (max-width: 640px) {
    :root { --pad: 1.25rem; }
    .nav { height: 64px; }
    .brand { font-size: 22px; }
    .nav-cta { padding: 8px 16px; }

    /* Hero: relax full-bleed height, scale headline safely, stack meta */
    .hero { padding-top: clamp(7rem, 22vh, 9rem); padding-bottom: clamp(3.5rem, 12vw, 5rem); }
    body[data-kv="full"] .hero { min-height: 86vh; }
    .hero h1,
    body[data-kv="stripe"] .hero h1,
    body[data-kv="image"] .hero h1 { font-size: calc(clamp(2.1rem, 11vw, 3.1rem) * min(var(--hero-scale, 1), 1.1)); line-height: 1.4; }
    .hero .sub { font-size: 1rem; max-width: 100%; }
    .hero .actions { gap: 1rem; }
    .btn-primary { padding: 14px 24px; }
    .hero-meta { gap: 1.5rem 2rem; }
    .hero-meta .item { max-width: 100%; flex: 1 1 40%; }
    .hero-kicker { font-size: 11px; letter-spacing: 0.1em; gap: 0.6rem; }
    .hero-kicker .kk-rule { width: 26px; }

    /* Section headings */
    .sec-head h2, .about-lead { line-height: 1.7; }
    .philo-body { line-height: 1.9; }

    /* Service cards: single column already at 720; tighten padding */
    .svc { padding: 1.6rem 1.4rem; }
    .svc h3 { font-size: 1.3rem; }

    /* Contact stacks; lead caption tag wrap */
    .kv-cap { font-size: 0.95rem; padding: 1.6rem 0.9rem 0.9rem; }

    /* Footer: stack and left-align */
    .foot { align-items: flex-start; gap: 1.6rem; }
    .foot-nav { flex-wrap: wrap; gap: 0.9rem 1.4rem; }
    .foot-copy { order: 9; }
  }

  /* ---- Small mobile ---- */
  @media (max-width: 380px) {
    .hero-meta .item { flex: 1 1 100%; }
    .nav-links { gap: 0.9rem; }
  }

/* ============================================================
   WordPress / Contact Form 7 additions
   ============================================================ */
:root { --hero-scale: 1.3; }

/* Key visual rendered as a background image (customizer-controlled) */
.kv-image { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Fixed header offset for the WP admin bar */
body.admin-bar #header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #header { top: 46px; } }

/* Contact Form 7 — reuses the design's .field / .input / .submit classes */
.wpcf7 .field { margin-bottom: 1.5rem; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 .ajax-loader { margin: 0.6rem auto 0; display: block; }
span.wpcf7-not-valid-tip { font-size: 12px; color: #C0532E; margin-top: 0.4rem; display: block; }
.wpcf7 input.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid { border-color: #C0532E; box-shadow: 0 0 0 3px rgba(192,83,46,0.10); }
.wpcf7-response-output {
  margin: 1.3rem 0 0 !important; border-radius: 6px; padding: 14px 16px !important;
  font-size: 14px; font-weight: 400; line-height: 1.7;
  border: 1px solid var(--line) !important;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--accent) !important; background: var(--accent-soft); color: var(--accent); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output { border-color: #C0532E !important; background: rgba(192,83,46,0.06); color: #C0532E; }
.wpcf7 .submit { width: 100%; }

/* Screen-reader helper */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden; position: absolute;
}
