/*
Theme Name: Hina Wajid
Theme URI: https://www.hinawajid.com
Author: Hina Wajid · Built with care
Author URI: https://www.hinawajid.com
Description: A bold, single-page personal site for Hina Wajid — ARDMS educator and sonographer. Ultrasound-themed visual identity, scroll-triggered reveals, sonar pulses, marquee of nations. No image uploads required: every visual is SVG/CSS art generated by the theme.
Version: 3.5.0
Requires at least: 6.0
Tested up to: 6.6
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: hina-wajid
Tags: minimal, modern, one-page, portfolio, education
*/

/* =========================================================================
   Design tokens
   ========================================================================= */
:root {
    --ink:        #0A0A0A;
    --ink-2:      #2A2A2A;
    --ink-3:      #5A5A5A;
    --paper:      #F6F4EE;
    --paper-2:    #ECE8DD;
    --teal:       #0F4C5C;
    --teal-deep:  #08323D;
    --teal-2:     #1D6776;
    --coral:      #E36F6F;
    --coral-2:    #F2A5A5;
    --line:       rgba(10,10,10,0.12);

    --serif:      'Fraunces', 'Times New Roman', Georgia, serif;
    --sans:       'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --maxw:       1240px;
    --gutter:     clamp(20px, 4vw, 56px);

    --ease:       cubic-bezier(.22, 1, .36, 1);
    --ease-out:   cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================================
   Reset & base
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-smooth { scroll-behavior: auto; }
body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
::selection { background: var(--coral); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.04;
    margin: 0 0 .5em;
    font-weight: 500;
    letter-spacing: -0.025em;
    font-variation-settings: "opsz" 96;
}
.h-hero    { font-size: clamp(2.8rem, 9vw, 8.2rem); font-weight: 500; }
.h-section { font-size: clamp(2rem, 6vw, 4.6rem); font-weight: 500; }
.h-block   { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; }

p { margin: 0 0 1em; }
.lede { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--ink-2); max-width: 56ch; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.section {
    padding: clamp(80px, 12vw, 180px) 0;
    position: relative;
}
.section--tight { padding: clamp(60px, 8vw, 120px) 0; }

/* =========================================================================
   Scroll progress bar (top)
   ========================================================================= */
.progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    z-index: 200;
    pointer-events: none;
}
.progress__bar {
    height: 100%;
    width: 0%;
    background: var(--coral);
    transition: width .08s linear;
}

/* =========================================================================
   Side rail (section dots)
   ========================================================================= */
.rail {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: auto;
}
.rail a {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--ink-3);
    transition: all .25s var(--ease);
    position: relative;
    display: block;
}
.rail a:hover { border-color: var(--ink); background: var(--ink); }
.rail a.is-active {
    background: var(--coral);
    border-color: var(--coral);
    transform: scale(1.25);
}
.rail a::after {
    content: attr(data-label);
    position: absolute;
    right: 22px; top: 50%;
    transform: translateY(-50%) translateX(8px);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--paper);
    padding: 5px 10px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .25s var(--ease);
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.rail a:hover::after, .rail a.is-active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
@media (max-width: 900px) { .rail { display: none; } }

