/*
 * Naram Alhasani — Systems Architect
 * Editorial grid. Ledger rows. One accent.
 */

:root {
    --u: 8px;
    --page: clamp(20px, 3.5vw, 56px);
    --gutter: 24px;

    --paper: #fbfbf9;
    --ink: #0a0a0a;
    --accent: #2334e6;
    --dim: rgba(10, 10, 10, 0.55);
    --line: rgba(10, 10, 10, 0.12);
    --line-strong: rgba(10, 10, 10, 0.35);
    --live: #22c55e;

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

section[id] { scroll-margin-top: 84px; }

body {
    font-family: var(--font);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    animation: fadeIn 0.4s var(--ease);
}

/* Soft washes + film grain */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse 100% 60% at 80% -20%, rgba(35, 52, 230, 0.06), transparent 62%),
        radial-gradient(ellipse 70% 50% at -10% 110%, rgba(10, 10, 10, 0.035), transparent 70%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; text-align: inherit; }

.r { color: var(--accent); }

/* ========================================
   Layout primitives
   ======================================== */

.wrap {
    position: relative;
    padding: 0 var(--page);
}

.row12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
}

/* Full-bleed band inside .wrap */
.bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: calc(var(--u) * 2.5) var(--page);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s var(--ease);
    background: linear-gradient(var(--paper) 62%, transparent);
}

.nav.scrolled {
    background: rgba(251, 251, 249, 0.92);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: calc(var(--u) * 4);
    align-items: center;
}

.nav-links a {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dim);
    padding-bottom: 2px;
    transition: color 0.2s var(--ease);
}

.nav-links a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent);
    margin-right: 8px;
    transform: scale(0);
    transition: transform 0.35s var(--spring);
    vertical-align: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active { color: var(--ink); }
.nav-links a.active::before { transform: scale(1); }

.nav-cta { color: var(--ink) !important; }
.nav-cta::before { display: none !important; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.nav-toggle span {
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.2s var(--ease);
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:first-child { transform: translateY(3.75px) rotate(45deg); }
    .nav-toggle.active span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--u) * 3);
    text-align: center;
}

.mobile-menu-content a {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-menu.active .mobile-menu-content a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu-content a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu-content a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu-content a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu-content a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu-content a:nth-child(5) { transition-delay: 0.25s; }

/* ========================================
   Hero
   ======================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--u) * 14);
    padding-bottom: calc(var(--u) * 10);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--u) * 1.5);
    margin-bottom: calc(var(--u) * 5);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-eyebrow .line {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-weight: 600;
    font-size: clamp(3.5rem, 14.5vw, 19rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
    margin-bottom: calc(var(--u) * 5);
}

.hero-tag {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: var(--ink);
    max-width: 38ch;
    margin-bottom: calc(var(--u) * 5);
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: var(--u);
}

.hero-roles span,
.hero-roles a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--dim);
    padding: 9px 18px;
    border: 1px solid var(--line);
    transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.hero-roles a:hover {
    color: var(--ink);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dim);
}

.scroll-line {
    position: relative;
    width: 48px;
    height: 1px;
    background: var(--line);
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: translateX(-100%);
    animation: scrollLine 2.4s var(--ease) infinite;
}

@keyframes scrollLine {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* ========================================
   Section head: num / title / say
   ======================================== */

section { padding-bottom: calc(var(--u) * 10); }

.sec-head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    align-items: baseline;
    border-top: 1px solid var(--line-strong);
    padding-top: calc(var(--u) * 9);
    padding-bottom: calc(var(--u) * 6);
}

