/* Richard Hammond — portfolio */
:root {
  color-scheme: light;
  --page: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #eef2f8;
  --ink: #17243b;
  --ink-soft: #46536a;
  --muted: #78849a;
  --line: #e2e7ef;
  --blue: #3156d3;
  --blue-deep: #2646b4;
  --gold: #c9a767;
  --navy: #111d35;
  --header-bg: rgba(245, 247, 251, .88);
  --shadow: 0 18px 50px rgba(27, 44, 80, .09);
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page: #101725;
  --surface: #172134;
  --surface-soft: #1d2a41;
  --ink: #edf2fb;
  --ink-soft: #b6c1d3;
  --muted: #8d9bb2;
  --line: #2b3850;
  --blue: #8299ff;
  --blue-deep: #91a5ff;
  --gold: #d7b775;
  --navy: #0c1422;
  --header-bg: rgba(16, 23, 37, .88);
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; }
.section-shell { position: relative; }
.skip-link { position: absolute; z-index: 20; top: 8px; left: 8px; padding: 8px 14px; transform: translateY(-150%); border-radius: 6px; background: var(--ink); color: var(--page); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent); background: var(--header-bg); backdrop-filter: blur(18px); }
.header-inner { display: flex; height: 78px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 36px; height: 36px; place-content: center; border: 1px solid var(--blue); border-radius: 9px; color: var(--blue); font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: -.08em; }
.brand-mark span { color: var(--gold); }
.brand-name { font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: -.035em; }
.brand-dot { color: var(--gold); }
.navigation { display: flex; height: 100%; align-items: center; gap: 33px; }
.navigation > a { color: var(--ink-soft); font-size: 12px; font-weight: 600; transition: color .2s; }
.navigation > a:hover, .navigation > a:focus-visible { color: var(--blue); }
.navigation .nav-contact { padding: 9px 14px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); }
.nav-contact span { margin-left: 5px; color: var(--gold); }
.theme-toggle { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; transition: border-color .2s, transform .2s; }
.theme-toggle:hover { transform: rotate(12deg); border-color: var(--gold); }
.theme-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: block; }
.menu-toggle { display: none; }