/* =========================================================================
   Header
   ========================================================================= */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.header.is-scrolled {
    background: rgba(246, 244, 238, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line);
    padding: 14px 0;
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand__mark {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 600;
}
.brand--logo { display: inline-flex; align-items: center; }
.brand--logo img,
.custom-logo { max-height: 48px; width: auto; display: block; }
.brand small {
    display: block;
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink-3);
    margin-top: 2px;
}
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav a {
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--ink);
    padding: 10px 14px;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
    font-weight: 500;
}
.nav a:hover { background: rgba(10,10,10,.06); }
.nav .nav__cta {
    background: var(--ink);
    color: var(--paper);
    padding: 11px 20px;
    border-radius: 999px;
    margin-left: 8px;
}
.nav .nav__cta:hover { background: var(--coral); color: #fff; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 40px; height: 40px;
    padding: 0;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1;
}
@media (max-width: 880px) {
    .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--paper);
        padding: 14px 0 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--line);
        display: none;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 14px 24px; border-radius: 0; }
    .nav .nav__cta { margin: 12px 24px 0; border-radius: 999px; padding: 14px 20px; text-align: center; }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 17px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease;
    line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--coral); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--coral { background: var(--coral); color: #fff; }
.btn--coral:hover { background: var(--ink); color: var(--paper); }
.btn--paper { background: var(--paper); color: var(--ink); }
.btn--paper:hover { background: var(--coral); color: #fff; }
.btn .arrow {
    display: inline-block;
    transition: transform .25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   Hero (Section 1) — kinetic editorial
   ========================================================================= */
.hero {
    min-height: 100vh;
    padding: 160px 0 80px;
    position: relative;
    display: flex;
    align-items: center;
}
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
/* Floating orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    animation: drift 22s ease-in-out infinite alternate;
}
.orb--1 { width: 520px; height: 520px; background: var(--coral); top: -80px; right: -120px; }
.orb--2 { width: 420px; height: 420px; background: var(--teal-2); bottom: -100px; left: -100px; animation-duration: 28s; }
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.12); }
}
.hero__grain {
    position: absolute; inset: 0;
    opacity: .35;
    pointer-events: none;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/></svg>");
}
.hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-2);
    font-weight: 600;
    margin-bottom: 28px;
}
.hero__eyebrow::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 0 rgba(227, 111, 111, 0.6);
    animation: pulse 1.6s infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(227,111,111,0.55); }
    70%  { box-shadow: 0 0 0 18px rgba(227,111,111,0); }
    100% { box-shadow: 0 0 0 0 rgba(227,111,111,0); }
}
.hero h1 {
    margin: 0 0 36px;
    max-width: 16ch;
}
.hero h1 em {
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
    color: var(--coral);
}
.hero h1 .scan {
    display: inline-block;
    background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 50%, var(--teal) 50%, var(--teal) 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: scan-reveal 4s var(--ease-out) infinite;
}
@keyframes scan-reveal {
    0%, 30%   { background-position: 100% 0; }
    70%, 100% { background-position: 0 0; }
}
.hero__meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: end;
    margin-top: 56px;
}
.hero__sub { max-width: 48ch; color: var(--ink-2); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) {
    .hero__meta { grid-template-columns: 1fr; gap: 32px; }
}

/* Hero sonar / pulse visualization */
.sonar {
    position: absolute;
    bottom: 80px; right: var(--gutter);
    width: 220px; height: 220px;
    pointer-events: none;
}
.sonar__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--ink);
    opacity: 0;
    transform: scale(.3);
    animation: sonar 4s ease-out infinite;
}
.sonar__ring:nth-child(2) { animation-delay: 1s; }
.sonar__ring:nth-child(3) { animation-delay: 2s; }
.sonar__ring:nth-child(4) { animation-delay: 3s; }
.sonar__dot {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 6px rgba(227,111,111,.18);
}
@keyframes sonar {
    0%   { opacity: .6; transform: scale(.3); }
    100% { opacity: 0;  transform: scale(1.3); }
}
@media (max-width: 880px) {
    .sonar { width: 140px; height: 140px; bottom: 24px; right: 24px; opacity: .5; }
}

/* =========================================================================
   Marquee strip
   ========================================================================= */
.marquee {
    background: var(--ink);
    color: var(--paper);
    padding: 22px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255,255,255,.08);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.marquee__track {
    display: flex;
    gap: 64px;
    width: max-content;
    animation: marquee 38s linear infinite;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    align-items: center;
    will-change: transform;
}
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}
.marquee__item .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--coral);
    display: inline-block;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================================================
   About / Story
   ========================================================================= */
.story { background: var(--paper); }
.story__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(40px, 6vw, 100px);
    align-items: start;
}
.story__label {
    font-family: var(--sans);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: var(--ink-3);
    margin-bottom: 16px;
}
.story__portrait {
    aspect-ratio: 4/5;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(8,50,61,.45);
}
.story__portrait::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(255,255,255,.22) 0%, transparent 55%),
        radial-gradient(circle at 25% 80%, rgba(227,111,111,.25) 0%, transparent 50%);
}
.story__portrait::after {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
}

/* When a real photo is uploaded, swap the gradient placeholder for a clean
   dark overlay that keeps the bottom caption readable. */