.sec-head .ttl {
    grid-column: 1 / span 8;
    font-size: clamp(2.25rem, 5.2vw, 4.75rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.sec-head .ttl em {
    font-style: normal;
    color: var(--accent);
}

.sec-head .say {
    grid-column: 9 / span 4;
    font-size: 0.8125rem;
    color: var(--dim);
    line-height: 1.5;
    text-align: right;
    letter-spacing: 0.01em;
}

/* ========================================
   About
   ======================================== */

.about-body { align-items: start; }

.about-body .lead {
    grid-column: 1 / span 9;
    font-size: clamp(1.375rem, 2.8vw, 2.25rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.about-photo {
    grid-column: 10 / span 3;
    width: 100%;
    max-width: 200px;
    justify-self: end;
    aspect-ratio: 1;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s var(--ease);
}

.about-photo:hover { filter: grayscale(0%); }

.about-body .cols {
    grid-column: 1 / -1;
    margin-top: calc(var(--u) * 7);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gutter);
    align-items: start;
}

.cols .c {
    border-top: 1px solid var(--line-strong);
    padding-top: calc(var(--u) * 2);
}

.cols .c h4 {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: calc(var(--u) * 1.5);
}

.cols .c p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--dim);
}

/* ========================================
   Work
   ======================================== */

.work-item {
    border-top: 1px solid var(--line);
    padding: calc(var(--u) * 4) 0;
}

.work-item:last-child { border-bottom: 1px solid var(--line); }

.work-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    align-items: baseline;
}

.work-main { grid-column: 1 / span 9; }

.work-period {
    grid-column: 10 / span 3;
    text-align: right;
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
}

.work-company {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.work-company-formwork {
    display: flex;
    align-items: baseline;
    gap: var(--u) calc(var(--u) * 2);
    flex-wrap: wrap;
}

.work-logo {
    height: 26px;
    width: auto;
    display: inline-block;
    transition: opacity 0.2s var(--ease);
}

.work-company-formwork a:hover .work-logo { opacity: 0.7; }

.work-company-note {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--dim);
}

.work-company-note a {
    text-decoration: underline;
    transition: color 0.2s var(--ease);
}

.work-company-note a:hover { color: var(--ink); }

.work-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: calc(var(--u) * 2);
}

.work-description {
    font-size: 0.9375rem;
    color: var(--dim);
    max-width: 60ch;
    line-height: 1.7;
    margin-bottom: calc(var(--u) * 2);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--u);
}

.work-tags span {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 5px 12px;
    border: 1px solid var(--line);
}

/* ========================================
   Systems — the operating index
   ======================================== */

.srow {
    position: relative;
    border-top: 1px solid var(--line);
    isolation: isolate;
}

.srow:last-child { border-bottom: 1px solid var(--line); }

.srow::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%) scaleY(0);
    transform-origin: center;
    background: var(--ink);
    transition: transform 0.4s var(--ease);
    z-index: -1;
}

.srow:hover::before,
.srow.open::before { transform: translateX(-50%) scaleY(1); }

.srow-head {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gutter);
    align-items: center;
    width: 100%;
    padding: calc(var(--u) * 2.5) 0;
    font: inherit;
    transition: color 0.35s var(--ease);
}

.srow-head:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.srow .sname {
    grid-column: 1 / span 6;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1.25rem, 2.4vw, 2.125rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.05;
    transition: transform 0.5s var(--ease);
}

.srow .mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 22px;
    flex-shrink: 0;
}

.srow .mark img,
.srow .mark svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: 100%;
}

.srow .mark svg { width: 22px; }

