/* ============================================================
   Robert García Correa — Portfolio Stylesheet
   "F-Definitivo": editorial-engineering precision.
   Spec: docs/superpowers/specs/2026-06-10-redesign-f-definitivo-design.md
   ============================================================ */

/* --- Design Tokens --- */
:root {
    --paper: #fbfaf7;
    --paper-2: #f4f2ed;
    --card: #ffffff;
    --ink: #131312;
    --ink-2: #56544f;
    --ink-3: #6f6c64;
    --rule: #e4e1da;
    --blue: #2b3cff;
    --blue-soft: rgba(43, 60, 255, 0.07);
    --on-accent: #ffffff; /* text on --blue surfaces */
    --green: #157a47;
    --shadow: 0 1px 2px rgba(20, 18, 12, 0.05), 0 16px 40px rgba(20, 18, 12, 0.08);

    --font-display: 'Familjen Grotesk', sans-serif;
    --font-sans: 'Instrument Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: light;
}

[data-theme="dark"] {
    --paper: #101013;
    --paper-2: #16161a;
    --card: #1a1a1f;
    --ink: #f0efeb;
    --ink-2: #aaa8a4;
    --ink-3: #8b8985;
    --rule: #26262b;
    --blue: #6573ff;
    --blue-soft: rgba(101, 115, 255, 0.09);
    --on-accent: #0e0e12; /* dark blue is light enough to need dark text for AA */
    --green: #3ecf80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--paper);
    transition: background-color 0.4s ease, color 0.4s ease;
}

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

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* --- Utilities --- */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 36px;
}

.mono {
    font-family: var(--font-mono);
}

/* --- Scroll Reveal ---
   Hiding is gated on html.reveal-ready (added by JS) so content stays
   visible when JavaScript is disabled or fails to load. */
html.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.reveal-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper); /* fallback for browsers without color-mix */
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule);
    transition: background 0.4s ease;
}

.nav__in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 36px;
    height: 62px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav__logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    margin-right: auto;
}

.nav__logo i {
    font-style: normal;
    color: var(--blue);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav__links .lnk {
    color: var(--ink-2);
    font-size: 13.5px;
    font-family: var(--font-mono);
    transition: color 0.2s;
}

.nav__links .lnk:hover,
.nav__links .lnk.active {
    color: var(--blue);
}

.nav__btn {
    font-family: var(--font-mono);
    font-size: 12px;
    border: 1px solid var(--rule);
    color: var(--ink-2);
    padding: 6px 12px;
    border-radius: 4px;
    transition: border-color 0.2s, color 0.2s;
}

.nav__btn:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.nav__cv {
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 500;
    background: var(--blue);
    color: var(--on-accent);
    padding: 8px 16px;
    border-radius: 4px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.nav__cv:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px color-mix(in srgb, var(--blue) 35%, transparent);
}

.nav__mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
}

.nav__mobile-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    margin: 0 auto;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__mobile-toggle.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
}

.nav__mobile-toggle.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 62px 0 auto 0;
    z-index: 99;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    display: none;
    flex-direction: column;
    padding: 12px 36px 24px;
}

.mobile-menu a {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--ink-2);
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* --- Hero --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 80px;
    padding: 96px 0 84px;
    align-items: end;
}

.hero__head {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.2vw, 44px);
}

.hero__photo {
    flex-shrink: 0;
    position: relative;
    width: clamp(92px, 10vw, 140px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid var(--rule);
    outline: 1px solid var(--rule);
    outline-offset: 6px;
    box-shadow: var(--shadow);
    opacity: 0;
    animation: photoIn 0.9s var(--ease) 0.05s forwards;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes photoIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: none; }
}

.hero__name {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.hero__name .line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
}

.hero__name .line span {
    display: inline-block;
    transform: translateY(110%);
    animation: lift 0.85s var(--ease) forwards;
}

.hero__name .line:nth-child(1) span { animation-delay: 0.12s; }
.hero__name .line:nth-child(2) span { animation-delay: 0.22s; }