.hero { min-height: 620px; overflow: hidden; }
.hero-grid { display: grid; min-height: 620px; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 25px; padding-block: 62px 82px; }
.hero-copy { position: relative; z-index: 1; padding-bottom: 3px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
.hero h1 { margin: 0; font-size: clamp(52px, 6.6vw, 82px); font-weight: 700; letter-spacing: -.075em; line-height: 1.07; }
.text-accent { color: var(--blue); }
.hero-intro { max-width: 455px; margin: 25px 0 27px; color: var(--ink-soft); font-size: 15px; line-height: 1.85; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 19px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #fff; }
.button-primary:hover { background: var(--blue-deep); }
.button-primary span { font-size: 16px; }
.button-text { gap: 10px; color: var(--ink-soft); }
.button-text span { color: var(--gold); }
.hero-footnote { display: flex; align-items: center; gap: 9px; margin-top: 34px; color: var(--muted); font-size: 11px; }
.hero-footnote strong { color: var(--ink-soft); font-weight: 700; }
.status-dot, .experience-current i { width: 7px; height: 7px; border-radius: 50%; background: #54b986; box-shadow: 0 0 0 4px rgba(84, 185, 134, .12); }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; height: 440px; isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 26px 6% 10px 18%; border-radius: 42% 58% 50% 50%; background: radial-gradient(circle, rgba(49,86,211,.18), rgba(49,86,211,0) 68%); filter: blur(10px); }
.portrait-frame { position: relative; z-index: 1; width: min(100%, 430px); aspect-ratio: 0.9; padding: 18px; border: 1px solid rgba(255,255,255,.72); border-radius: 30px; background: linear-gradient(145deg, #f7f8fc, #e5ebf7); box-shadow: 0 30px 60px rgba(17, 29, 53, .18); }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; filter: saturate(1.02) contrast(1.02); }
.portrait-badge { position: absolute; right: 6%; bottom: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: rgba(17, 29, 53, .88); box-shadow: var(--shadow); color: #edf2fb; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.portrait-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #54b986; box-shadow: 0 0 0 4px rgba(84, 185, 134, .14); }
.scroll-cue { position: absolute; bottom: 24px; left: max(24px, calc((100% - 1120px) / 2)); display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue span { width: 22px; height: 1px; background: var(--gold); }

.about-section { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.section-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 51px); font-weight: 700; letter-spacing: -.065em; line-height: 1.16; }
.about-copy { padding-top: 38px; }
.about-copy .lead { max-width: 475px; margin-bottom: 16px; color: var(--ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.03em; line-height: 1.55; }
.about-copy > p:not(.lead) { max-width: 490px; margin-bottom: 20px; color: var(--ink-soft); font-size: 13px; line-height: 1.9; }
.inline-link { display: inline-flex; align-items: center; gap: 14px; color: var(--blue); font-size: 12px; font-weight: 700; }
.inline-link span { color: var(--gold); font-size: 16px; }

.services-section { background: var(--page); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-aside { max-width: 315px; margin: 0 0 5px; color: var(--muted); font-size: 12px; line-height: 1.9; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 53px; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: var(--line); }
.service-card { position: relative; min-height: 220px; padding: 26px 26px 24px; background: var(--surface); transition: background .25s, transform .25s; }
.service-card:hover { z-index: 1; background: var(--surface-soft); }
.service-number { position: absolute; top: 27px; right: 25px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.service-icon { display: grid; width: 37px; height: 37px; place-items: center; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 8px; color: var(--blue); font-family: var(--font-display); font-size: 20px; }
.service-card h3 { max-width: 235px; margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.service-card p { max-width: 260px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.service-arrow { position: absolute; right: 24px; bottom: 20px; color: var(--gold); font-size: 15px; opacity: 0; transform: translate(-4px, 4px); transition: .2s; }
.service-card:hover .service-arrow { opacity: 1; transform: translate(0); }

.skills-section { background: var(--navy); color: #f3f5fa; }
.skills-section .eyebrow { color: #a4b0c5; }
.skills-section .section-heading h2 { color: #f3f5fa; }
.skills-intro { max-width: 355px; margin: 22px 0 0; color: #a4b0c5; font-size: 12px; line-height: 1.9; }
.skills-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 105px; }
.skill-groups { border-top: 1px solid rgba(255,255,255,.15); }
.skill-group { display: grid; grid-template-columns: 94px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.skill-label { padding-top: 8px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pills span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 3px; color: #d0d7e3; font-size: 10px; }

.projects-section { background: var(--surface); }
.project-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 42px 0 26px; }
.filter-button { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--ink-soft); font-size: 10px; font-weight: 600; cursor: pointer; transition: .2s; }
.filter-button span { color: var(--muted); font-size: 8px; }
.filter-button:hover, .filter-button.is-active { border-color: var(--blue); background: var(--blue); color: #fff; }
.filter-button:hover span, .filter-button.is-active span { color: rgba(255,255,255,.72); }
.filter-button:focus-visible, .theme-toggle:focus-visible, .menu-toggle:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 31px 21px; }
.project-card { min-width: 0; animation: card-in .35s ease both; }
.project-card[hidden] { display: none; }
.project-visual { position: relative; display: grid; height: 213px; overflow: hidden; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); }
.project-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.visual-index { position: absolute; z-index: 1; right: 12px; bottom: 11px; color: rgba(255,255,255,.72); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.mini-browser { position: relative; width: 73%; height: 75%; overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 16px 35px rgba(0,0,0,.2); transform: rotate(-2deg); transition: transform .35s; }
.project-card:hover .mini-browser, .project-card:hover .pos-device { transform: rotate(0) translateY(-4px); }
.mini-top { display: flex; height: 21px; align-items: center; gap: 3px; padding: 0 8px; background: #f1f3f6; }
.mini-top i { width: 4px; height: 4px; }
.mini-top span { margin-left: auto; color: #657187; font-size: 6px; }
.mini-content { position: relative; height: calc(100% - 21px); padding: 18px 14px; background: #edf5f5; }
.mini-kicker { display: block; color: #4b8c89; font-size: 6px; font-weight: 700; letter-spacing: .12em; }
.mini-title { display: block; margin-top: 9px; color: #173d42; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.07em; line-height: .96; }
.mini-line { display: block; width: 20px; height: 2px; margin-top: 10px; background: #c9a767; }
.mini-cta { display: inline-block; margin-top: 10px; padding: 5px 7px; background: #1f6262; color: white; font-size: 5px; }
.mini-orb { position: absolute; top: 27px; right: -16px; width: 112px; height: 112px; border: 15px solid rgba(94,159,153,.22); border-radius: 50%; }
.visual-dental { background: radial-gradient(ellipse at 68% 45%, #99bdb9, #517b81 65%, #315c65); }
.visual-dental .visual-index { color: rgba(255,255,255,.82); }
.visual-sesa { background: #ebefe2; color: #3a5146; }
.sesa-mark { position: absolute; top: 24px; left: 27px; font-family: var(--font-display); font-size: 15px; font-weight: 800; letter-spacing: -.06em; }
.sesa-mark > span { color: #c48e48; }
.sesa-leaf { display: inline-block; margin-left: 3px; color: #7d9d69; font-size: 11px; }
.sesa-copy { position: absolute; bottom: 34px; left: 27px; font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -.07em; line-height: 1.02; }
.sesa-circle { position: absolute; right: 26px; bottom: 18px; width: 107px; height: 145px; border-radius: 50% 50% 8px 8px; background: linear-gradient(145deg, #a9bd8f, #688b72); transform: rotate(25deg); }
.visual-sesa .visual-index, .visual-suglo .visual-index { color: rgba(40,57,46,.65); }
.visual-suglo { background: #e9e5dc; color: #34372f; }
.suglo-monogram { position: absolute; top: 48px; left: 50%; font-family: Georgia, serif; font-size: 67px; letter-spacing: -.13em; transform: translateX(-58%); }
.suglo-monogram span { color: #ad8b59; font-size: 46px; }
.suglo-caption { position: absolute; top: 132px; left: 50%; font-size: 8px; font-weight: 700; letter-spacing: .27em; transform: translateX(-50%); white-space: nowrap; }
.suglo-rule { position: absolute; top: 150px; left: calc(50% - 28px); width: 56px; height: 1px; background: #ad8b59; }
.visual-travel { display: block; background: linear-gradient(165deg, #e7c698 0%, #e1b987 38%, #a8c0bb 38%, #6d9697 100%); color: #203d49; }
.travel-sun { position: absolute; top: 30px; right: 42px; width: 58px; height: 58px; border-radius: 50%; background: #f3e5be; }
.travel-kicker { position: absolute; top: 34px; left: 27px; color: #63726d; font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.travel-title { position: absolute; top: 65px; left: 26px; font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.07em; line-height: 1.03; }
.travel-route { position: absolute; bottom: 27px; left: 27px; font-size: 7px; font-weight: 700; letter-spacing: .14em; }
.travel-route b { padding: 0 9px; color: #f1dfb6; }
.visual-academy { background: #193969; color: #fff; }
.academy-shield { position: absolute; top: 42px; left: 50%; display: grid; width: 67px; height: 75px; place-items: center; border: 1px solid #d6bd80; color: #f2e8cc; font-family: Georgia, serif; font-size: 30px; clip-path: polygon(0 0,100% 0,92% 70%,50% 100%,8% 70%); transform: translateX(-50%); }
.academy-shield span { color: #d6bd80; }
.academy-name { position: absolute; top: 128px; left: 0; width: 100%; font-size: 9px; letter-spacing: .18em; line-height: 1.7; text-align: center; }
.academy-name b { color: #d6bd80; font-size: 10px; }
.academy-curve { position: absolute; right: -15px; bottom: -39px; left: -15px; height: 75px; border: 1px solid rgba(214,189,128,.5); border-radius: 50%; }
.visual-exceed { background: #e4f0ef; color: #215752; }
.diagnostic-cross { position: absolute; top: 39px; left: calc(50% - 19px); display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #39877b; color: white; font-size: 28px; font-weight: 400; }
.exceed-word { position: absolute; top: 94px; left: 50%; font-family: var(--font-display); font-size: 29px; font-weight: 800; letter-spacing: .08em; transform: translateX(-50%); }
.exceed-sub { position: absolute; top: 131px; left: 50%; font-size: 7px; font-weight: 700; letter-spacing: .26em; transform: translateX(-50%); white-space: nowrap; }
.exceed-wave { position: absolute; right: -15px; bottom: -55px; left: -15px; height: 84px; border-radius: 50% 50% 0 0; background: #b5d7cf; }
.visual-safeline { background: #e9eff8; color: #263d66; }
.safe-emblem { position: absolute; top: 31px; left: calc(50% - 21px); display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid #5874a4; border-radius: 12px; font-family: var(--font-display); font-size: 23px; font-weight: 700; transform: rotate(45deg); }
.safe-emblem span { color: #56a58f; font-size: 13px; }
.safe-name { position: absolute; top: 93px; left: 0; width: 100%; font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.06em; text-align: center; }
.safe-sub { position: absolute; top: 128px; left: 0; width: 100%; color: #71819e; font-size: 7px; font-weight: 700; letter-spacing: .24em; text-align: center; }
.safe-line { position: absolute; top: 151px; left: calc(50% - 24px); width: 48px; height: 2px; background: #c9a767; }
.visual-precious { background: #f1eae0; color: #66503a; }
.gem-shape { position: absolute; top: 21px; left: 50%; color: #bc9861; font-size: 85px; line-height: 1; transform: translateX(-50%); }
.precious-name { position: absolute; top: 113px; left: 0; width: 100%; font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: .17em; text-align: center; }
.precious-sub { position: absolute; top: 140px; left: 0; width: 100%; color: #9b8060; font-size: 7px; font-weight: 700; letter-spacing: .23em; text-align: center; }
.gem-rays { position: absolute; top: 45px; left: calc(50% - 34px); width: 68px; height: 68px; border: 1px solid rgba(188,152,97,.35); border-radius: 50%; box-shadow: 0 0 0 10px rgba(188,152,97,.06), 0 0 0 21px rgba(188,152,97,.05); }
.visual-pos { background: linear-gradient(135deg, #d9e3f2, #aabbd6); color: #192b4d; }
.pos-device { position: absolute; top: 25px; left: calc(50% - 62px); display: flex; width: 124px; height: 145px; flex-direction: column; align-items: center; padding: 12px 10px 0; border: 5px solid #293c5b; border-radius: 12px; background: #eff3f8; box-shadow: 0 13px 22px rgba(23,38,64,.25); transform: rotate(4deg); transition: transform .35s; }
.pos-brand { font-size: 8px; font-weight: 700; letter-spacing: .1em; }
.pos-brand b { color: #466cbd; }
.pos-screen { display: grid; width: 75px; height: 70px; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; padding: 7px; border-radius: 4px; background: #dfe7f3; }
.pos-screen i { border-radius: 2px; background: #6d88c2; }
.pos-screen i:nth-child(2) { background: #c8a05b; }
.pos-screen i:nth-child(3) { background: #a6b8d3; }
.pos-device-base { width: 54px; height: 4px; margin-top: 6px; border-radius: 3px; background: #71809a; }
.pos-label { position: absolute; bottom: 24px; left: 0; width: 100%; color: #314769; font-size: 8px; font-weight: 700; letter-spacing: .2em; text-align: center; }
.visual-pos .visual-index { color: #344869; }
.project-info { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; }
.project-type { color: var(--muted); font-size: 9px; font-weight: 600; }
.project-info h3 { margin: 3px 0 0; font-size: 13px; font-weight: 700; letter-spacing: -.02em; line-height: 1.45; }
.project-link { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); transition: .2s; }
.project-link:hover { border-color: var(--blue); background: var(--blue); color: #fff; transform: translate(2px, -2px); }
.project-no-link { max-width: 95px; color: var(--muted); font-size: 8px; line-height: 1.4; text-align: right; }
.filter-empty { margin: 40px 0 0; color: var(--muted); text-align: center; }

.experience-section { background: var(--page); }
.experience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.experience-entry { position: relative; padding: 10px 0 0 28px; border-left: 1px solid var(--line); }
.experience-marker { position: absolute; top: 12px; left: -5px; width: 9px; height: 9px; border: 2px solid var(--blue); border-radius: 50%; background: var(--page); box-shadow: 0 0 0 5px color-mix(in srgb, var(--blue) 12%, transparent); }
.experience-meta { display: flex; flex-wrap: wrap; gap: 15px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.experience-meta span + span { color: var(--gold); }
.experience-entry h3 { margin: 20px 0 9px; font-size: 21px; letter-spacing: -.04em; }
.experience-entry p { max-width: 400px; margin-bottom: 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.9; }
.experience-current { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.experience-current i { width: 6px; height: 6px; }

.contact-section { position: relative; overflow: hidden; padding: 100px 0 96px; background: #1c3574; color: #fff; }
.contact-section::before, .contact-section::after { position: absolute; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ""; }
.contact-section::before { top: -257px; right: -44px; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 57px rgba(255,255,255,.025); }
.contact-section::after { right: 14%; bottom: -339px; width: 460px; height: 460px; border-color: rgba(201,167,103,.18); }
.contact-inner { position: relative; z-index: 1; }
.contact-section .eyebrow { color: #c0cce8; }
.contact-section h2 { margin: 0; font-size: clamp(50px, 6.7vw, 78px); font-weight: 700; letter-spacing: -.075em; line-height: 1.05; }
.contact-accent { color: #d6bd80; }
.contact-copy { max-width: 370px; margin: 20px 0 25px; color: #c0cce8; font-size: 12px; }
.button-light { background: #fff; color: #1c3574; }
.button-light:hover { background: #f1eadb; }
.button-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.button-outline-light:hover { border-color: #d6bd80; background: rgba(255,255,255,.08); }
.contact-decoration { position: absolute; right: 35px; bottom: -18px; color: rgba(255,255,255,.045); font-family: var(--font-display); font-size: 205px; font-weight: 800; letter-spacing: -.12em; line-height: 1; pointer-events: none; }

.site-footer { background: var(--navy); color: #d9e0eb; }
.footer-main { display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand .brand-name { color: #f3f5fa; }
.footer-main > p { margin: 0; color: #929fb4; font-size: 10px; }
.social-links { display: flex; flex-wrap: wrap; gap: 17px; }
.social-links a { color: #b8c3d4; font-size: 9px; transition: color .2s; }
.social-links a:hover { color: #fff; }
.social-links a span { color: var(--gold); }
.footer-bottom { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255,255,255,.11); color: #8794a9; font-size: 9px; }
.footer-bottom a { color: #bcc7d6; }
.footer-bottom b { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.services-grid .reveal:nth-child(2), .project-grid .reveal:nth-child(3n + 2) { transition-delay: .06s; }
.services-grid .reveal:nth-child(3), .project-grid .reveal:nth-child(3n) { transition-delay: .12s; }
@keyframes card-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1400px) {
  .hero { min-height: 700px; }
  .hero-grid { min-height: 700px; }
}
@media (max-width: 900px) {
  .navigation { gap: 20px; }
  .hero-grid { grid-template-columns: 1fr .9fr; }
  .hero h1 { font-size: clamp(53px, 7vw, 68px); }
  .hero-art { transform: scale(.88); transform-origin: center left; }
  .about-grid, .experience-grid { gap: 50px; }
  .skills-grid { gap: 55px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid .reveal:nth-child(3n + 2) { transition-delay: 0s; }
  .project-grid .reveal:nth-child(2n) { transition-delay: .06s; }
  .footer-main { flex-wrap: wrap; padding-block: 24px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 70px; }
  .container { width: min(100% - 36px, 480px); }
  .section { padding: 78px 0; }
  .header-inner { height: 68px; }
  .menu-toggle { display: flex; width: 38px; height: 38px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 5px; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 15px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .navigation { position: absolute; top: 67px; right: 0; left: 0; display: none; height: auto; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 18px 17px; border-bottom: 1px solid var(--line); background: var(--page); box-shadow: 0 15px 20px rgba(15,28,52,.08); }
  .navigation.is-open { display: flex; }
  .navigation > a { padding: 12px 3px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .navigation .nav-contact { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); }
  .theme-toggle { position: absolute; top: 13px; right: 20px; }
  .navigation .nav-contact + .theme-toggle { top: auto; right: 26px; bottom: 25px; }
  .hero { min-height: 0; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 0; padding-block: 64px 32px; }
  .hero h1 { font-size: clamp(50px, 12vw, 68px); }
  .hero-intro { max-width: 450px; margin-top: 19px; font-size: 14px; }
  .hero-art { width: min(100%, 410px); height: 350px; margin: 5px auto 0; transform: scale(.82); transform-origin: top center; }
  .hero-footnote { margin-top: 24px; }
  .scroll-cue { display: none; }
  .section-heading h2 { font-size: 39px; }
  .about-grid, .experience-grid, .skills-grid { grid-template-columns: 1fr; gap: 27px; }
  .about-copy { padding-top: 0; }
  .about-copy .lead { font-size: 18px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-aside { max-width: 400px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); margin-top: 35px; }
  .service-card { min-height: 224px; padding: 20px 17px; }
  .service-number { top: 21px; right: 17px; }
  .service-card h3 { font-size: 13px; }
  .service-card p { font-size: 10px; }
  .skills-grid { gap: 36px; }
  .skill-group { grid-template-columns: 75px 1fr; gap: 10px; padding: 19px 0; }
  .project-grid { gap: 24px 13px; }
  .project-visual { height: clamp(140px, 43vw, 200px); }
  .project-info { min-height: 69px; }
  .project-info h3 { font-size: 11px; }
  .project-type { font-size: 8px; }
  .project-link { width: 26px; height: 26px; flex-basis: 26px; }
  .project-no-link { max-width: 73px; font-size: 7px; }
  .visual-index { right: 7px; bottom: 7px; font-size: 6px; }
  .sesa-copy { font-size: 23px; }
  .sesa-circle { right: 13px; width: 70px; }
  .suglo-monogram { top: 34px; font-size: 52px; }
  .suglo-caption { top: 105px; font-size: 6px; }
  .suglo-rule { top: 120px; }
  .travel-title { top: 57px; left: 16px; font-size: 24px; }
  .travel-kicker, .travel-route { left: 16px; }
  .academy-shield { top: 26px; transform: translateX(-50%) scale(.82); }
  .academy-name { top: 102px; font-size: 7px; }
  .academy-name b { font-size: 8px; }
  .exceed-word { top: 75px; font-size: 22px; }
  .exceed-sub { top: 105px; font-size: 5px; }
  .diagnostic-cross { top: 23px; transform: scale(.8); }
  .safe-name { top: 77px; font-size: 22px; }
  .safe-sub { top: 106px; font-size: 5px; }
  .safe-line { top: 125px; }
  .gem-shape { top: 15px; font-size: 67px; }
  .precious-name { top: 91px; font-size: 10px; }
  .precious-sub { top: 112px; font-size: 5px; }
  .pos-device { top: 15px; transform: scale(.8) rotate(4deg); }
  .pos-label { bottom: 13px; font-size: 6px; }
  .experience-entry { margin-top: 10px; }
  .contact-section { padding: 78px 0; }
  .contact-section h2 { font-size: clamp(48px, 11vw, 68px); }
  .contact-decoration { right: -11px; bottom: -4px; font-size: 140px; }
  .footer-main { align-items: flex-start; flex-direction: column; gap: 15px; padding-block: 27px; }
  .social-links { gap: 16px; }
  .footer-bottom { min-height: 53px; flex-wrap: wrap; padding-block: 10px; }
  .footer-bottom > span:last-child { display: none; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 30px); }
  .brand-name { font-size: 13px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 190px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-visual { height: 205px; }
  .project-info h3 { font-size: 13px; }
  .project-no-link { max-width: 125px; font-size: 8px; }
  .hero-art { margin-left: -10px; transform: scale(.73); transform-origin: top left; width: 410px; margin-bottom: -54px; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