/* MATTER's mark inherits ink; invert on painted row */
.srow:hover .mark,
.srow.open .mark { filter: invert(1); }
.srow:hover .mark svg,
.srow.open .mark svg { filter: none; color: #fff; }

.srow .arw {
    display: inline-block;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
    color: var(--accent);
    font-weight: 400;
}

.srow .stype {
    grid-column: 7 / span 3;
    font-size: 0.8125rem;
    color: var(--dim);
    letter-spacing: 0.01em;
    transition: color 0.35s var(--ease);
}

.srow .sstamp {
    grid-column: 10 / span 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    text-align: right;
    font-size: 0.6875rem;
    color: var(--dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variant-numeric: tabular-nums;
    transition: color 0.35s var(--ease);
}

.srow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    flex-shrink: 0;
    animation: statusPulse 2.4s ease-out infinite;
}

.srow .dot.dev {
    background: var(--accent);
    animation: none;
}

@keyframes statusPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.srow:hover .srow-head,
.srow.open .srow-head { color: #fff; }

.srow:hover .stype, .srow.open .stype,
.srow:hover .sstamp, .srow.open .sstamp { color: rgba(255, 255, 255, 0.72); }

.srow:hover .sname { transform: translateX(12px); }

.srow:hover .arw,
.srow.open .arw {
    opacity: 1;
    transform: translateX(0);
    color: #fff;
}

.sdetail {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 var(--gutter);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.55s var(--ease);
}

.sdetail p {
    grid-column: 1 / span 8;
    font-size: 0.875rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: calc(var(--u) * 1.5);
}

.sdetail a {
    grid-column: 1 / span 8;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.02em;
    padding-bottom: calc(var(--u) * 3);
    width: fit-content;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: border-color 0.25s var(--ease);
}

.sdetail a:hover { border-color: #fff; }

.srow.open .sdetail { max-height: 220px; }

/* ========================================
   Philosophy — full-bleed ink band
   ======================================== */

.philosophy {
    padding: calc(var(--u) * 14) var(--page);
    text-align: center;
    background: var(--ink);
    color: var(--paper);
}

.philosophy-content {
    max-width: 700px;
    margin: 0 auto;
}

.philosophy-quote p {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: calc(var(--u) * 4);
}

.philosophy-text {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

/* ========================================
   Kind Words
   ======================================== */

.testimonial {
    grid-column: span 6;
    border-top: 1px solid var(--line-strong);
    padding-top: calc(var(--u) * 3);
}

.testimonial-text {
    font-size: 1.0625rem;
    color: var(--dim);
    line-height: 1.75;
    margin-bottom: calc(var(--u) * 3);
}

.author-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.75rem;
    color: var(--dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ========================================
   Expertise
   ======================================== */

.expertise-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--gutter);
}

.expertise-list li {
    border-top: 1px solid var(--line-strong);
    padding-top: calc(var(--u) * 2);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    transition: transform 0.25s var(--ease);
}

.expertise-list li:hover { transform: translateY(-3px); }

/* ========================================
   Contact
   ======================================== */

.contact {
    border-top: 1px solid var(--line-strong);
    padding-top: calc(var(--u) * 11);
}

.contact-body { align-items: end; }

.contact .huge {
    grid-column: 1 / span 9;
    font-size: clamp(2.5rem, 8.5vw, 10rem);
    line-height: 0.94;
    letter-spacing: -0.045em;
    font-weight: 600;
}

.contact .huge a {
    position: relative;
    display: inline-block;
}

.contact .huge .u {
    display: block;
    height: 0.055em;
    background: var(--accent);
    width: 0;
    transition: width 0.6s var(--ease);
    margin-top: 0.04em;
}

.contact .huge a:hover .u { width: 100%; }

.contact .sidewrap {
    grid-column: 10 / span 3;
    text-align: right;
}

.contact .side p {
    font-size: 0.8125rem;
    color: var(--dim);
    line-height: 1.6;
}

.contact .side b {
    display: block;
    color: var(--ink);
    font-weight: 500;
    margin-bottom: 4px;
}

.contact .side .copyable {
    cursor: pointer;
    border-bottom: 1px dashed var(--line-strong);
    transition: color 0.3s var(--ease);
}

.contact .side .copyable:hover { color: var(--accent); }
.contact .side .copied { color: var(--accent); font-weight: 500; }

.contact .side a {
    display: inline-block;
    margin-top: 4px;
    border-bottom: 1px solid var(--line-strong);
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.contact .side a:hover { color: var(--accent); border-color: var(--accent); }

.contact .side.two {
    margin-top: calc(var(--u) * 3);
    padding-top: calc(var(--u) * 2.5);
    border-top: 1px solid var(--line);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    border-top: 1px solid var(--line);
    padding: calc(var(--u) * 5) 0 calc(var(--u) * 4);
    align-items: baseline;
}

.footer .a {
    grid-column: 1 / span 5;
    font-size: 0.75rem;
    color: var(--dim);
    letter-spacing: 0.02em;
    line-height: 1.7;
}

.footer .b {
    grid-column: 7 / span 3;
    font-size: 0.75rem;
    color: var(--dim);
}

.footer .c {
    grid-column: 10 / span 3;
    text-align: right;
    font-size: 0.75rem;
    color: var(--dim);
}

.footer a:hover { color: var(--ink); }

/* ========================================
   Loader
   ======================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--u) * 2.5);
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}

.loader-mark {
    color: var(--paper);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    animation: loaderMark 0.5s var(--ease) 0.1s forwards;
}

@keyframes loaderMark {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.loader-line {
    width: 180px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.loader-line span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: translateX(-101%);
    animation: loaderSweep 0.9s var(--ease) 0.25s forwards;
}

@keyframes loaderSweep {
    to { transform: translateX(0); }
}

.loader.done { transform: translateY(-100%); }

/* Failsafe: if JS never lifts the curtain, fade it out anyway */
.loader {
    animation: loaderFailsafe 0.5s var(--ease) 4s forwards;
}

@keyframes loaderFailsafe {
    to { opacity: 0; visibility: hidden; }
}

/* ========================================
   Fixed elements
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 101;
    pointer-events: none;
}

/* ========================================
   Reveal animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Line-mask reveal for large headings.
   The mask is an overflow wrapper + inner slide, not clip-path:
   a zero-area clip makes IntersectionObserver report no intersection,
   so clipped elements would never reveal. JS injects .mask-inner. */
.reveal-mask {
    overflow: hidden;
    transform: none;
}

.reveal-mask .mask-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.8s var(--ease);
}

.reveal-mask.visible .mask-inner {
    transform: translateY(0);
}

/* Hero title words rise out of an overflow mask */
.hero-title .mask {
    display: block;
    overflow: hidden;
}

.reveal-word {
    display: block;
    transform: translateY(110%);
    transition: transform 0.7s var(--ease);
}

.reveal-word.visible { transform: translateY(0); }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 900px) {
    :root { --gutter: 14px; }

    .sec-head .ttl { grid-column: 1 / -1; }
    .sec-head .say { display: none; }

    .about-body .lead { grid-column: 1 / -1; }
    .about-photo { grid-column: 1 / span 6; grid-row: 2; justify-self: start; margin-top: calc(var(--u) * 4); }
    .about-body .cols { grid-column: 1 / -1; grid-template-columns: 1fr; gap: calc(var(--u) * 4); }

    .work-main { grid-column: 1 / -1; }
    .work-period { grid-column: 1 / -1; grid-row: 2; text-align: left; margin-top: var(--u); }

    .srow-head { grid-template-columns: repeat(12, 1fr); row-gap: 4px; }
    .srow .sname { grid-column: 1 / -1; }
    .srow .stype { grid-column: 1 / span 6; font-size: 0.75rem; }
    .srow .sstamp { grid-column: 7 / span 6; }
    .sdetail p, .sdetail a { grid-column: 1 / -1; }

    .testimonial { grid-column: 1 / -1; }

    .contact .huge { grid-column: 1 / -1; }
    .contact .sidewrap { grid-column: 1 / -1; text-align: left; margin-top: calc(var(--u) * 4); }

    .footer .a, .footer .b, .footer .c { grid-column: 1 / -1; text-align: left; }
    .footer .b, .footer .c { margin-top: var(--u); }
}

@media (max-width: 560px) {
    .srow .stype { grid-column: 1 / -1; }
    .srow .sstamp { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .reveal,
    .reveal-word,
    .reveal-mask,
    .reveal-mask .mask-inner,
    .mobile-menu-content a {
        opacity: 1;
        transform: none;
        clip-path: none;
    }

    .scroll-line::after { animation: none; }

    .loader { display: none; }
}