.hero__name em {
    font-style: normal;
    color: var(--blue);
}

.hero__bio {
    margin-top: 32px;
    font-size: 19px;
    color: var(--ink-2);
    max-width: 47ch;
    opacity: 0;
    animation: fadeup 0.8s var(--ease) 0.45s forwards;
}

.spec {
    border-left: 1px solid var(--rule);
    padding-left: 28px;
    font-family: var(--font-mono);
    font-size: 13px;
    display: grid;
    gap: 16px;
    opacity: 0;
    animation: fadeup 0.8s var(--ease) 0.55s forwards;
}

.spec dt {
    color: var(--ink-3);
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.spec dd {
    margin-top: 2px;
    line-height: 1.55;
}

.spec dd a {
    color: var(--blue);
}

.spec dd a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.spec dd .ok {
    color: var(--green);
}

@keyframes lift {
    to { transform: none; }
}

@keyframes fadeup {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* --- Proof Strip --- */
.proof {
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof__item {
    padding: 30px 28px;
    border-right: 1px solid var(--rule);
    transition: background 0.3s;
}

.proof__item:last-child {
    border-right: none;
}

.proof__item:hover {
    background: var(--blue-soft);
}

.proof__n {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.proof__n i {
    font-style: normal;
    color: var(--blue);
}

.proof__l {
    font-size: 13.5px;
    color: var(--ink-2);
}

/* --- Sections ---
   Longhand padding only: sections also carry .wrap, whose lateral
   padding must survive (shorthand here would zero it out). */
.sect {
    padding-top: 96px;
    padding-bottom: 24px;
}

.sect__head {
    display: flex;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.sect__num {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--blue);
}

.sect__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.sect__note {
    margin-left: auto;
    font-size: 14px;
    color: var(--ink-3);
}

/* --- About --- */
.about__text {
    columns: 2;
    column-gap: 56px;
    margin-bottom: 56px;
}

.about__text p {
    color: var(--ink-2);
    break-inside: avoid;
    margin-bottom: 18px;
}

.bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.cell {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s, background 0.4s;
}

.cell:hover {
    transform: translateY(-5px);
}

.cell--2w {
    grid-column: span 2;
}

.cell__k {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
}

.cell__v {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.cell__v small {
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-2);
    letter-spacing: 0;
}

.cell__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.chip {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--ink-2);
    border: 1px solid var(--rule);
    padding: 4px 10px;
    border-radius: 99px;
}

/* --- Projects --- */
.proj {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 52px;
    padding: 44px 0;
    border-top: 1px solid var(--rule);
    align-items: center;
}

.proj--alt {
    grid-template-columns: 1fr 460px;
}

.proj--alt .frame {
    order: 2;
}

.frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--rule);
    box-shadow: var(--shadow);
    background: var(--card);
    transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.proj:hover .frame {
    transform: translateY(-6px) rotate(-0.4deg);
}

.frame__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule);
}

.frame__bar i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--rule);
}

.frame__bar span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--ink-3);
    margin-left: 8px;
}

.frame__body {
    height: 230px;
    position: relative;
    background: var(--paper-2);
    overflow: hidden;
}

/* abstract UI: TGS dashboard */
.ui-tgs .s {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 64px;
    background: var(--blue); /* fallback for browsers without color-mix */
    background: color-mix(in srgb, var(--blue) 88%, #000);
}

.ui-tgs .s::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.25);
}

.ui-tgs .h {
    position: absolute;
    left: 88px;
    top: 22px;
    width: 40%;
    height: 14px;
    border-radius: 4px;
    background: var(--ink-3);
    opacity: 0.5;
}

.ui-tgs .c1,
.ui-tgs .c2,
.ui-tgs .c3 {
    position: absolute;
    top: 60px;
    width: 25%;
    height: 64px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--rule);
}