.story__portrait.has-image {
    background-color: var(--ink);
}
.story__portrait.has-image::before {
    background:
        linear-gradient(180deg,
            rgba(10,10,10,0) 30%,
            rgba(10,10,10,0.55) 70%,
            rgba(10,10,10,0.85) 100%);
}
.story__portrait.has-image::after {
    border-color: rgba(255,255,255,.28);
}
.story__portrait.has-image .story__portrait-tag {
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.story__portrait-tag {
    position: absolute;
    bottom: 28px; left: 28px; right: 28px;
    color: #fff;
    font-family: var(--serif);
    line-height: 1.25;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}
.story__portrait-tag small {
    display: block;
    font-family: var(--sans);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .72;
    margin-bottom: 12px;
    font-weight: 500;
}
.story h2 { margin-bottom: 32px; }
.story p { color: var(--ink-2); font-size: 1.1rem; }
.story__highlight {
    border-left: 2px solid var(--coral);
    padding: 4px 0 4px 22px;
    margin: 28px 0;
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--ink);
    font-style: italic;
}
.story__bullets {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.story__bullets li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 16px;
    align-items: start;
    color: var(--ink-2);
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.story__bullets li::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    margin-top: 9px;
    background: var(--coral);
    border-radius: 50%;
}
@media (max-width: 880px) {
    .story__grid { grid-template-columns: 1fr; }
    .story__portrait { max-width: 360px; }
}

/* =========================================================================
   Stats counters
   ========================================================================= */
.stats {
    background: var(--paper-2);
    border-block: 1px solid var(--line);
}
.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
}
.stat {
    background: var(--paper-2);
    padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px);
    position: relative;
}
.stat__num {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    font-variation-settings: "opsz" 144;
}
.stat__num .suffix { color: var(--coral); }
.stat__label {
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ink-3);
    font-weight: 600;
}
@media (max-width: 700px) {
    .stats__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Method (How I teach)
   ========================================================================= */
.method { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.method h2 { color: var(--paper); }
.method__intro { color: rgba(246,244,238,.7); max-width: 60ch; font-size: 1.1rem; }
.method__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.1);
    margin-top: 64px;
    border: 1px solid rgba(255,255,255,.1);
}
.pillar {
    background: var(--ink);
    padding: 48px 36px 56px;
    position: relative;
    transition: background .35s var(--ease);
}
.pillar:hover { background: rgba(255,255,255,.04); }
.pillar__num {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: .14em;
    color: var(--coral);
    margin-bottom: 28px;
    font-weight: 600;
}
.pillar h3 {
    color: var(--paper);
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    margin: 0 0 18px;
    max-width: 14ch;
}
.pillar p { color: rgba(246,244,238,.7); margin: 0; font-size: 1rem; }
.pillar__wave {
    margin-top: 36px;
    height: 36px;
    width: 100%;
    overflow: hidden;
}
@media (max-width: 880px) {
    .method__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Courses
   ========================================================================= */
.courses__head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 64px;
}
.courses__intro { color: var(--ink-2); font-size: 1.1rem; max-width: 50ch; }
.courses__list {
    display: grid;
    gap: 1px;
    background: var(--line);
    border-block: 1px solid var(--line);
}
.course {
    background: var(--paper);
    padding: 48px clamp(20px, 4vw, 56px);
    display: grid;
    grid-template-columns: 80px 1.4fr 2fr auto;
    align-items: center;
    gap: 36px;
    transition: background .3s var(--ease);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.course:hover { background: var(--paper-2); }
.course__num {
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--ink-3);
    letter-spacing: -.02em;
}
.course__name h3 {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    margin: 0 0 4px;
}
.course__name .tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--coral);
    font-weight: 600;
}
.course__desc { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.course__cta {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all .3s var(--ease);
    background: transparent;
    color: var(--ink);
}
.course:hover .course__cta {
    background: var(--ink);
    color: var(--paper);
    transform: rotate(-45deg);
}
.course__details {
    grid-column: 1 / -1;
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease), padding .35s var(--ease);
    padding: 0;
}
.course.is-open .course__details {
    max-height: 1000px;
    padding-top: 36px;
}
.course__details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.course__details-text { max-width: 880px; }
.course__details-text h4 + ul { margin-top: 0; }
.course__details-text h4 + h4 { margin-top: 1.5em; }
.course__details h4 {
    font-family: var(--sans);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 14px;
    font-weight: 600;
}
.course__details ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.course__details li { margin-bottom: 8px; }
@media (max-width: 980px) {
    .courses__head { grid-template-columns: 1fr; gap: 24px; }
    .course { grid-template-columns: 50px 1fr 56px; }
    .course__desc { grid-column: 1 / -1; }
    .course__details-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================================
   World map (SVG)
   ========================================================================= */
.world {
    background: var(--teal-deep);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}
.world h2 { color: var(--paper); }
.world__intro { color: rgba(246,244,238,.7); max-width: 56ch; margin-bottom: 56px; }
.world__map {
    width: 100%;
    aspect-ratio: 2 / 1;
    position: relative;
}
.world__map svg { width: 100%; height: 100%; display: block; }
.world__map .land { fill: rgba(246,244,238,.07); stroke: rgba(246,244,238,.18); stroke-width: .5; transition: fill .3s ease; }
.world__pin {
    fill: var(--coral);
    transform-origin: center;
    transform-box: fill-box;
    animation: pinPulse 2.2s ease-in-out infinite;
}
.world__pin--ring { fill: none; stroke: var(--coral); stroke-width: 1; transform-origin: center; transform-box: fill-box; animation: pinRing 2.2s ease-out infinite; }
@keyframes pinPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: .8; }
}
@keyframes pinRing {
    0%   { transform: scale(.5); opacity: .8; }
    100% { transform: scale(3.5); opacity: 0; }
}
.world__legend {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    flex-wrap: wrap;
    color: rgba(246,244,238,.7);
    font-size: .9rem;
}
.world__legend strong { color: var(--paper); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; display: block; margin-bottom: 4px; letter-spacing: -.02em; }

