/* SP — warm dusk, quiet type, and an independent point of view. */
:root {
  color-scheme: dark;
  --night: #16151a;
  --surface: #1d1c21;
  --ink: #f4ede3;
  --muted: #b7afa9;
  --faint: #9e9692;
  --accent: #ebbc91;
  --accent-deep: #dba57e;
  --line: rgba(235, 211, 192, 0.14);
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { background: var(--night); color: var(--ink); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; background: none; border: none; cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
::selection { background: #ebbc9140; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.container { max-width: 76rem; margin-inline: auto; padding-inline: 2.5rem; }
.hidden { display: none !important; }
.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-link { position: fixed; top: 0.75rem; left: 1rem; z-index: 100; transform: translateY(-150%); background: var(--accent); color: var(--night); padding: 0.75rem 1.25rem; border-radius: 0.25rem; }
.skip-link:focus { transform: none; }
.anchor-alias { display: block; scroll-margin-top: 7rem; }

/* Navigation */
#site-nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
#site-nav.scrolled, .contact-page #site-nav { background: rgba(22, 21, 26, 0.94); border-bottom-color: var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; letter-spacing: -0.04em; }
.brand .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2rem; font-size: 0.85rem; }
.nav-link { color: #e7ddd5; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
#menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; }
#mobile-menu { display: none; }
.mobile-link { display: block; padding: 0.9rem 1.25rem; border-radius: 0.25rem; }
.mobile-link:hover { background: #ebbc9110; }

/* Type and actions */
.eyebrow, .small-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.section { padding-top: 7.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-bottom: 2.75rem; }
.section-title { margin-top: 1.15rem; font-family: var(--font-display); font-size: clamp(2.4rem, 4.2vw, 3.7rem); font-weight: 500; line-height: 1.13; letter-spacing: -0.055em; }
.section-title em, .closing-title em { font-family: var(--font-editorial); font-weight: 400; letter-spacing: -0.025em; color: var(--accent); }
.section-sub { max-width: 23rem; color: var(--muted); font-size: 0.95rem; line-height: 1.8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 1.15rem; padding: 0.9rem 1.5rem; min-height: 48px; border: 1px solid transparent; border-radius: 999px; font-size: 0.86rem; font-weight: 600; line-height: 1.4; transition: background 0.2s, transform 0.2s, border-color 0.2s; }
.btn span { font-size: 1.1rem; font-weight: 400; }
.btn-primary { background: var(--accent); color: #241c19; }
.btn-primary:hover { background: #f5cda9; transform: translateY(-2px); }
.btn-ghost { border-color: #eee3d94d; background: #1c152142; color: var(--ink); }
.btn-ghost:hover { background: #eee3d91a; border-color: var(--accent); }
.btn-small { padding: 0.6rem 1.25rem; min-height: 44px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.text-link, .link { color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 1.5rem; padding-block: 0.5rem; border-bottom: 1px solid #ebbc9140; font-size: 0.9rem; }
.text-link:hover { border-color: var(--accent); }
.link { text-decoration: underline; text-underline-offset: 4px; }

/* Original Mount Hood scene, with a warmer frame */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 720px; height: 100svh; max-height: 1100px; overflow: hidden; background: linear-gradient(#34233e, #b75966 52%, #251f30 78%, var(--night)); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(16, 12, 23, 0.45), rgba(16, 12, 23, 0.12) 42%, rgba(16, 12, 23, 0.26)); }
.hero-fade { pointer-events: none; position: absolute; inset-inline: 0; bottom: 0; height: 10rem; background: linear-gradient(transparent, var(--night)); }
.hero-content { pointer-events: none; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; max-width: 100%; min-width: 0; padding: 5rem 1.5rem 6rem; text-align: center; }
.hero-title { font-family: var(--font-editorial); font-size: clamp(4.5rem, 9vw, 8rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; text-shadow: 0 2px 24px #170f2280; }
.hero-title em { font-weight: 400; }
.hero-ctas { pointer-events: auto; margin-top: 1.85rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; }
.hero-bottom { position: absolute; bottom: 2rem; inset-inline: 0; width: 100%; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.scroll-cue { display: flex; align-items: center; gap: 1.5rem; min-height: 44px; color: #d9cbc3; }
.scroll-cue:hover { color: var(--accent); }
.scroll-cue > span:last-child { font-size: 1.2rem; }
.scene-control { display: flex; align-items: center; gap: 0.7rem; min-height: 44px; color: #d9cbc3; }
.scene-control label { font-size: 0.65rem; letter-spacing: 0.08em; }
.scene-control > span { font-size: 1.1rem; }
.scene-control input { width: 5.5rem; height: 44px; accent-color: var(--accent); cursor: ew-resize; }

/* Overview */
.intro-strip { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 1.5rem; align-items: center; padding-block: 2.1rem; border-bottom: 1px solid var(--line); }
.intro-strip p { font-size: 0.76rem; line-height: 1.65; }
.intro-strip p span { color: var(--faint); }
.intro-strip a { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 44px; font-size: 0.76rem; line-height: 1.5; color: var(--muted); }
.intro-strip a:hover { color: var(--accent); }
.intro-strip a span { color: var(--accent); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; padding: 2.3rem; background: linear-gradient(130deg, #e5bd9210, transparent 65%), var(--surface); border: 1px solid var(--line); border-radius: 0.6rem; scroll-margin-top: 7rem; transition: border-color 0.25s, background 0.25s; }
.service-card:hover, .service-card:focus-within { border-color: #ebbc9170; }
.service-top { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-bottom: 1.8rem; }
.service-number { font-family: var(--font-editorial); font-size: 1.3rem; color: var(--faint); }
.service-icon { width: 30px; height: 30px; color: var(--accent); }
.service-kicker { margin-bottom: 0.65rem; font-size: 0.65rem; letter-spacing: 0.075em; text-transform: uppercase; color: var(--accent); }
.service-title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.5vw, 2rem); font-weight: 500; letter-spacing: -0.045em; line-height: 1.2; }
.service-title-aside { color: var(--muted); }
.service-desc { margin-top: 1.15rem; font-size: 0.9rem; line-height: 1.85; color: var(--muted); }
.service-deliverables { margin-block: 1.5rem; list-style: none; font-size: 0.81rem; color: #e0d6ce; }
.service-deliverables li { position: relative; padding-left: 1rem; margin-top: 0.45rem; }
.service-deliverables li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.service-note { font-size: 0.75rem; line-height: 1.7; color: var(--faint); margin-bottom: 1.4rem; }
.service-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-top: auto; padding-top: 1.2rem; min-height: 48px; border-top: 1px solid var(--line); color: var(--accent); font-size: 0.85rem; }
.service-link > span { font-size: 1.2rem; transition: transform 0.2s; }
.service-link:hover > span { transform: translate(2px, -2px); }

/* Work: descriptions and links remain visible on every device */
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.75rem 1.5rem; }
.project-card { min-width: 0; }
.thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0.5rem; border: 1px solid var(--line); background: linear-gradient(130deg, #523d46, #28242f 70%, #434d47); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.project-card:hover .thumb img { transform: scale(1.025); }
.thumb-mark { position: absolute; bottom: 1rem; left: 1rem; font-family: var(--font-editorial); font-size: 3rem; color: var(--accent); }
.thumb:has(img) .thumb-mark { display: none; }
.card-body { padding-top: 1.25rem; }
.card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.04em; }
.card-number { font-size: 0.68rem; color: var(--faint); }
.card-tags { margin-top: 0.3rem; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--accent); text-transform: uppercase; }
.card-desc { margin-top: 0.85rem; color: var(--muted); font-size: 0.87rem; line-height: 1.8; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; }
.card-link:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; border-top: 1px solid var(--line); padding-top: 4.5rem; }
.about-heading .section-title { font-size: clamp(3rem, 5vw, 4.5rem); }
.about-location { display: flex; align-items: center; gap: 0.6rem; margin-top: 2rem; font-size: 0.73rem; color: var(--faint); }
.about-location > span { color: var(--accent); font-size: 1.4rem; }
.about-bio { padding-top: 1.5rem; }
.about-lead { font-family: var(--font-editorial); font-size: clamp(2rem, 3.3vw, 2.9rem); line-height: 1.25; }
.about-lead em { color: var(--accent); }
.about-bio p:not(.about-lead) { max-width: 29rem; margin-top: 1.5rem; font-size: 0.95rem; color: var(--muted); line-height: 1.9; }
.about-bio .text-link { margin-top: 1.5rem; }

/* Closing invitation */
.closing-section { padding-bottom: 6rem; }
.contact-cta { padding: 4.5rem 2rem; text-align: center; border: 1px solid var(--line); border-radius: 0.6rem; background: radial-gradient(ellipse at 50% 110%, #b4775a20, transparent 65%), #1d1b20; }
.closing-title { margin-top: 1.1rem; font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 500; letter-spacing: -0.055em; line-height: 1.15; }
.contact-cta > p:not(.eyebrow) { margin-top: 1.5rem; color: var(--muted); font-size: 0.93rem; }
.contact-cta .btn { margin-top: 1.75rem; }
.closing-note { display: block; margin-top: 1rem; font-size: 0.7rem; color: var(--faint); }

/* Contact page */
.contact-page { background: radial-gradient(ellipse at 0 30%, #8d5d3b10, transparent 55%), var(--night); }
.page-top { padding-top: 9rem; padding-bottom: 6rem; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; }
.back-link:hover { color: var(--accent); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 4rem; row-gap: 2.75rem; align-items: start; }
.contact-intro { grid-column: 1; grid-row: 1; }
.contact-layout > .contact-panel { grid-column: 2; grid-row: 1 / span 2; }
.contact-layout > .contact-process { grid-column: 1; grid-row: 2; }
.contact-intro .section-title { font-size: clamp(2.6rem, 4.5vw, 4rem); }
.contact-intro .section-sub { margin-top: 1.75rem; max-width: 25rem; }
.contact-process { border-top: 1px solid var(--line); padding-top: 1.75rem; }
.contact-process > p { color: var(--faint); }
.contact-process ol { list-style: none; margin-top: 1.4rem; }
.contact-process li { display: flex; gap: 1rem; margin-top: 1.35rem; }
.contact-process li > span { font-size: 0.72rem; color: var(--accent); padding-top: 0.15rem; }
.contact-process h2 { font-size: 0.95rem; font-weight: 500; }
.contact-process li p { max-width: 21rem; margin-top: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.contact-signoff { margin-top: 2.5rem; font-family: var(--font-editorial); font-style: italic; color: var(--accent); font-size: 1.25rem; }
.contact-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 0.65rem; padding: 2.3rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { min-width: 0; }
form > .field { margin-top: 1.5rem; }
.field label { display: block; margin-bottom: 0.55rem; font-size: 0.77rem; font-weight: 500; color: var(--ink); }
input[type="text"], input[type="email"], select, textarea { width: 100%; border-radius: 0.3rem; border: 1px solid #ebd3c02b; background: #16151a80; padding: 0.8rem 0.85rem; font-size: 0.88rem; line-height: 1.5; color: var(--ink); transition: border-color 0.2s; }
textarea { resize: vertical; min-height: 9rem; }
input::placeholder, textarea::placeholder { color: var(--faint); opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
select { cursor: pointer; text-overflow: ellipsis; padding-right: 2rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ebbc91' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.8rem center; }
select:invalid { color: var(--faint); }
select option { background: var(--surface); color: var(--ink); }
.field-help { margin-top: 0.6rem; font-size: 0.73rem; color: var(--faint); line-height: 1.7; }
.message-note { margin-top: 1rem; }
form .btn { margin-top: 1.5rem; }
button:disabled { opacity: 0.6; cursor: not-allowed; }
button:disabled:hover { transform: none; background: var(--accent); }
.honeypot { display: none; }
.form-notice { padding: 0.9rem 1rem; margin-bottom: 1.5rem; border: 1px solid #ebbc9140; border-radius: 0.3rem; background: #ebbc9108; color: var(--accent); font-size: 0.8rem; line-height: 1.7; }
.form-status { margin-top: 1rem; font-size: 0.88rem; }
.form-status:empty { display: none; }
.form-status.ok { color: #b7d4b0; }
.form-status.err { color: #f1b0a9; }
.form-privacy { margin-top: 1rem; text-align: center; font-size: 0.7rem; color: var(--faint); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 2.25rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-inner .brand { font-size: 1.5rem; }
.footer-inner p { font-size: 0.72rem; color: var(--muted); }
.footer-copyright { margin-left: 1rem; color: var(--faint); }
.footer-links { display: flex; gap: 1.5rem; font-size: 0.75rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }

/* Progressive enhancement: content is visible even if JavaScript fails. */
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: arrive 0.65s both; }
  @keyframes arrive { from { opacity: 0.3; transform: translateY(16px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 1023px) {
  .container { padding-inline: 1.75rem; }
  .intro-strip { grid-template-columns: repeat(4, 1fr); gap: 0.75rem 1.5rem; }
  .intro-strip p { grid-column: 1 / -1; }
  .intro-strip p br { display: none; }
  .intro-strip p span { margin-left: 0.5rem; }
  .contact-layout { gap: 2rem; }
  .contact-panel { padding: 1.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 6rem; }
  .container { padding-inline: 1.25rem; }
  .nav-bar { min-height: 76px; }
  .nav-links { display: none; }
  #menu-btn { display: flex; }
  #mobile-menu { display: flex; flex-direction: column; padding: 0.5rem; margin: 0 1rem 1rem; background: #211e25; border: 1px solid var(--line); border-radius: 0.5rem; box-shadow: 0 12px 24px #0004; }
  .hero { min-height: 690px; max-height: 950px; }
  .hero-content { padding-top: 5.5rem; padding-bottom: 6rem; }
  .hero-title { font-size: clamp(3.8rem, 15vw, 6rem); }
  .hero-ctas { gap: 0.7rem; margin-top: 1.7rem; }
  .hero-ctas .btn { padding: 0.8rem 1.15rem; font-size: 0.78rem; gap: 0.7rem; }
  .hero-bottom { bottom: 1.5rem; }
  .scroll-cue { gap: 0.6rem; }
  .scroll-cue .small-label { font-size: 0.55rem; letter-spacing: 0.12em; }
  .scene-control { gap: 0.4rem; }
  .scene-control label { font-size: 0.58rem; letter-spacing: 0; }
  .scene-control input { width: 3.5rem; }
  .intro-strip { grid-template-columns: 1fr 1fr; padding-block: 1.5rem; gap: 0.5rem 1.5rem; }
  .intro-strip p { margin-bottom: 0.5rem; }
  .intro-strip a { font-size: 0.7rem; }
  .section { padding-top: 4.75rem; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 1.5rem; margin-bottom: 2rem; }
  .section-sub { max-width: 30rem; font-size: 0.9rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.65rem; }
  .service-top { margin-bottom: 1.3rem; }
  .service-title { font-size: 1.85rem; }
  .service-kicker { font-size: 0.6rem; }
  .projects-grid { gap: 2.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3rem; }
  .about-heading .section-title { font-size: clamp(2.9rem, 12vw, 4rem); }
  .about-location { margin-top: 1.2rem; }
  .about-bio { padding-top: 0; }
  .about-lead { font-size: 2.4rem; }
  .closing-section { padding-bottom: 4rem; }
  .contact-cta { padding: 3rem 1.1rem; }
  .closing-title { font-size: clamp(2.2rem, 8.3vw, 3.5rem); }
  .contact-cta > p:not(.eyebrow) { font-size: 0.85rem; }
  .closing-note { font-size: 0.65rem; }
  .page-top { padding-top: 7rem; padding-bottom: 4rem; }
  .back-link { margin-bottom: 1.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-intro, .contact-layout > .contact-panel, .contact-layout > .contact-process { grid-column: auto; grid-row: auto; }
  .contact-intro .section-title { font-size: 3rem; }
  input[type="text"], input[type="email"], select, textarea { font-size: 1rem; }
  .footer-inner { flex-wrap: wrap; gap: 0.75rem; }
  .footer-inner > p { order: 3; width: 100%; font-size: 0.65rem; }
  .footer-links { gap: 1rem; }
  .footer-copyright { margin-left: 0.5rem; }
}
@media (max-width: 359px) {
  .hero-title { font-size: 3.6rem; }
  .hero-bottom { flex-direction: column-reverse; gap: 0; bottom: 0.7rem; }
  .hero-ctas { flex-direction: column; }
  .hero { min-height: 760px; }
  .intro-strip p span { display: block; margin-left: 0; }
  .service-card { padding: 1.25rem; }
  .contact-panel { padding: 1.1rem; }
}