.ui-tgs .c1 { left: 88px; }
.ui-tgs .c2 { left: calc(88px + 27%); }
.ui-tgs .c3 { left: calc(88px + 54%); background: var(--blue-soft); }

.ui-tgs .t {
    position: absolute;
    left: 88px;
    right: 24px;
    top: 144px;
    bottom: 20px;
    border-radius: 8px;
    background: var(--card);
    border: 1px solid var(--rule);
}

.ui-tgs .t::before {
    content: "";
    position: absolute;
    inset: 14px;
    background: repeating-linear-gradient(0deg, var(--rule) 0 1px, transparent 1px 22px);
}

/* abstract UI: StudyVault flashcards */
.ui-sv .pill {
    position: absolute;
    left: 20px;
    top: 18px;
    width: 90px;
    height: 12px;
    border-radius: 99px;
    background: var(--ink-3);
    opacity: 0.4;
}

.ui-sv .deck {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 200px;
    height: 124px;
}

.ui-sv .card-f {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--rule);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.ui-sv .card-f:nth-child(1) { transform: translate(-50%, -50%) rotate(-7deg); }
.ui-sv .card-f:nth-child(2) { transform: translate(-46%, -54%) rotate(3deg); }

.ui-sv .card-f:nth-child(3) {
    transform: translate(-54%, -46%);
    background: var(--blue);
    border-color: var(--blue);
}

.ui-sv .card-f:nth-child(3)::before {
    content: "O(n log n)";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--on-accent);
    font-family: var(--font-mono);
    font-size: 15px;
}

/* abstract UI: NoteBook PDF.
   The page is a physical sheet of paper: it stays light in BOTH themes
   on purpose, so its colors are literal rather than theme tokens. */
.ui-nb .page {
    position: absolute;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: 168px;
    bottom: -30px;
    background: #fbfaf7;
    border: 1px solid var(--rule);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .ui-nb .page {
    background: #ebe9e4;
}

.ui-nb .page::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 16px;
    height: 10px;
    background: #131312;
    opacity: 0.8;
}

.ui-nb .page::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 38px;
    bottom: 14px;
    background: repeating-linear-gradient(0deg,
        rgba(43, 60, 255, 0.55) 0 2px, transparent 2px 9px,
        rgba(19, 19, 18, 0.5) 9px 11px, transparent 11px 18px);
}

.proj__meta {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-3);
    margin-bottom: 12px;
}

.proj__meta .star {
    color: var(--blue);
}

.proj__name {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.proj__desc {
    color: var(--ink-2);
    font-size: 15.5px;
    max-width: 56ch;
    margin-bottom: 20px;
}

.proj__desc b {
    color: var(--ink);
    font-weight: 600;
}

.proj__links {
    display: flex;
    gap: 22px;
    font-family: var(--font-mono);
    font-size: 13px;
    flex-wrap: wrap;
}

.proj__links a {
    color: var(--blue);
}

.proj__links a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.proj__links .dim {
    color: var(--ink-3);
}

/* compact row (in-development project) */
.proj--min {
    display: block;
    padding: 28px 0;
}

.proj--min .proj__name {
    font-size: 22px;
    display: inline;
    margin-right: 14px;
}

.proj--min .proj__desc {
    margin: 6px 0 0;
}

.proj__status {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--ink-3);
    border: 1px solid var(--rule);
    padding: 3px 10px;
    border-radius: 99px;
    vertical-align: middle;
}

/* --- Competitive --- */
.cp__intro {
    color: var(--ink-2);
    max-width: 62ch;
    margin-bottom: 44px;
}

.stand {
    border-top: 1px solid var(--rule);
    margin-bottom: 52px;
}

.stand__row {
    display: grid;
    grid-template-columns: 64px 1fr auto auto;
    gap: 8px 32px;
    align-items: baseline;
    padding: 24px 8px;
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s, padding 0.3s var(--ease);
}

.stand__row:hover {
    background: var(--blue-soft);
    padding-left: 20px;
}