/* =========================================================================
   Testimonials
   ========================================================================= */
.wins { background: var(--paper); }
.wins__head { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; align-items: end; margin-bottom: 56px; }
.wins__head p { color: var(--ink-2); max-width: 44ch; }
.wins__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.win {
    background: var(--paper-2);
    padding: 40px 36px;
    border-radius: 6px;
    position: relative;
    transition: transform .3s var(--ease), background .3s ease;
    overflow: hidden;
}
.win:hover { transform: translateY(-4px); background: #fff; }
.win__score {
    font-family: var(--serif);
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--coral);
    letter-spacing: -.04em;
    margin: 0 0 24px;
    font-weight: 500;
}
.win__quote {
    font-family: var(--serif);
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--ink);
    margin: 0 0 24px;
}
.win__author {
    font-size: .9rem;
    color: var(--ink-3);
    display: flex;
    gap: 10px;
    align-items: center;
}
.win__author strong { color: var(--ink); display: block; font-weight: 600; }
.win__author .flag { font-size: 1.3rem; }
.win:nth-child(2) .win__score { color: var(--teal); }
.win:nth-child(3) .win__score { color: var(--coral); }
.win:nth-child(4) .win__score { color: var(--teal); }
@media (max-width: 720px) {
    .wins__grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Insights / Blog preview
   ========================================================================= */
.insights__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.insight {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 32px 30px;
    transition: transform .3s var(--ease), border-color .3s ease;
    display: flex;
    flex-direction: column;
}
.insight:hover { transform: translateY(-4px); border-color: var(--ink); }
.insight__meta {
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 14px;
    font-weight: 600;
}
.insight h3 {
    font-size: 1.3rem;
    margin: 0 0 14px;
    color: var(--ink);
}
.insight p { color: var(--ink-2); font-size: .95rem; flex-grow: 1; }
.insight__more {
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
    align-self: flex-start;
}
@media (max-width: 880px) { .insights__grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Contact (final section)
   ========================================================================= */
.contact { background: var(--coral); color: var(--paper); position: relative; overflow: hidden; }
.contact h2 { color: var(--paper); font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 24px; }
.contact__head { max-width: 24ch; }
.contact__intro { color: rgba(246,244,238,.9); font-size: 1.15rem; max-width: 44ch; }
.contact__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 80px;
    margin-top: 64px;
    align-items: start;
}
.contact__left ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact__left li {
    color: rgba(246,244,238,.9);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    align-items: baseline;
}
.contact__left strong {
    color: var(--paper);
    font-family: var(--sans);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
}
.contact__left a { color: var(--paper); border-bottom: 1px solid rgba(255,255,255,.4); }
.contact__form {
    background: var(--paper);
    color: var(--ink);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.3);
}
.contact__form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--ink-3);
    font-weight: 600;
    margin-bottom: 6px;
}
.contact__form input,
.contact__form select,
.contact__form textarea {
    width: 100%;
    padding: 14px 0 12px;
    border: 0;
    border-bottom: 1.5px solid var(--ink);
    background: transparent;
    font: inherit;
    font-size: 1rem;
    margin-bottom: 22px;
    color: var(--ink);
    border-radius: 0;
    transition: border-color .2s ease;
}
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { outline: none; border-color: var(--coral); }
.contact__form textarea { min-height: 110px; resize: vertical; }
.contact__form .form-status { margin-bottom: 14px; padding: 12px 14px; border-radius: 6px; display: none; }
.contact__form .form-status.success { background: rgba(15,76,92,.08); color: var(--teal); display: block; }
.contact__form .form-status.error   { background: rgba(227,111,111,.12); color: var(--coral); display: block; }
@media (max-width: 880px) {
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .contact__form .row { grid-template-columns: 1fr; gap: 0; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background: var(--ink);
    color: var(--paper);
    padding: 80px 0 32px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}
.footer__brand {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.05;
    max-width: 18ch;
    margin: 0 0 18px;
    font-weight: 500;
}
.footer__brand em { font-style: italic; color: var(--coral); }
.footer__tag { color: rgba(246,244,238,.65); font-size: 1rem; max-width: 38ch; }
.footer h4 {
    color: var(--paper);
    font-family: var(--sans);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 600;
    margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer a { color: rgba(246,244,238,.7); transition: color .2s ease; }
.footer a:hover { color: var(--coral); }
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .85rem;
    color: rgba(246,244,238,.45);
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================================
   Inner pages (single post, blog list, archive)
   ========================================================================= */
.page-hero {
    padding: 180px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero h1 { max-width: 22ch; margin: 0 auto 22px; }
.page-hero__sub { color: var(--ink-2); font-size: 1.18rem; max-width: 60ch; margin: 0 auto; }

.article {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink-2);
}
.article h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; color: var(--ink); }
.article h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.3em; color: var(--ink); }
.article p, .article ul, .article ol { color: var(--ink-2); }
.article ul li::marker { color: var(--coral); }
.article blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    border-left: 3px solid var(--coral);
    background: var(--paper-2);
    font-family: var(--serif);
    font-size: 1.18rem;
    font-style: italic;
    color: var(--ink);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

