:root {
  --sand: #D9D4CB;
  --card: #F4F1EC;
  --ink: #2C2C2C;
  --ink-soft: #4A4744;
  --gold: #C9A227;
  --ochre: #B5651D;
  --ochre-text: #8F4E14;   /* darker ochre for text on light backgrounds */
  --sky: #A9BCC9;
  --teal: #1B4F72;
  --red: #C0392B;
  --red-dark: #9E2E22;
  --line: rgba(44, 44, 44, .14);
  --accent: var(--gold);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--sand); color: var(--ink);
  font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--xl { width: 56px; height: 56px; stroke-width: 1.2; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--card); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 12px; margin: 10px 0 40px; max-width: 640px; }
.section-head p { color: var(--ink-soft); }

/* Section accents (used by focus/hover) */
.section--home { --accent: var(--gold); }
.section--journey { --accent: var(--ochre); }
.section--portfolio { --accent: var(--teal); --chip: var(--sky); }
.section--skills { --accent: var(--teal); }
.section--contact { --accent: var(--red); }

/* Markers */
.marker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.marker .icon { width: 22px; height: 22px; }
.marker--home .icon { color: #8C6F12; }
.marker--journey .icon { color: var(--ochre); }
.marker--portfolio .icon { color: #45667C; }
.marker--skills .icon { color: var(--teal); }
.marker--contact .icon { color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--red); border-radius: 999px;
  background: var(--red); color: var(--card); font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible { background: var(--red-dark); border-color: var(--accent); }
.btn--ghost { background: transparent; color: var(--red-dark); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--red); color: var(--card); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* NAV */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(217, 212, 203, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.nav__inner { width: min(1140px, 100% - 32px); margin-inline: auto; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__brand { font: 600 1.15rem/1 var(--serif); text-decoration: none; }
.nav__menu { display: flex; gap: 4px; }
.nav__menu a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav__menu a:hover { background: var(--card); }
.nav__menu a[aria-current="true"] { background: var(--card); box-shadow: inset 0 -2px 0 var(--red); }
.nav__toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: 500 .95rem var(--sans); cursor: pointer; }
.nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: var(--nav-h); flex-direction: column; padding: 8px 16px 20px; background: var(--sand); border-bottom: 1px solid var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { padding: 14px 12px; font-size: 1.05rem; border-radius: 10px; }
}

/* HOME */
.section--home { padding-top: clamp(48px, 7vw, 88px); }
.home { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.home__text { display: grid; gap: 18px; justify-items: start; }
.home h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.01em; }
.home__role { font: 500 clamp(1.15rem, 2vw, 1.4rem)/1.3 var(--serif); font-style: italic; position: relative; padding-left: 18px; }
.home__role::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; background: var(--gold); border-radius: 2px; }
.home__sub { font-size: 1.15rem; font-weight: 500; }
.home__value { color: var(--ink-soft); max-width: 560px; }
.home__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.icon-row { display: flex; gap: 10px; margin-top: 12px; }
.icon-row__link { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s; }
.icon-row__link .icon { width: 22px; height: 22px; }
.icon-row__link--home { color: #8C6F12; --accent: var(--gold); }
.icon-row__link--journey { color: var(--ochre); --accent: var(--ochre); }
.icon-row__link--portfolio { color: #45667C; --accent: var(--sky); }
.icon-row__link--skills { color: var(--teal); --accent: var(--teal); }
.icon-row__link--contact { color: var(--red); --accent: var(--red); }
.icon-row__link:hover, .icon-row__link:focus-visible { border-color: var(--accent); }

.home__photo { margin: 0; }
.photo-placeholder, .home__photo img {
  aspect-ratio: 4 / 5; width: 100%; border-radius: 200px 200px var(--radius) var(--radius);
  background: var(--card); border: 1.5px dashed rgba(44,44,44,.3);
}
.home__photo img { border: 0; object-fit: cover; }
.photo-placeholder { display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; color: var(--ink-soft); font-size: .95rem; }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers li { display: grid; gap: 4px; padding: 26px 20px; border-left: 1px solid var(--line); }
.numbers li:first-child { border-left: 0; padding-left: 0; }
.numbers strong { font: 600 clamp(2rem, 3.6vw, 2.8rem)/1 var(--serif); }
.numbers li:nth-child(1) strong { color: #7A6010; }
.numbers span { color: var(--ink-soft); font-size: .95rem; }

@media (max-width: 860px) {
  .home { grid-template-columns: 1fr; }
  .home__photo { max-width: 320px; order: -1; }
  .numbers { grid-template-columns: 1fr 1fr; }
  .numbers li { border-left: 0; padding: 20px 0; }
  .numbers li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .numbers li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}

/* JOURNEY */
.section--journey { background: #E2DDD4; }
.journey { display: grid; gap: 24px; }
.scene-wrap { position: relative; border-radius: var(--radius); overflow: hidden; background: #E9EEF0; aspect-ratio: 1200 / 520; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.waypoints { position: absolute; inset: 0; }
.waypoint { position: absolute; transform: translate(-50%, -50%); }
.waypoint__btn {
  display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font: inherit;
}
.waypoint__dot {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--tone); color: var(--tone);
  transition: transform .2s, background-color .2s, color .2s;
}
.waypoint__dot .icon { width: 22px; height: 22px; }
.waypoint__label {
  display: grid; text-align: center; padding: 6px 10px; border-radius: 10px; background: rgba(244, 241, 236, .94);
  font-size: .78rem; line-height: 1.3; white-space: nowrap; border: 1px solid var(--line);
}
.waypoint__label b { font-weight: 600; font-size: .82rem; }
.waypoint--below .waypoint__btn { grid-template-rows: auto auto; }
.waypoint--above .waypoint__label { order: -1; }
.waypoint__btn:hover .waypoint__dot, .waypoint__btn:focus-visible .waypoint__dot,
.waypoint__btn[aria-pressed="true"] .waypoint__dot { background: var(--tone); color: var(--card); transform: scale(1.08); }
.waypoint__btn[aria-pressed="true"] .waypoint__label { border-color: var(--tone); box-shadow: inset 0 -2px 0 var(--tone); }
.waypoint__btn:focus-visible { outline: 3px solid var(--tone); outline-offset: 4px; border-radius: 12px; }
.tone-ochre { --tone: var(--ochre); --tone-text: var(--ochre-text); }
.tone-teal { --tone: var(--teal); --tone-text: var(--teal); }
.tone-red { --tone: var(--red); --tone-text: #A93226; }

.scene-toggle {
  position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(244,241,236,.95);
  color: var(--ink); font: 500 .85rem var(--sans); cursor: pointer;
}
.scene-toggle:hover { border-color: var(--ochre); }
.scene-toggle .icon { width: 16px; height: 16px; }

.role-card {
  background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
  border-top: 4px solid var(--tone, var(--ochre)); display: grid; gap: 14px;
}
.role-card:focus { outline: none; }
.role-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: .95rem; }
.role-card__step { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--tone-text); }
.role-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.role-card h3 span { font-weight: 500; font-style: italic; }
.points { display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; }
.points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--tone, var(--ochre)); }
.points--two { grid-template-columns: 1fr 1fr; gap: 10px 32px; }

.timeline { display: none; }

@media (max-width: 760px) {
  .scene-wrap { aspect-ratio: 16 / 10; }
  .waypoints, .role-card { display: none; }
  .scene-toggle { top: auto; bottom: 10px; right: 10px; }
  .timeline { display: grid; gap: 0; position: relative; }
  .timeline::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; border-left: 3px dotted #9C7A55; }
  .tl-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 28px; }
  .tl-item:last-child { padding-bottom: 0; }
  .tl-item .waypoint__dot { position: relative; z-index: 1; width: 48px; height: 48px; }
  .tl-item__body { background: var(--card); border-radius: 12px; padding: 18px; display: grid; gap: 10px; border-top: 3px solid var(--tone); }
  .tl-item__body h3 { font-size: 1.2rem; }
  .tl-item__meta { font-size: .9rem; color: var(--ink-soft); }
  .points li { font-size: .95rem; }
}
@media (max-width: 960px) { .points--two { grid-template-columns: 1fr; } }

/* Scene animation */
.anim-sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite alternate; }
.anim-sway.d2 { animation-duration: 8.5s; animation-delay: -3s; }
.anim-sway.d3 { animation-duration: 6.2s; animation-delay: -1.5s; }
@keyframes sway { from { transform: rotate(-1.6deg); } to { transform: rotate(1.6deg); } }
.anim-sun { transform-box: fill-box; transform-origin: center; animation: sun 60s linear infinite; }
@keyframes sun { to { transform: rotate(360deg); } }
.anim-glow { transform-box: fill-box; transform-origin: center; animation: glow 6s ease-in-out infinite alternate; }
@keyframes glow { from { transform: scale(1); opacity: .35; } to { transform: scale(1.12); opacity: .18; } }
.anim-cloud { animation: drift 48s ease-in-out infinite alternate; }
.anim-cloud.d2 { animation-duration: 62s; animation-delay: -20s; }
@keyframes drift { from { transform: translateX(-30px); } to { transform: translateX(70px); } }
.anim-birds { animation: fly 38s linear infinite; }
@keyframes fly { from { transform: translate(-120px, 20px); } to { transform: translate(1320px, -30px); } }
.anim-wing { transform-box: fill-box; transform-origin: center; animation: flap .9s ease-in-out infinite alternate; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
.anim-wind { stroke-dasharray: 60 240; animation: wind 7s linear infinite; }
.anim-wind.d2 { animation-delay: -2.5s; } .anim-wind.d3 { animation-delay: -5s; }
@keyframes wind { from { stroke-dashoffset: 300; opacity: 0; } 20% { opacity: .55; } 80% { opacity: .55; } to { stroke-dashoffset: 0; opacity: 0; } }
.anim-ripple { transform-box: fill-box; transform-origin: center; animation: ripple 4.5s ease-out infinite; }
.anim-ripple.d2 { animation-delay: -2.2s; }
@keyframes ripple { from { transform: scale(.35); opacity: .7; } to { transform: scale(1); opacity: 0; } }
.anim-drop { animation: drop 2.6s linear infinite; }
@keyframes drop { from { transform: translateY(-40px); opacity: 0; } 15% { opacity: .5; } 85% { opacity: .5; } to { transform: translateY(170px); opacity: 0; } }

.scene-wrap.is-paused .scene * { animation-play-state: paused !important; }

/* PORTFOLIO */
.section--portfolio { background: #DCE2E5; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; align-items: start; }
.project { background: var(--card); border-radius: var(--radius); overflow: hidden; display: grid; border: 1px solid rgba(27, 79, 114, .12); }
.project__cover { aspect-ratio: 16 / 10; background: #E7ECEF; position: relative; }
.project__cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { position: absolute; inset: 12px; display: grid; place-content: center; justify-items: center; gap: 8px; border: 1.5px dashed #7C95A6; border-radius: 10px; color: #3F5D72; font-size: .88rem; text-align: center; }
.cover-placeholder .icon { width: 32px; height: 32px; stroke-width: 1.3; }
.project__body { padding: 22px 22px 24px; display: grid; gap: 10px; }
.project__cat { justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: #17394F; }
.project h3 { font-size: 1.25rem; }
.project__desc { color: var(--ink-soft); }
.project details { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.project summary { cursor: pointer; font-weight: 600; color: var(--teal); list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border-radius: 6px; }
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.project details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.project__more { display: grid; gap: 14px; padding-top: 8px; font-size: .96rem; }
.project__more h4 { margin: 0 0 4px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; font-size: .88rem; background: #E7ECEF; color: var(--ink); border: 1px solid rgba(27,79,114,.18); }
.files { display: grid; gap: 8px; }
.files a { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font-weight: 500; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.media-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.project video, .project iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #000; }
.pending { color: var(--ink-soft); font-style: italic; }
.pending--box { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px dashed rgba(44,44,44,.35); border-radius: 999px; font-style: normal; font-weight: 500; }

/* SKILLS: flowing blue background and editorial capability cards. */
.section--skills {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(125deg, #123A55 0%, var(--teal) 60%, #246383 100%);
  color: var(--card);
  --accent: var(--gold);
}
.section--skills::before {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px;
  border: 1px solid rgba(169,188,201,.22); border-radius: 45% 55% 60% 40%;
  right: -300px; top: -220px; transform: rotate(-25deg);
  box-shadow: 0 0 0 60px rgba(169,188,201,.055), 0 0 0 120px rgba(169,188,201,.04), 0 0 0 180px rgba(169,188,201,.025);
  pointer-events: none;
}
.section--skills .marker, .section--skills .marker .icon { color: var(--card); }
.section--skills .section-head { max-width: 690px; gap: 18px; margin-bottom: 40px; }
.section--skills .section-head p { color: #DBE5EC; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.skill-group {
  display: grid; gap: 24px; align-content: start; padding: clamp(24px, 3vw, 36px);
  border-radius: 20px; border: 1px solid rgba(244,241,236,.25);
  background: rgba(244,241,236,.07);
}
.skill-group--1 { grid-column: 2; grid-row: 1 / span 2; background: var(--card); color: var(--teal); }
.skill-group__top { display: flex; align-items: center; justify-content: space-between; }
.skill-group__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(244,241,236,.3); border-radius: 14px; }
.skill-group__icon .icon { width: 26px; height: 26px; }
.skill-group__number { font: 500 2.4rem/1 var(--serif); color: #B9CFDC; }
.skill-group--1 .skill-group__number { color: #56758A; }
.skill-group--1 .skill-group__icon { border-color: #BCCBD4; background: #E2E9ED; }
.skill-group__heading { display: grid; gap: 12px; }
.skill-group h3 { color: inherit; font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.skill-group__heading p { font-size: .95rem; line-height: 1.6; color: #DBE5EC; max-width: 36ch; }
.skill-group--1 .skill-group__heading p { color: var(--ink-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(244,241,236,.22); color: var(--card); font-size: .85rem; line-height: 1.4; }
.skill-group--1 .pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.skill-group--1 .pill { display: flex; align-items: center; min-height: 50px; border: 1px solid #CAD5DC; background: #E5EBEF; color: var(--teal); font-weight: 500; }
.skill-group--1 .pill::before { content: ""; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; margin-right: 10px; flex: none; }
@media (max-width: 760px) {
  .skills { grid-template-columns: 1fr; }
  .skill-group--1 { grid-column: auto; grid-row: auto; }
}
@media (max-width: 380px) { .skill-group--1 .pills { grid-template-columns: 1fr; } }

/* CONTACT */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__info { display: grid; gap: 18px; justify-items: start; }
.contact__intro { font-size: 1.15rem; max-width: 460px; }
.contact__list { display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 12px; }
.contact__list .icon { color: var(--red); }
.contact__list a { color: var(--ink); text-underline-offset: 3px; }
.form { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 18px; border-top: 4px solid var(--red); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid rgba(44,44,44,.3); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field__err { color: #A93226; font-size: .88rem; min-height: 0; }
.form .btn { justify-self: start; }
.form__status { font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { padding: 12px 16px; border-radius: 10px; background: #E3EDE4; color: #1E5631; }
.form__status.is-err { padding: 12px 16px; border-radius: 10px; background: #F6E2DF; color: #8E2A20; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { background: var(--ink); color: var(--card); padding: 36px 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.footer a { color: var(--card); }
.footer__line { color: #CFC9BE; font-style: italic; }/* Featured case study */
.case-feature { margin-bottom: 24px; border-left: 4px solid var(--teal); }
.case-feature .project__body { justify-items: start; }

/* Compact Flow-themed project row. */
.case-feature {
  --accent: var(--teal);
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: center;
  gap: 24px;
  padding: 20px;
}
.case-feature__thumbnail { display: block; background: #061b41; border-radius: 8px; overflow: hidden; }
.case-feature__thumbnail img { width: 100%; height: auto; }
.case-feature__thumbnail:focus-visible { outline-offset: -4px; }
.case-feature .project__body { padding: 0; gap: 12px; min-width: 0; }
.case-feature .project__cat { font-size: .65rem; padding: 3px 8px; }
.case-feature h3 { font-size: 1.2rem; }
.case-feature .project__desc { font-size: .9rem; line-height: 1.5; }
.case-feature .btn {
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-size: .88rem;
  line-height: 1.4;
  text-align: center;
  background: var(--teal);
  color: var(--card);
}
.case-feature .btn:hover, .case-feature .btn:focus-visible {
  background: #123A55;
  border-color: #123A55;
}
@media (max-width: 600px) {
  .case-feature { grid-template-columns: minmax(0, 1fr) 100px; gap: 12px; padding: 12px; align-items: start; }
  .case-feature h3 { font-size: 1.1rem; }
  .case-feature .project__cat { font-size: .6rem; letter-spacing: .04em; }
  .case-feature .project__desc { font-size: .85rem; }
  .case-feature .btn { padding: 9px 12px; font-size: .82rem; }
}

/* Footer: signature and reflection share the same row on wider screens. */
.footer__inner { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px 40px; }
.footer__line { max-width: 80ch; line-height: 1.7; }
.home__photo img { height: auto; object-position: center top; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }
