/* AmegbedziDev portfolio: sage #97A87A, sand #EAE2D6, white */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --white: #ffffff;
  --sage: #97A87A;            /* brand colour (surfaces, buttons) */
  --sand: #EAE2D6;            /* brand background */
  --sand-soft: #f5f1ea;
  --sand-deep: #ddd2c0;
  --line: #d9cfbf;
  --ink: #1f2419;
  --muted: #5c6150;
  --accent: #55673a;          /* sage darkened for text/links (AA contrast) */
  --accent-dark: #3a4727;
  --accent-light: #c5d1b2;
  --accent-soft: #eef2e6;
  --accent-band: #97A87A;
  --deep: #1f2619;            /* dark surfaces: code card, footer */
  --ok: #3f7a3a;
  --err: #a1302a;
  --shadow-sm: 0 1px 2px rgba(31, 36, 25, .05), 0 4px 12px rgba(31, 36, 25, .05);
  --shadow-md: 0 2px 4px rgba(31, 36, 25, .05), 0 14px 34px rgba(31, 36, 25, .12);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sage); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6.5vw, 5.2rem); letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { top: 12px; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--accent); }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 12px; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none; border-radius: 8px; transition: background-color .15s, color .15s; }
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a.nav-cta { margin-left: 8px; background: var(--sage); color: var(--ink); padding: 9px 18px; font-weight: 600; }
.site-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }
.menu-toggle { display: none; background: var(--sand-soft); border: 1.5px solid var(--line); border-radius: 8px; padding: 9px 16px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background .15s; }
.menu-toggle:hover { background: var(--sand); }

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 22px;
    box-shadow: 0 16px 36px rgba(31, 36, 25, 0.12);
    animation: navSlideDown .25s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--sand-soft); font-size: 1rem; }
  .site-nav a:hover { background: none; color: var(--accent); }
  .site-nav a.nav-cta { margin: 16px 0 0; text-align: center; border-radius: 8px; border-bottom: 0; padding: 12px 18px; }
  .site-nav a.nav-cta:hover { color: #fff; background: var(--accent-dark); }
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border: 1.5px solid var(--sage); border-radius: 10px; background: var(--sage); color: var(--ink); font: inherit; font-size: .98rem; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 6px 16px rgba(85, 103, 58, .22); transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(58, 71, 39, .3); }
.btn:active { transform: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.8rem 0; }
.center-row { justify-content: center; }

/* Hero */
.hero { position: relative; background: var(--sand); padding: 88px 0 84px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(600px 360px at 85% 8%, rgba(151, 168, 122, .45), transparent 70%),
    radial-gradient(520px 320px at 8% 90%, rgba(151, 168, 122, .28), transparent 70%),
    linear-gradient(to right, rgba(31, 36, 25, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 36, 25, .06) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px; background-position: 0 0, 0 0, 0 var(--grid-y, 0px), 0 var(--grid-y, 0px);
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 40%, transparent 100%); }
.hero .hero-grid { position: relative; }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; width: 100%; }
.avatar { width: 152px; height: 152px; margin-bottom: 1.6rem; border-radius: 50%; border: 5px solid var(--white); box-shadow: 0 0 0 3px var(--sage), var(--shadow-md); overflow: hidden; background: var(--accent-soft); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--display); font-weight: 800; font-size: 2.8rem; letter-spacing: -0.03em; color: var(--accent); }
.status { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: 1.6rem; box-shadow: var(--shadow-sm); max-width: 100%; }
.status-center { justify-content: center; }
.dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--ok); opacity: .25; }
.hero h1 { margin-bottom: .18em; }
.role { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; letter-spacing: -0.015em; color: var(--accent); margin-bottom: 1.2rem; }
.lead { font-size: 1.2rem; max-width: 36rem; color: #3a3f31; }
.hero .button-row, .hero .social-row { justify-content: center; }
.social-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.social-row a { display: inline-block; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: .92rem; font-weight: 500; text-decoration: none; transition: border-color .15s, color .15s, transform .15s; }
.social-row a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.social-row a.social-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; }
.social-icon svg { width: 21px; height: 21px; }