/* =========================================================================
   Reveal animations — only hidden when JS is confirmed running
   (the .hw-js class is added to <html> by main.js the moment it executes).
   Without JS, content stays visible — no blank pages, ever.
   ========================================================================= */
.hw-js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
    transition-delay: 0s;
    will-change: opacity, transform;
}
.hw-js .reveal.is-in { opacity: 1; transform: translateY(0); }
.hw-js .reveal[data-d="1"] { transition-delay: .1s; }
.hw-js .reveal[data-d="2"] { transition-delay: .2s; }
.hw-js .reveal[data-d="3"] { transition-delay: .3s; }
.hw-js .reveal[data-d="4"] { transition-delay: .4s; }

/* "Scan reveal" effect (clip-path) — also JS-gated */
.hw-js .scan-in {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.3s var(--ease-out);
}
.hw-js .scan-in.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .hw-js .reveal, .hw-js .scan-in { opacity: 1; transform: none; clip-path: none; }
}

/* Smooth anchor scroll target — clear of the sticky header */
section[id] { scroll-margin-top: 80px; }

/* Accessible focus rings */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--coral);
    outline-offset: 2px;
}

/* =========================================================================
   Utilities
   ========================================================================= */
.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mt-4 { margin-top: 48px; }
.text-eyebrow {
    display: inline-block;
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink-3);
    margin-bottom: 18px;
}
.text-eyebrow--coral { color: var(--coral); }
.text-eyebrow--paper { color: rgba(246,244,238,.65); }