.stand__rank {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue);
}

.stand__what b {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.stand__what small {
    display: block;
    font-size: 14px;
    color: var(--ink-2);
}

.stand__verdict {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--green);
    white-space: nowrap;
}

.stand__year {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-3);
}

.profiles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.profiles a {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14.5px;
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 12px 18px;
    transition: border-color 0.2s, transform 0.25s var(--ease);
}

.profiles a:hover {
    border-color: var(--blue);
    transform: translateY(-2px);
}

.profiles .handle {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--blue);
}

/* --- Experience --- */
.exp {
    border-top: 1px solid var(--rule);
}

.exp__row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px 48px;
    padding: 32px 8px;
    border-bottom: 1px solid var(--rule);
    transition: background 0.3s;
}

.exp__row:hover {
    background: var(--blue-soft);
}

.exp__date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink-3);
    padding-top: 4px;
}

.exp__role {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.exp__org {
    font-size: 14.5px;
    color: var(--blue);
    margin-bottom: 8px;
}

.exp__desc {
    color: var(--ink-2);
    font-size: 15px;
    max-width: 66ch;
}

/* --- Contact --- */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
}

.contact__text {
    color: var(--ink-2);
    margin-bottom: 28px;
}

.contact__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact__links a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--ink-2);
    transition: color 0.2s;
    width: fit-content;
}

.contact__links a:hover {
    color: var(--blue);
}

.contact__links svg {
    flex-shrink: 0;
    color: var(--ink-3);
}

.contact__links a:hover svg {
    color: var(--blue);
}

.form-group {
    margin-bottom: 26px;
}

.form-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-3);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 15.5px;
    color: var(--ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    padding: 8px 0 12px;
    transition: border-color 0.25s;
}

.form-input:focus {
    border-bottom-color: var(--blue);
}

.form-input--textarea {
    resize: vertical;
    min-height: 110px;
}

.form-button {
    font-family: var(--font-mono);
    font-size: 13.5px;
    font-weight: 500;
    background: var(--blue);
    color: var(--on-accent);
    padding: 13px 30px;
    border-radius: 4px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 35%, transparent);
}

/* --- Footer --- */
.footer {
    margin-top: 96px;
    border-top: 1px solid var(--rule);
}

.footer__in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink-3);
}

.footer__in a:hover {
    color: var(--blue);
}

/* --- Responsive ---
   Tiers: 900px = tablet (single-column grids, mobile nav),
   600px = phone (hero photo stacks), 520px = compact (1-col bento). */
@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    /* the dropdown only ever opens at mobile widths */
    .mobile-menu.active {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 44px;
        padding: 64px 0 60px;
    }

    .spec {
        border-left: none;
        border-top: 1px solid var(--rule);
        padding-left: 0;
        padding-top: 24px;
    }

    .proof {
        grid-template-columns: 1fr 1fr;
    }

    .proof__item:nth-child(2) {
        border-right: none;
    }

    .proof__item:nth-child(-n+2) {
        border-bottom: 1px solid var(--rule);
    }

    .about__text {
        columns: 1;
    }

    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .proj,
    .proj--alt {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .proj--alt .frame {
        order: 0;
    }

    .stand__row {
        grid-template-columns: 48px 1fr;
    }

    .stand__verdict,
    .stand__year {
        grid-column: 2;
    }

    .exp__row {
        grid-template-columns: 1fr;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 600px) {
    .hero__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }
}

@media (max-width: 520px) {
    .wrap {
        padding: 0 22px;
    }

    .nav__in {
        padding: 0 22px;
        gap: 12px;
    }

    .bento {
        grid-template-columns: 1fr;
    }

    .cell--2w {
        grid-column: span 1;
    }

    .sect {
        padding-top: 64px;
        padding-bottom: 16px;
    }

    .sect__note {
        display: none;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .hero__name .line span {
        transform: none;
    }

    .hero__bio,
    .hero__photo,
    .spec {
        opacity: 1;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