.hero-visual { position: relative; width: min(640px, 100%); margin-top: 36px; padding: 40px 0; text-align: left; }
.hero-visual::before { content: ""; position: absolute; inset: 0 0 0 48px; background: var(--sage); border-radius: 24px; opacity: .85; }
.hero-code { position: relative; margin-right: 36px; background: var(--deep); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(31, 36, 25, .28); }
.code-bar { position: relative; margin: 0; padding: 12px 16px 12px 78px; background: #2a3322; font-family: var(--mono); font-size: .8rem; color: #b6c2a3; }
.code-bar::before { content: ""; position: absolute; left: 16px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #e08a7d; box-shadow: 19px 0 0 #e6c878, 38px 0 0 var(--sage); }
.hero-code pre { margin: 0; padding: 20px 22px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .85rem; line-height: 1.8; color: #e9e3d6; }
.c-k { color: #b9cc98; font-weight: 600; }
.c-s { color: #EAD2A4; }

.hero-strip { width: min(760px, 100%); margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(31, 36, 25, .14); text-align: center; }
.hero-strip p { margin: 0 0 .8rem; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero .tags { justify-content: center; margin-bottom: 0; }
.hero .tags li { background: var(--white); border: 1px solid var(--line); }
.hero .tech-tags { gap: 16px 24px; }
.hero .tech-tags li { display: grid; place-items: center; padding: 0; background: transparent; border: 0; border-radius: 0; line-height: 1; }
.tech-tags img { width: 28px; height: 28px; object-fit: contain; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent); }
.hero .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; gap: 0; margin: 0; padding: 4px 0; animation: marquee 30s linear infinite; }
.hero .marquee-track li { flex: none; margin-right: 12px; padding: 7px 18px; font-size: .95rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .hero .marquee-track { width: auto; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hero .marquee-track li { margin-right: 0; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .hero-visual { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .08s; }
  .hero-text > :nth-child(3) { animation-delay: .16s; }
  .hero-text > :nth-child(4) { animation-delay: .24s; }
  .hero-text > :nth-child(5) { animation-delay: .32s; }
  .hero-text > :nth-child(6) { animation-delay: .4s; }
  .hero-text > :nth-child(7) { animation-delay: .48s; }
  .hero-strip { animation: rise .7s cubic-bezier(.2, .7, .2, 1) .56s both; }
  .hero-visual { animation-delay: .25s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 880px) {
  .avatar { width: 120px; height: 120px; }
  .hero { padding: 48px 0 56px; }
  .hero-visual { padding: 20px 0; margin-top: 24px; }
  .hero-visual::before { inset: 0 0 0 16px; border-radius: 16px; }
  .hero-code { margin-right: 12px; border-radius: 10px; }
  .code-bar { padding-left: 64px; font-size: .75rem; }
  .hero-code pre { padding: 14px 16px; font-size: .78rem; }
}

/* Sections */
.section { padding: 90px 0; }
.section.alt { background: var(--sand); }
.section h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: .35em; border-radius: 3px; background: var(--sage); }
.center h2::after, .cta h2::after { margin-inline: auto; }
.section-intro { max-width: 38rem; color: var(--muted); font-size: 1.08rem; margin-bottom: 2.4rem; }
.section h2 + :not(.section-intro) { margin-top: 1.6rem; }
@media (max-width: 700px) { .section { padding: 54px 0; } }

/* About */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: start; }
.about-photo { position: relative; }
.about-photo::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border-radius: 22px; background: var(--sage); opacity: .55; }
.about-photo img, .photo-placeholder { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; background: var(--sand-deep); box-shadow: var(--shadow-md); }
.photo-placeholder { display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 5rem; letter-spacing: -0.04em; color: var(--accent); background: var(--sand); }
.about-grid p { max-width: 38rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 24px; margin: 2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.facts dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { max-width: 240px; margin: 0 auto; }
}

/* Tags */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 1em; }
.tags li { padding: 4px 13px; background: var(--sand); border-radius: 999px; font-size: .9rem; font-weight: 500; }
.section.alt .tags li { background: var(--white); }

/* Skills */
.skill-grid { display: block; margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.skill-group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line); transition: background-color .2s, padding-left .2s; }
.skill-group:hover { background: var(--white); padding-left: 24px; }
.skill-group h3 { margin: 0; font-size: 1.25rem; }
.skill-group .tags { margin: 0; }
.section.alt .skill-group .tags li, .skill-group .tags li { background: var(--white); border: 1px solid var(--line); padding: 5px 15px; }
.skill-group:hover .tags li { background: var(--sand); }
@media (max-width: 700px) {
  .skill-group { grid-template-columns: 1fr; gap: 12px; padding: 20px 4px; }
  .skill-group:hover { padding-left: 4px; }
}

/* Projects */
#projects { padding-block: 68px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 2rem; }
.filter { padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; min-height: 40px; }
.filter:hover { border-color: var(--accent); }
.filter.is-active { background: var(--sage); border-color: var(--sage); color: var(--ink); }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 1.25rem; }
.project-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s, box-shadow .25s; }
.project-card:hover { border-color: var(--sage); transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card[hidden] { display: none; }
.project-thumb { display: block; background: var(--sand-deep); aspect-ratio: 16 / 11; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-thumb img { transform: scale(1.05); }
.thumb-empty { display: grid; place-items: center; height: 100%; font-family: var(--display); font-weight: 800; font-size: 3.4rem; color: var(--accent); background: var(--sand); }
.project-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { margin-bottom: .4em; font-size: 1.3rem; }
.project-body h3 a { color: var(--ink); text-decoration: none; }
.project-body h3 a:hover { color: var(--accent); }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .85rem; font-weight: 500; color: var(--muted); margin-bottom: .6rem; }
.tag-featured { padding: 1px 10px; background: var(--accent-light); border-radius: 999px; color: var(--accent-dark); font-size: .78rem; font-weight: 600; }
.project-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: auto 0 0; padding-top: 12px; font-size: .92rem; font-weight: 600; }

