/*
Theme Name: Apatara
Author: Apatara
Description: Custom theme for the Apatara website: header, footer, colors, fonts and page styles. Page text and photos stay editable under Pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apatara
*/
/* =========================================================
       1. DESIGN TOKENS
       ========================================================= */
    :root {
      --red: #CC3333;          /* Persian red */
      --red-deep: #A3241F;
      --red-ink: #4A0F0D;
      --red-soft: #F6E3E0;
      --red-line: #EBC9C3;
      --cream: #FAF6F2;
      --paper: #FFFFFF;
      --ink: #1F1A19;
      --text: #4A4240;
      --muted: #7A706C;
      --line: #E9E0DA;

      --serif: "Newsreader", Georgia, "Times New Roman", serif;
      --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

      --radius: 18px;
      --shadow-sm: 0 2px 10px rgba(60, 20, 15, .06);
      --shadow-md: 0 14px 40px rgba(60, 20, 15, .10);
      --ease: cubic-bezier(.22, .61, .36, 1);
      --max: 1400px;
      --nav-h: 84px;
    }

    /* =========================================================
       2. RESET & BASE
       ========================================================= */
    :where(.apatara, .apatara *, .apatara *::before, .apatara *::after) { box-sizing: border-box; margin: 0; padding: 0; }
    .apatara {
      font-family: var(--sans); color: var(--text); background: var(--cream);
      line-height: 1.65; -webkit-font-smoothing: antialiased;
    }
    :where(.apatara) a { color: inherit; text-decoration: none; }
    :where(.apatara) svg { display: block; }
    .container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }

    .eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
    .display { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.06; letter-spacing: -.01em; }
    .rule { width: 56px; height: 2px; background: var(--red); border: 0; margin: 26px 0; }

    /* Section label with a trailing hairline (as in the mockups) */
    .label { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
    .label::after { content: ""; flex: 1; height: 1px; background: var(--red-line); }

    /* =========================================================
       3. BUTTONS
       ========================================================= */
    .btn {
      display: inline-flex; align-items: center; gap: 12px; padding: 16px 32px; border-radius: 999px;
      font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
      cursor: pointer; border: 2px solid transparent;
      transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
    }
    .btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
    .btn:hover svg { transform: translateX(4px); }
    .btn-primary { background: var(--red-deep); color: #fff; box-shadow: 0 8px 22px rgba(163, 36, 31, .28); }
    .btn-primary:hover { background: var(--red); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(204, 51, 51, .35); }
    .btn-ghost { border-color: var(--red-deep); color: var(--red-deep); }
    .btn-ghost:hover { background: var(--red-deep); color: #fff; transform: translateY(-2px); }
    .btn-light { background: #fff; color: var(--red-ink); }
    .btn-light:hover { background: var(--red-soft); transform: translateY(-2px); }

    /* =========================================================
       4. STICKY NAVIGATION
       ========================================================= */
    .site-header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(250, 246, 242, .93);
      backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
      border-bottom: 1px solid var(--line); transition: box-shadow .3s;
    }
    .site-header.scrolled { box-shadow: var(--shadow-sm); }
    .nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

    .logo { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
    .logo-mark { width: auto; height: 48px; display: block; transition: transform .4s var(--ease); }
    .logo-word { display: block; height: 30px; width: auto; }
    .logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
    .logo-text strong { display: block; font-weight: 600; font-size: 1.75rem; letter-spacing: .2em; color: var(--ink); line-height: 1; }
    .logo-text span { display: block; font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

    .nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
    .nav-links a {
      position: relative; display: inline-block; padding: 8px 0;
      font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
      transition: color .25s;
    }
    .nav-links a::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red);
      transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
    }
    .nav-links a:hover { color: var(--ink); }
    .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
    .nav-links a.active { color: var(--red-deep); font-weight: 600; }
    .nav-cta { padding: 13px 24px; font-size: .74rem; flex-shrink: 0; }

    .menu-toggle {
      display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff;
      cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
    }
    .menu-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
    .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* =========================================================
       5. PAGE SWITCHING + ENTRANCE ANIMATIONS
       ========================================================= */
    .apatara .page { display: block; animation: pageIn .55s var(--ease) both; }
        @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
    .apatara .reveal { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
    @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

    /* =========================================================
       6. HOME – HERO (matches the mockup)
       ========================================================= */
    .hero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--line); }
    /* Hero photo (vial of graft granules), embedded so it can never break */
    .hero-media {
      position: absolute; top: 0; right: 0; bottom: 0; width: 60%;
      background: var(--cream);
      animation: mediaIn 1.4s var(--ease) both;
    }
    .hero-media::after {
      content: ""; position: absolute; inset: 0;
      background:
        linear-gradient(90deg, var(--cream) 0%, rgba(250,246,242,.75) 12%, rgba(250,246,242,0) 38%),
        linear-gradient(0deg, rgba(250,246,242,.75) 0%, rgba(250,246,242,0) 22%);
    }
    @keyframes mediaIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

    .hero-inner { position: relative; z-index: 2; padding: 60px 32px 40px; }
    .hero-copy { max-width: 620px; }
    .hero h1 { font-size: clamp(2.5rem, 4.2vw, 3.75rem); margin-top: 14px; line-height: 1.08; }
    .hero .lead { font-size: 1.06rem; line-height: 1.5; max-width: 470px; margin-bottom: 26px; }
    .hero .rule { margin: 20px 0 22px; }

    .features { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; margin-top: 34px; max-width: 920px; }
    .feature { display: flex; align-items: center; gap: 14px; padding: 4px 30px; border-left: 1px solid var(--line); font-size: .93rem; line-height: 1.35; }
    .feature:first-child { padding-left: 0; border-left: 0; }
    .feature svg { width: 40px; height: 40px; flex-shrink: 0; color: var(--red-deep); transition: transform .4s var(--ease); }
    .feature:hover svg { transform: translateY(-3px) scale(1.06); }

    /* =========================================================
       7. HOME – MISSION BAND
       ========================================================= */
    .mission {
      position: relative; overflow: hidden; color: #fff;
      background:
        radial-gradient(ellipse 45% 70% at 0% 20%, rgba(150, 38, 32, .55), transparent 70%),
        linear-gradient(90deg, #5A1512 0%, #4A110F 40%, #3A0E0C 100%);
    }
    /* Jaw / implant illustration, embedded */
    .mission-media {
      position: absolute; top: 0; right: 0; bottom: 0; width: 65%;
      background: url("assets/images/home-mission-jaw-implant.jpg") left center / cover no-repeat;
      animation: mediaIn 1.4s var(--ease) both;
    }
    .mission-media::before {
      content: ""; position: absolute; inset: 0;
      background: linear-gradient(90deg, #4E120F 0%, rgba(78,18,15,.85) 8%, rgba(78,18,15,.45) 20%, rgba(78,18,15,0) 38%);
    }
    .mission-inner {
      position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
      min-height: 428px; padding: 58px 32px 62px;
    }
    .mission .eyebrow { color: #fff; letter-spacing: .26em; }
    .mission h2 { color: #fff; font-size: clamp(2.4rem, 4vw, 3.5rem); margin-top: 22px; line-height: 1.02; max-width: 450px; }
    .mission-text { align-self: end; justify-self: end; max-width: 350px; font-size: 1.05rem; line-height: 1.5; color: #3B3230; }
    @keyframes float { from { transform: translateY(0); } to { transform: translateY(-6px); } }

    /* =========================================================
       8. SHARED SECTIONS
       ========================================================= */
    .section { padding: 100px 0; }
    .section.tight { padding-top: 0; }
    .section-head { max-width: 680px; margin-bottom: 52px; }
    .section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); margin-top: 12px; }
    .section-head p { margin-top: 16px; font-size: 1.05rem; }

    /* Explore cards on home */
    .explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
    .explore-card {
      display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
      padding: 36px 32px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
    }
    .explore-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
    .explore-card .emoji { width: 58px; height: 58px; border-radius: 16px; background: var(--red-soft); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 22px; }
    .explore-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--ink); margin-bottom: 10px; }
    .explore-card p { flex: 1; }
    .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); }
    .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
    .explore-card:hover .more svg { transform: translateX(5px); }

    /* Dark CTA strip */
    .cta-strip {
      display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
      background: var(--ink); color: #fff; border-radius: 26px; padding: 56px 60px; position: relative; overflow: hidden;
    }
    .cta-strip::after { content: ""; position: absolute; width: 360px; height: 360px; right: -90px; top: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(204,51,51,.55), transparent 70%); }
    .cta-strip h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); max-width: 600px; line-height: 1.15; position: relative; z-index: 1; }
    .cta-strip p { color: #CFC6C2; margin-top: 10px; position: relative; z-index: 1; }
    .cta-strip .btn { position: relative; z-index: 1; }

    /* Inner page header: copy left, illustration right */
    .page-hero { border-bottom: 1px solid var(--line); overflow: hidden; }
    .page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; min-height: 420px; padding: 72px 32px; }
    .page-hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.9rem); margin-top: 14px; }
    .page-hero p { margin-top: 22px; max-width: 520px; font-size: 1.08rem; }
    .hero-art {
      position: relative; height: 340px; border-radius: 24px; overflow: hidden;
      background: linear-gradient(135deg, #F3E9E4, #E6D6CF); box-shadow: var(--shadow-md);
    }
    .hero-art svg { width: 100%; height: 100%; }
    .art-tag {
      position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; border-radius: 8px;
      background: rgba(31,26,25,.75); color: #fff; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
    }

    /* Two-column text + visual rows */
    .split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
    .split.flip > :first-child { order: 2; }
    .split h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 4px 0 18px; }
    .split p + p { margin-top: 14px; }

    .checks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
    .checks li { display: flex; gap: 14px; align-items: flex-start; }
    .checks .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--red-deep); color: #fff; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
    .checks .tick svg { width: 13px; height: 13px; }

    .visual-card {
      position: relative; border-radius: 22px; overflow: hidden; background: #2A2422; box-shadow: var(--shadow-md);
      aspect-ratio: 4 / 3;
    }
    .visual-card svg { width: 100%; height: 100%; }
    .visual-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .visual-pair .visual-card { aspect-ratio: 1; }
    .caption { margin-top: 10px; font-size: .78rem; color: var(--muted); text-align: center; letter-spacing: .04em; }

    /* Product format cards */
    .formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .format {
      background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; position: relative; overflow: hidden;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    }
    .format::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
    .format:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
    .format:hover::before { transform: scaleX(1); }
    .format .emoji { font-size: 2rem; display: block; margin-bottom: 14px; }
    .format h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-bottom: 8px; }
    .tag { display: inline-block; margin-top: 16px; padding: 5px 12px; border-radius: 999px; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--red-soft); color: var(--red-deep); }
    .tag.muted { background: #F1ECE8; color: var(--muted); }

    /* =========================================================
       9. RESEARCH
       ========================================================= */
    .timeline-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; background: #1E1A19; border-radius: 22px; overflow: hidden; }
    .tm-step { padding: 32px 28px; color: #D9D0CD; border-right: 1px solid rgba(255,255,255,.08); position: relative; }
    .tm-step:last-child { border-right: 0; }
    .tm-step .day { font-family: var(--serif); font-size: 2.4rem; color: #fff; line-height: 1; }
    .tm-step .day small { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #E58F84; display: block; margin-bottom: 8px; }
    .tm-step p { margin-top: 12px; font-size: .92rem; }
    .tm-step .glow { position: absolute; top: 24px; right: 24px; width: 12px; height: 12px; border-radius: 50%; background: #5B8CFF; box-shadow: 0 0 14px #5B8CFF; }
    .tm-step:nth-child(2) .glow { background: #6EE07A; box-shadow: 0 0 14px #6EE07A; }
    .tm-step:nth-child(3) .glow { background: #E58F84; box-shadow: 0 0 14px #E58F84; animation: pulse 2s ease-in-out infinite; }
    @keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }

    .models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .model {
      background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    }
    .model:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
    .model svg { width: 92px; height: 92px; margin: 0 auto 16px; }
    .model h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
    .model p { font-size: .85rem; color: var(--muted); margin-top: 4px; }

    .result { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
    .ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
    .ct { background: #0E0C0C; border-radius: 18px; padding: 14px; box-shadow: var(--shadow-md); }
    .ct svg { width: 100%; aspect-ratio: 1; }
    .ct h4 { color: #fff; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; }
    .ct-note { grid-column: 1 / -1; font-size: .76rem; color: var(--muted); text-align: center; }

    /* =========================================================
       10. TEAM
       ========================================================= */
    .people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .person {
      background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    }
    .person:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
    .avatar {
      width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 20px;
      font-family: var(--serif); font-size: 1.9rem; color: #fff;
      background: linear-gradient(135deg, var(--red-ink), var(--red));
      box-shadow: 0 0 0 5px var(--red-soft); transition: transform .4s var(--ease);
    }
    .person:hover .avatar { transform: scale(1.06) rotate(-4deg); }
    .avatar.alt { background: linear-gradient(135deg, #2A2422, #6E5A55); box-shadow: 0 0 0 5px #EFE8E4; }
    .person h3 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; color: var(--ink); line-height: 1.2; }
    .person .role { font-size: .8rem; font-weight: 600; color: var(--red-deep); margin: 6px 0 4px; }
    .person .cred { font-size: .78rem; color: var(--muted); line-height: 1.45; margin-bottom: 12px; }
    .person p { font-size: .9rem; }

    /* =========================================================
       11. FUNDING
       ========================================================= */
    .path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
    .path-step { text-align: center; position: relative; padding: 0 8px; }
    .path-step:not(:last-child)::after {
      content: "→"; position: absolute; right: -18px; top: 46px; color: var(--red); font-size: 1.4rem;
    }
    .ring {
      width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 20px; display: grid; place-items: center;
      border: 2px solid var(--red-deep); color: var(--red-deep); background: var(--paper);
      transition: transform .4s var(--ease), background .3s, color .3s;
    }
    .ring svg { width: 44px; height: 44px; }
    .path-step:hover .ring { transform: translateY(-6px); background: var(--red-deep); color: #fff; }
    .path-step.current .ring { background: var(--red-deep); color: #fff; box-shadow: 0 0 0 8px var(--red-soft); animation: beacon 2.6s ease-in-out infinite; }
    @keyframes beacon { 50% { box-shadow: 0 0 0 16px rgba(246,227,224,.4); } }
    .path-step h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); }
    .path-step .now { display: inline-block; margin-top: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
    .path-step p { font-size: .9rem; margin-top: 8px; }

    .downstream {
      display: flex; gap: 28px; align-items: center; margin-top: 72px; padding: 36px 40px;
      border: 1px solid var(--red-line); border-radius: var(--radius); background: var(--paper);
    }
    .downstream svg { width: 64px; height: 64px; color: var(--red-deep); flex-shrink: 0; }
    .downstream p { margin-top: 6px; }

    .grants { margin-top: 72px; }
    .grant-list { display: grid; gap: 16px; margin-top: 24px; }
    .grant {
      display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: center;
      background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px;
      transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    }
    .grant:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .grant h3 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); line-height: 1.25; }
    .grant .sponsor { font-size: .85rem; color: var(--muted); margin-top: 4px; }
    .grant .meta { text-align: right; }
    .grant .status {
      display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
      padding: 6px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-deep);
    }
    .grant .status.planned { background: transparent; border: 1px solid var(--red-line); color: var(--muted); }
    .grant .date { display: block; font-size: .85rem; color: var(--ink); margin-top: 8px; }
    @media (max-width: 640px) {
      .grant { grid-template-columns: 1fr; padding: 22px; }
      .grant .meta { text-align: left; }
    }

    /* =========================================================
       12. CONTACT
       ========================================================= */
    .contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; }
    .contact-main {
      position: relative; overflow: hidden; border-radius: 28px; padding: 60px 56px; color: #fff;
      background: linear-gradient(135deg, var(--red-ink) 0%, var(--red-deep) 60%, var(--red) 100%);
    }
    .contact-main::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; border: 40px solid rgba(255,255,255,.07); }
    .contact-main .eyebrow { color: #fff; opacity: .85; }
    .contact-main h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; margin: 16px 0 18px; }
    .contact-main p { opacity: .9; max-width: 440px; margin-bottom: 30px; }
    .contact-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
    .contact-main .btn-outline-w { border-color: rgba(255,255,255,.6); color: #fff; }
    .contact-main .btn-outline-w:hover { background: #fff; color: var(--red-ink); transform: translateY(-2px); }
    .email-line { display: inline-block; margin-top: 24px; font-size: .95rem; opacity: .85; word-break: break-all; position: relative; z-index: 1; }
    .email-line:hover { opacity: 1; text-decoration: underline; }

    .info-stack { display: grid; gap: 20px; }
    .info-card {
      display: flex; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line);
      border-radius: var(--radius); padding: 26px 28px; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    }
    .info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
    .info-card .emoji { width: 54px; height: 54px; border-radius: 14px; background: var(--red-soft); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
    .info-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.22rem; color: var(--ink); }
    .info-card p { font-size: .9rem; }

    /* =========================================================
       13. FOOTER
       ========================================================= */
    .site-footer { background: #171313; color: #CFC6C2; padding: 72px 0 28px; }
    .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
    .site-footer .logo-text strong { color: #fff; font-size: 1.45rem; }
    .site-footer .logo-text span { color: #9C928E; }
    .site-footer .logo-word { height: 26px; }
    .site-footer .logo-mark { filter: brightness(1.45) saturate(1.1); }
    .footer-about { margin-top: 20px; max-width: 360px; font-size: .93rem; color: #A99F9B; }
    .site-footer h4 { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
    .footer-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
    .footer-links a { transition: color .25s, padding .25s; }
    .footer-links a:hover { color: #fff; padding-left: 6px; }
    .footer-contact { display: grid; gap: 14px; font-size: .95rem; }
    .footer-contact a { display: flex; gap: 12px; align-items: center; transition: color .25s; word-break: break-all; }
    .footer-contact a:hover { color: #fff; }
    .footer-contact svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
    .footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: .82rem; color: #8B827E; }

    /* =========================================================
       14. RESPONSIVE
       ========================================================= */
    @media (max-width: 1180px) {
      .features { grid-template-columns: repeat(2, auto); row-gap: 26px; }
      .feature:nth-child(3) { padding-left: 0; border-left: 0; }
      .people, .models { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 1080px) {
      :root { --nav-h: 74px; }
      .menu-toggle { display: flex; }
      .nav-cta { display: none; }
      .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
        padding: 8px 24px 24px;
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform .3s var(--ease), opacity .3s;
      }
      .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
      .nav-links li { border-bottom: 1px solid var(--line); }
      .nav-links li.mobile-only { border-bottom: 0; padding-top: 18px; }
      .nav-links a { display: block; padding: 17px 0; font-size: .82rem; }
      .nav-links a::after { display: none; }
      .nav-links .btn { display: inline-flex; padding: 14px 26px; color: #fff; }
    }
    @media (min-width: 1081px) { .mobile-only { display: none; } }

    @media (max-width: 900px) {
      /* Photos stack above the text on small screens */
      .hero-media { position: relative; width: 100%; height: 300px; background-position: 70% center; }
      .hero-media::after { background: linear-gradient(180deg, rgba(250,246,242,0) 55%, var(--cream) 100%); }
      .hero-inner { padding: 24px 24px 48px; }
      .mission-media { position: relative; width: 100%; height: 300px; background-position: 30% center; }
      .mission-media::before { background: linear-gradient(0deg, #4A110F 0%, rgba(74,17,15,0) 45%); }
      .mission-inner { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding: 32px 24px 64px; }
      .mission-text { justify-self: start; color: #F1E4E1; }

      .page-hero-grid, .split, .result, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
      .page-hero-grid { padding: 56px 24px; gap: 36px; }
      .split.flip > :first-child { order: 0; }
      .split { gap: 36px; }
      .hero-art { height: 260px; }
      .explore, .formats, .timeline-mini { grid-template-columns: 1fr; }
      .tm-step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
      .path { grid-template-columns: 1fr 1fr; row-gap: 40px; }
      .path-step::after { display: none; }
      .downstream { flex-direction: column; align-items: flex-start; padding: 30px; }
      .cta-strip { padding: 44px 32px; }
    }

    @media (max-width: 600px) {
      .container { padding: 0 20px; }
      .logo-mark { width: auto; height: 38px; }
      .logo-word { height: 21px; }
      .logo-text strong { font-size: 1.35rem; }
      .logo-text span { font-size: .5rem; letter-spacing: .24em; }
      .features, .people, .models, .path { grid-template-columns: 1fr; }
      .feature { padding-left: 0; border-left: 0; }
      .section { padding: 76px 0; }
      .contact-main { padding: 40px 28px; }
      .btn { padding: 15px 24px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .apatara *, .apatara *::before, .apatara *::after { animation: none !important; transition: none !important; }
    }
  
    /* Team headshots: circular crop, preserve existing avatar design */
    .person .avatar { overflow: hidden; }
    .person .avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; border-radius: 50%; }


/* ===== APATARA HOMEPAGE IMAGE CONTROLS =====
   Both uploaded PNGs are embedded directly in this HTML file.
   Edit the values below to adjust cropping and image positioning.
   Position: 50% 50% = center; 70% 50% = shift focus right.
   Width: percentage of section covered by the image.
   Fade controls how gently each image blends into the background.
*/
:root {
  --top-image-width: 68%;
  --top-image-position: 58% 50%;
  --bottom-image-width: 70%;
  --bottom-image-position: 53% 50%;
  --top-fade-edge: 43%;
  --bottom-fade-edge: 43%;
}
.hero-media {
  width: var(--top-image-width);
  background-position: var(--top-image-position);
}
.hero-media::after {
  background: linear-gradient(90deg,
    var(--cream) 0%,
    rgba(250,246,242,.96) 10%,
    rgba(250,246,242,.68) 25%,
    rgba(250,246,242,0) var(--top-fade-edge));
}
.mission-media {
  width: var(--bottom-image-width);
  background-position: var(--bottom-image-position);
}
.mission-media::before {
  background: linear-gradient(90deg,
    #4E120F 0%,
    rgba(78,18,15,.96) 10%,
    rgba(78,18,15,.62) 27%,
    rgba(78,18,15,0) var(--bottom-fade-edge));
}
@media (max-width: 900px) {
  .hero-media, .mission-media { width: 100%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(250,246,242,0) 45%, var(--cream) 100%);
  }
  .mission-media::before {
    background: linear-gradient(0deg, #4E120F 0%, rgba(78,18,15,0) 55%);
  }
}

/* Reliable embedded hero image; adjust with existing image controls. */
.hero-media { overflow: hidden; }
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--top-image-position); }
.hero-media::after { pointer-events: none; }
@media (max-width: 700px) { .hero-photo { object-position: 70% center; } }


/* Technology tab image controls — adjust these values to reframe uploaded images */
:root { --technology-image-1-position: 50% 50%; --technology-image-2-position: 50% 50%; --technology-image-3-position: 50% 50%; }
[data-page="technology"] .technology-photo { display:block; width:100%; height:100%; object-fit:cover; }
[data-page="technology"] .hero-art > .technology-photo { position:absolute; inset:0; object-position:var(--technology-image-1-position); }
[data-page="technology"] .visual-card > .technology-photo { object-position:var(--technology-image-2-position); }
[data-page="technology"] .visual-pair .visual-card > .technology-photo { object-position:var(--technology-image-3-position); }

/* =========================================================
   15. WORDPRESS THEME ADDITIONS
   ========================================================= */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); }
.apatara-site { min-height: 100vh; display: flex; flex-direction: column; }
.apatara-site > main { flex: 1; }
.apatara a { text-decoration: none; }
.apatara .email-line:hover { text-decoration: underline; }
/* Pages pasted earlier carry a full-width wrapper; the theme is already full width. */
.apatara .apatara.apatara-full { width: auto; position: static; left: auto; margin-left: 0; max-width: none; }
/* Menus built in Appearance → Menus */
.nav-links .current-menu-item > a, .nav-links .current_page_item > a { color: var(--red-deep); font-weight: 600; }
.nav-links .current-menu-item > a::after, .nav-links .current_page_item > a::after { transform: scaleX(1); }
.footer-links .sub-menu, .nav-links .sub-menu { display: none; }
/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 1080px) {
  .admin-bar .nav-links { top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 782px) { .admin-bar .nav-links { top: calc(var(--nav-h) + 46px); } }
/* Ordinary pages and posts (anything not built from the Apatara page files) */
.apatara-plain { padding: 72px 32px 96px; max-width: 820px; }
.apatara-plain .entry-title { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin-bottom: 28px; }
.apatara-plain .entry > * + * { margin-top: 1.1em; }
.apatara-plain .entry h2, .apatara-plain .entry h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; margin-top: 1.6em; }
.apatara-plain .entry ul, .apatara-plain .entry ol { padding-left: 1.4em; }
.apatara-plain .entry a { color: var(--red-deep); text-decoration: underline; }
.apatara-plain .entry img { max-width: 100%; height: auto; }
.apatara-plain article + article { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
