/* Dark studio: approved portfolio direction. */
:root {
  color-scheme: dark;
  --background: #071113;
  --text: #f1ebdf;
  --muted: #cacdca;
  --accent: #8bd6ca;
  --rule: #354042;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
.shell { width: min(1280px, calc(100% - clamp(40px, 7.5vw, 112px))); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-180%); padding: 12px 18px; color: var(--background); background: var(--accent); }
.skip-link:focus { transform: translateY(0); }
.skip-link:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.opening { position: relative; isolation: isolate; }
.opening__portrait { position: absolute; top: 0; right: 0; width: 74%; height: 100%; z-index: -1; overflow: hidden; }
.opening__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.opening__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #071113cf 0%, transparent 24%), linear-gradient(90deg, var(--background) 0%, transparent 38%), linear-gradient(0deg, var(--background) 0%, transparent 24%); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 108px; }
.brand { font-size: 36px; font-weight: 650; letter-spacing: -1.8px; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 16px; font-weight: 500; }
.nav-projects { color: var(--accent); }
.site-header nav a:hover, .site-footer a:hover { color: var(--accent); }
.hero { padding-top: clamp(44px, 5vw, 78px); padding-bottom: 86px; min-height: clamp(480px, 44vw, 630px); }
.hero h1 { max-width: 740px; font-size: clamp(52px, 6.45vw, 92px); font-weight: 650; letter-spacing: -0.055em; line-height: 1.04; }
.hero p { margin-top: 28px; font-size: clamp(18px, 1.75vw, 25px); line-height: 1.55; color: #e0dfd8; }
.primary-link { display: inline-flex; align-items: center; justify-content: center; margin-top: 42px; padding: 18px 34px; min-height: 56px; font-size: 17px; font-weight: 650; border: 1px solid #83c7bc; border-radius: 3px; background: #82cec1; color: #071b18; transition: background 160ms ease, transform 160ms ease; }
.primary-link:hover { background: #a0e2d7; transform: translateY(-2px); }
.section-title { font-size: clamp(27px, 2.5vw, 37px); font-weight: 600; line-height: 1.2; letter-spacing: -0.04em; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.featured-projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 26px; row-gap: 62px; padding-top: 28px; }
.feature { min-width: 0; }
.feature__media { display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1.73; background: #0b1114; }
.feature__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
a.feature__media:hover > img { transform: scale(1.025); }
.feature__media--lastlight > img, .feature__media--deckforge > img, .feature__media--nesty > img { object-fit: contain; }
.feature__media--familymacro { background: #102c27; isolation: isolate; }
.familymacro-scene { object-position: center; }
.feature__media--familymacro::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #061a17a8 100%); pointer-events: none; }
.phone-frame { position: absolute; z-index: 1; right: 8%; bottom: -3%; height: 93%; aspect-ratio: 0.451; overflow: hidden; border: 4px solid #14263a; border-radius: 27px 27px 0 0; background: #fff; box-shadow: 0 12px 32px #05100caa; transform: rotate(-4deg); transform-origin: bottom center; }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature__body { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 20px; padding-top: 20px; }
.feature__number { color: var(--accent); padding-top: 5px; font-size: 18px; font-variant-numeric: tabular-nums; }
.feature h3 { font-size: clamp(25px, 2.25vw, 33px); line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; }
.feature h3 a:hover { color: var(--accent); }
.feature__copy > p:not(.feature__subtitle) { color: var(--muted); font-size: 17px; line-height: 1.55; margin-top: 23px; }
.feature__subtitle { color: var(--accent); font-size: 20px; line-height: 1.5; margin-top: 3px; }
.feature__subtitle + p { margin-top: 16px !important; }
.text-link { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; margin-top: 18px; color: var(--accent); font-size: 17px; }
.text-link span { transition: transform 160ms ease; }
.text-link:hover { color: #c0eee5; }
.text-link:hover span { transform: translateX(4px); }
.development-status { display: inline-flex; align-items: center; min-height: 44px; margin-top: 18px; color: var(--accent); font-size: 17px; }
.about { display: grid; grid-template-columns: 0.85fr 1.2fr; gap: 36px; align-items: center; padding-top: 40px; padding-bottom: 30px; }
.about__image { width: 100%; aspect-ratio: 1.4; border-radius: 5px; overflow: hidden; }
.about__portrait { width: 100%; height: 100%; object-fit: cover; object-position: 85% 36%; transform: scale(1.55); transform-origin: 90% 40%; }
.about__label { font-size: 13px; font-weight: 550; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.about h2 { font-size: clamp(28px, 2.45vw, 36px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.2; }
.about__copy > p:not(.about__label) { font-size: 20px; color: var(--muted); max-width: 620px; line-height: 1.55; margin-top: 20px; }
.about__links { display: flex; gap: 48px; margin-top: 8px; }
.site-footer { border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 24px; font-size: 15px; }
.footer-main, .footer-main nav { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.footer-main a { display: inline-flex; min-height: 44px; align-items: center; }
.resource-links { color: var(--muted); font-size: 13px; }
.resource-links summary { cursor: pointer; width: fit-content; min-height: 44px; padding-top: 10px; }
.resource-links nav { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-block: 6px; }
.resource-links a { padding-block: 8px; }
@media (min-width: 1600px) { .opening__portrait { width: 68%; } }
@media (max-width: 900px) {
  .site-header { min-height: 80px; }
  .brand { font-size: 29px; }
  .site-header nav { font-size: 14px; gap: 25px; }
  .hero { min-height: 365px; padding-top: 34px; padding-bottom: 58px; }
  .hero h1 { font-size: clamp(46px, 6.4vw, 58px); }
  .hero p { font-size: 17px; margin-top: 23px; }
  .primary-link { margin-top: 28px; padding: 13px 26px; min-height: 48px; font-size: 15px; }
  .featured-projects { gap: 38px 20px; padding-top: 20px; }
  .feature__body { grid-template-columns: 24px minmax(0, 1fr); gap: 16px; padding-top: 15px; }
  .feature__number { font-size: 15px; }
  .feature h3 { font-size: 25px; }
  .feature__copy > p:not(.feature__subtitle) { font-size: 15px; margin-top: 18px; }
  .feature__subtitle { font-size: 18px; }
  .text-link, .development-status { font-size: 15px; margin-top: 12px; }
  .about__copy > p:not(.about__label) { font-size: 17px; }
  .about__links { gap: 28px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 20px; }
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 82px; gap: 18px; }
  .brand { font-size: 27px; letter-spacing: -1.4px; }
  .site-header nav { gap: 16px; font-size: 12px; }
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .opening__portrait { width: 100%; height: 380px; top: 275px; }
  .opening__portrait img { object-position: 72% 38%; }
  .opening__portrait::after { background: linear-gradient(180deg, var(--background), transparent 24%, transparent 74%, var(--background)); }
  .hero { min-height: 578px; padding-top: 24px; padding-bottom: 295px; }
  .hero h1 { font-size: clamp(42px, 10.8vw, 64px); letter-spacing: -0.055em; }
  .hero p { margin-top: 20px; font-size: 16px; line-height: 1.5; }
  .desktop-break { display: none; }
  .primary-link { margin-top: 24px; position: relative; z-index: 1; }
  .section-title { font-size: 27px; padding-bottom: 16px; }
  .featured-projects { grid-template-columns: 1fr; gap: 36px; padding-top: 20px; }
  .feature__media { aspect-ratio: 1.73; }
  .feature__body { grid-template-columns: 24px minmax(0, 1fr); gap: 14px; }
  .feature h3 { font-size: 26px; }
  .feature__copy > p:not(.feature__subtitle) { font-size: 16px; line-height: 1.55; margin-top: 14px; }
  .text-link, .development-status { font-size: 16px; }
  .phone-frame { border-radius: 19px 19px 0 0; border-width: 3px; }
  .about { grid-template-columns: 1fr; gap: 27px; padding-top: 36px; padding-bottom: 32px; }
  .about__image { aspect-ratio: 1.55; }
  .about h2 { font-size: 29px; }
  .about__copy > p:not(.about__label) { font-size: 17px; margin-top: 16px; }
  .about__links { margin-top: 12px; }
  .site-footer { font-size: 14px; padding-top: 13px; }
  .footer-main, .footer-main nav { gap: 25px; }
}
@media (max-width: 360px) {
  .brand { font-size: 25px; }
  .site-header { gap: 12px; }
  .site-header nav { gap: 12px; font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