.project-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.project-card.is-featured .project-thumb { flex: 0 0 42%; aspect-ratio: auto; min-height: 240px; }
.project-card.is-featured .project-body { padding: 30px; justify-content: center; }
.project-card.is-featured h3 { font-size: 1.7rem; letter-spacing: -0.025em; }
.project-card.is-featured .project-links { margin-top: 14px; }

@media (max-width: 960px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  #projects { padding-block: 54px; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; }
  .project-card.is-featured { flex-direction: column; }
  .project-card.is-featured .project-thumb { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .project-card.is-featured .project-body { padding: 22px; }
  .project-card.is-featured h3 { font-size: 1.5rem; }
}
.empty { padding: 28px; border: 1.5px dashed var(--sage); background: var(--sand-soft); border-radius: 14px; color: var(--muted); }

.project-card.is-collapsed { display: none; }
.more-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 2.4rem; }
.more-row[hidden] { display: none; }
.more-note { margin: 0; font-size: .92rem; }

/* Experience & Timeline */
.timeline { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.timeline > li { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.timeline > li > * { grid-column: 2; }
.timeline-dates { grid-column: 1 !important; grid-row: 1 / span 5; font-size: .95rem; font-weight: 600; color: var(--accent-dark); margin: .3rem 0 0; }
.timeline h3 { margin-bottom: .4em; font-size: 1.5rem; }
@media (max-width: 700px) {
  .timeline > li { grid-template-columns: 1fr; padding: 24px 0; }
  .timeline > li > *, .timeline-dates { grid-column: 1 !important; grid-row: auto !important; }
  .timeline-dates { margin-bottom: .4rem; }
  .timeline h3 { font-size: 1.25rem; }
}
.at { font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.bullets { padding-left: 1.2em; margin: 0 0 1em; }
.bullets li { margin-bottom: .3em; }
.bullets li::marker { color: var(--sage); }

/* Services */
.service-list { list-style: none; margin: 2.2rem 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.service-list li { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px; align-items: baseline; padding: 30px 12px; border-bottom: 1px solid var(--line); transition: background-color .2s, padding-left .2s; }
.service-list li:hover { background: var(--sand); padding-left: 24px; }
.section.alt .service-list li:hover { background: var(--white); }
.service-num { font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.service-list h3 { margin: 0; font-size: 1.45rem; }
.service-list p { margin: 0; color: var(--muted); }
@media (max-width: 700px) {
  .service-list li { grid-template-columns: 36px 1fr; gap: 6px 12px; padding: 20px 4px; }
  .service-list li:hover { padding-left: 4px; }
  .service-list p { grid-column: 2; }
  .service-list h3 { font-size: 1.2rem; }
}

/* Call to Action */
.cta { position: relative; overflow: hidden; background: var(--sage); color: var(--ink); padding: 92px 0; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(520px 300px at 90% 0%, rgba(234, 226, 214, .45), transparent 70%), radial-gradient(420px 260px at 0% 100%, rgba(58, 71, 39, .22), transparent 70%); }
.cta .container { position: relative; }
.cta h2 { color: var(--ink); }
.cta h2::after { background: var(--ink); }
.cta p { color: #2c3522; }
.cta .status { background: rgba(255, 255, 255, .8); border-color: rgba(31, 36, 25, .18); color: var(--ink); }
.cta .btn { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(31, 36, 25, .25); }
.cta .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.cta .btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); box-shadow: none; }
.cta .btn-outline:hover { background: var(--ink); color: #fff; }

@media (max-width: 700px) {
  .cta { padding: 60px 0; }
  .cta .button-row .btn { width: 100%; text-align: center; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.contact-list { margin: 1.6rem 0; }
.contact-list div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.contact-list dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.15rem; word-break: break-word; }
.contact-form { padding: 36px; background: var(--sand); border-radius: 22px; border-top: 5px solid var(--sage); box-shadow: var(--shadow-md); }
.contact-form label { display: block; font-size: .92rem; font-weight: 600; margin: 0 0 5px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 14px; margin-bottom: 18px; border: 1.5px solid var(--sand-deep); border-radius: 10px; background: var(--white); font: inherit; font-size: 16px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(151, 168, 122, .35); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { padding: 22px; border-radius: 16px; }
}

.notice { padding: 12px 16px; margin-bottom: 18px; border-radius: 10px; border: 1px solid; font-size: .95rem; }
.notice.ok { background: #eef7ee; border-color: #b4d6b6; color: #25562c; }
.notice.err { background: #fcefed; border-color: #e5b5b0; color: var(--err); }
.notice ul { margin: 0; padding-left: 1.1em; }

/* Project page */
.project-page { padding: 48px 0 40px; }
.crumb { margin-bottom: 1.6rem; font-size: .95rem; font-weight: 500; color: var(--muted); }
.crumb a { color: var(--muted); }
.project-kicker { display: inline-block; padding: 4px 14px; background: var(--accent-light); border-radius: 999px; color: var(--accent-dark); font-size: .88rem; font-weight: 600; margin-bottom: 1.2rem; }
.project-page h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
.project-hero-image { margin: 1.6rem 0 2.6rem; }
.project-hero-image img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--sand); box-shadow: var(--shadow-md); }
.project-content h2 { margin-top: 2.6rem; font-size: 1.7rem; }
.steps { padding-left: 1.3em; }
.steps li { margin-bottom: .6em; padding-left: .3em; }
.steps li::marker { color: var(--accent); font-weight: 700; }
.gallery-title { margin: 3.4rem 0 1.2rem; font-size: 1.7rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, transform .2s; }
.gallery a:hover img { border-color: var(--sage); transform: translateY(-3px); }
.project-cta { margin: 3.5rem 0 1rem; padding: 40px; background: var(--sand); border-radius: 22px; border-left: 5px solid var(--sage); }
.project-cta h2 { font-size: 1.6rem; }
@media (max-width: 700px) {
  .project-cta { padding: 24px; border-radius: 16px; margin: 2rem 0 1rem; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* Footer */
.site-footer { background: var(--deep); color: #d6dccb; padding-top: 60px; border-top: 5px solid var(--sage); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-light); }
.site-footer .muted { color: #a9b59a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: #fff; margin-bottom: .3rem; }
.footer-head { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); margin-bottom: .8rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid #333f2a; padding: 20px 0 30px; font-size: .9rem; color: #a9b59a; }
.footer-bottom p { margin: 0; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Scroll effects & Progress */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--sage); transform: scaleX(0); transform-origin: left; }
.scroll-controls { position: fixed; right: 20px; bottom: 22px; z-index: 55; display: grid; gap: 8px; }
.scroll-control { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--shadow-md); cursor: pointer; transition: background-color .18s, color .18s, transform .18s; }
.scroll-control:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.scroll-control:active { transform: none; }
.scroll-control[hidden] { display: none; }
.scroll-control svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.site-nav a[aria-current] { color: var(--accent); }
.site-nav a.nav-cta[aria-current] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
@media (display-mode: standalone) { html, body { touch-action: pan-x pan-y; } }
@media print { .site-header, .contact-form, .cta, .menu-toggle { display: none; } }
@media (max-width: 700px) { .scroll-controls { right: 12px; bottom: 14px; } .scroll-control { width: 40px; height: 40px; } }

.view-all-row { margin-top: 36px; text-align: center; }
.edu-field { color: var(--muted); font-size: .93rem; margin: 2px 0 6px; }
.collab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.collab-item { display: flex; align-items: center; gap: 8px; background: var(--sand); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 10px; font-size: .9rem; }
.collab-role { color: var(--muted); font-size: .85rem; }
.collab-role::before { content: 'กค'; margin: 0 4px; }
.collab-link { font-size: .82rem; margin-left: 6px; white-space: nowrap; }
