/* Michael Santner V4 — shared visual system. Colors and spacing live here. */
:root {
  color-scheme: dark;
  --bg: #090a0e;
  --panel: #12141b;
  --text: #f5f3ef;
  --muted: #b9bdc8;
  --line: #ffffff26;
  --accent: #ffb343;
  --accent-rgb: 255, 179, 67;
  --max-width: 1440px;
}
.marketing, .accent-marketing { --accent: #ff617f; --accent-rgb: 255, 97, 127; }
.video, .accent-video { --accent: #169bff; --accent-rgb: 22, 155, 255; }
.design, .accent-design { --accent: #69ff47; --accent-rgb: 105, 255, 71; }
.about { --accent: #b184ff; --accent-rgb: 177, 132, 255; }
.contact { --accent: #ffb343; --accent-rgb: 255, 179, 67; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.2vw, 46px); }
h3 { font-size: clamp(22px, 2vw, 28px); }
p { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--accent); color: #090a0e; }
.skip-link:focus { top: 10px; }
main { min-height: 70vh; }
main > section, .section-head { scroll-margin-top: 110px; }
/* One header and navigation on all pages, including case studies. */
.site-header { position: sticky; top: 0; z-index: 50; min-height: 88px; display: flex; align-items: center; gap: 30px; padding: 8px 4vw; background: #090a0ef2; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { flex-shrink: 0; }
.brand img { width: 182px; height: 85.12px; object-fit: contain; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: clamp(18px, 2vw, 30px); margin-left: auto; }
.primary-nav a { padding: 12px 0; font-size: 13px; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.resume { font-size: 13px; border: 1px solid var(--line); padding: 10px 16px; white-space: nowrap; }
.resume:hover { border-color: var(--accent); }
.menu-toggle { color: var(--text); background: transparent; border: 1px solid var(--line); padding: 9px 14px; }
.button { display: inline-block; border: 1px solid #ffffff6b; padding: 13px 22px; font-size: 14px; font-weight: bold; letter-spacing: .045em; text-transform: uppercase; background: transparent; color: var(--text); }
.button.primary { background: var(--accent); border-color: var(--accent); color: #090a0e; }
.button:hover { box-shadow: 0 0 24px rgba(var(--accent-rgb), .18); border-color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.text-link, .text-button { color: var(--text); border: 0; border-bottom: 1px solid var(--accent); padding: 0 0 4px; background: transparent; }
.text-link:hover, .text-button:hover { color: var(--accent); }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 5vw; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
/* Actual portfolio imagery sits behind split department typography. */
.department-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 480px; display: grid; align-items: center; padding: 100px 5vw; background: radial-gradient(ellipse at 20% 60%, rgba(var(--accent-rgb), .1), transparent 60%); }
.department-art { position: absolute; z-index: -2; right: 0; top: 0; width: 60%; height: 100%; object-fit: cover; opacity: .32; filter: saturate(.75); }
.department-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #090a0e 15%, #090a0eb0 63%, #090a0e65), linear-gradient(0deg, #090a0e, transparent 60%); }
.hero-layout { width: 100%; max-width: var(--max-width); margin: auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 6vw; align-items: center; }
.neon-title { margin: 0; width: 100%; line-height: 1; animation: tube-ignite 1.65s linear both; }
.neon-title img { width: 100%; max-height: 210px; object-fit: contain; object-position: left center; }
.hero-support { text-align: right; max-width: 520px; justify-self: end; }
.hero-support h2 { font-size: clamp(27px, 3.3vw, 44px); margin: 0 0 22px; }
.hero-support p { font-size: clamp(18px, 1.5vw, 22px); margin: 0; }
.section-head { max-width: var(--max-width); margin: 65px auto 38px; padding: 0 5vw; display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.section-head h2 { margin: 0; max-width: 680px; }
.section-head p { max-width: 490px; margin: 0; font-size: 18px; }
/* Uniform card media and SVG glass tubing; no text-dependent frame heights. */
.portfolio-grid { max-width: var(--max-width); margin: auto; padding: 0 5vw 85px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 55px 36px; }
.tile { min-width: 0; scroll-margin-top: 120px; }
.media { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #14151b; box-shadow: 0 16px 32px #0009; }
.media > img { width: 100%; height: 100%; object-fit: cover; border-radius: 15px; }
.media.artwork { background: #eeebe5; }
.media.artwork > img { object-fit: contain; padding: 16px; }
.neon-frame { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); fill: none; pointer-events: none; overflow: visible; stroke-linecap: round; stroke-linejoin: round; animation: frame-ignite .85s ease-out both; }
.neon-frame path { vector-effect: non-scaling-stroke; }
.neon-frame .glass { stroke: var(--accent); stroke-width: 13.5; opacity: .8; filter: drop-shadow(0 0 3px var(--accent)) drop-shadow(0 0 11px rgba(var(--accent-rgb), .5)); transition: opacity .25s ease, filter .25s ease; }
.neon-frame .core { stroke: color-mix(in srgb, var(--accent) 40%, #fff 60%); stroke-width: 3.4; opacity: .9; filter: blur(.35px); transition: opacity .25s ease; }
.media:hover .glass, .media:focus-visible .glass { opacity: 1; filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 16px rgba(var(--accent-rgb), .7)); }
.media:hover .core, .media:focus-visible .core { opacity: 1; }
/* A single irregular warm-up sequence; all titles settle into steady light. */
@keyframes tube-ignite {
  0%, 9% { opacity: .12; filter: brightness(.45); }
  10%, 17% { opacity: .85; filter: brightness(1.15); }
  18%, 24% { opacity: .22; filter: brightness(.6); }
  25%, 38% { opacity: 1; filter: brightness(1.08); }
  39%, 44% { opacity: .58; filter: brightness(.8); }
  45%, 100% { opacity: 1; filter: brightness(1); }
}
@keyframes frame-ignite { 0% { opacity: .3; } 15% { opacity: .9; } 22% { opacity: .55; } 40%, 100% { opacity: 1; } }
.tile-copy { padding: 25px 0 0; }
.tile-copy h3 { margin: 0 0 13px; }
.tile-copy p { margin: 0 0 16px; line-height: 1.6; }
.tile-copy h3 a:hover { color: var(--accent); }
.play-affordance { position: absolute; bottom: 13px; left: 13px; display: flex; align-items: center; gap: 9px; padding: 8px 13px; background: #090a0ef0; border: 1px solid var(--accent); border-radius: 25px; color: #fff; font-size: 14px; font-weight: bold; }
.media:hover .play-affordance, .media:focus-visible .play-affordance { background: var(--accent); color: #090a0e; }
.campaign-grid .media, .design-grid .media { aspect-ratio: 4 / 3; }
.campaign-preview img { object-position: top; }
.related-work, .about-teaser { max-width: var(--max-width); margin: auto; padding: 55px 5vw 90px; border-top: 1px solid var(--line); }
/* Home retains its established identity with the recolored original gears. */
.home-hero { min-height: 690px; height: min(880px, 88vh); position: relative; isolation: isolate; display: flex; align-items: center; padding: 80px 8vw; overflow: hidden; }
.home-gears { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #090a0ef5 0%, #090a0eaa 40%, #090a0e10 77%), url('../assets/images/home-gears-vision-clean.webp') 66% center / cover no-repeat; }
.home-hero-copy { max-width: 790px; }
.identity { font-size: 24px; color: var(--accent); margin: 0 0 20px; }
.home-hero .home-slogan { margin: 0 0 30px; font-size: clamp(62px, 8vw, 118px); line-height: .81; letter-spacing: -.01em; }
.home-hero .home-slogan em { font-weight: 400; color: var(--accent); }
.home-hero-copy > p:last-of-type { font-size: 22px; max-width: 620px; }
.departments { max-width: var(--max-width); margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); padding: 35px 5vw 40px; gap: 22px; }
.departments a { position: relative; padding: 27px 24px; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: #11131b; border-radius: 8px; }
.departments a:hover { background: rgba(var(--accent-rgb), .07); }
.departments h2 { font-size: 31px; margin: 0 0 12px; color: var(--accent); }
.departments p { margin: 0; padding-right: 18px; }
.departments span { position: absolute; right: 18px; bottom: 25px; color: var(--accent); }
.department-label { color: var(--accent); font-size: 15px; font-weight: bold; margin: 0 0 9px !important; }
/* Dedicated biography and contact pages. */
.biography { max-width: 1280px; margin: auto; padding: 35px 5vw 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; align-items: start; }
.portrait { border-radius: 14px; overflow: hidden; background: #12131b; }
.portrait img { width: 100%; height: auto; filter: saturate(.6) sepia(.18); }
.biography-copy h2 { margin-top: 0; }
/* Original recommendation supplied directly by Carolyn Litton. */
.recommendation { max-width: 1080px; margin: 0 auto 90px; padding: 45px 5vw 0; border-top: 1px solid var(--line); }
.recommendation h2 { margin: 0 0 32px; font-size: clamp(24px, 3vw, 36px); letter-spacing: .025em; }
.recommendation-letter { margin: 0; color: var(--text); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.75; }
.recommendation-letter p { margin: 0 0 1.2em; color: inherit; }
.recommendation-attribution { margin: 28px 0; color: var(--text); line-height: 1.8; }
.recommendation-signature { display: block; width: 100%; height: auto; border-radius: 8px; }
.contact-layout { max-width: 1280px; margin: auto; padding: 20px 5vw 100px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; }
.contact-intro h2 { margin-top: 0; }
.contact-alternative { margin-top: 30px; }
.contact-form fieldset { padding: 0; margin: 0; border: 0; }
.contact-form legend { font-size: 24px; font-weight: bold; margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 7px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; padding: 12px 14px; margin: 0 0 20px; background: #161820; border: 1px solid #ffffff5a; border-radius: 5px; color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form fieldset:disabled { opacity: .65; }
.contact-form fieldset:disabled button { cursor: not-allowed; }
.form-status { border-left: 3px solid var(--accent); padding: 10px 16px; }
.form-status.error { border-color: #ff617f; }
.privacy-note, .contact-alternative { font-size: 15px; }
.honeypot { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
/* Accessible native dialogs shared by video and full campaign views. */
.portfolio-dialog { width: min(1100px, 94vw); max-height: 92vh; padding: 22px; border: 1px solid var(--accent); border-radius: 10px; background: #0c0d13; color: var(--text); overflow: auto; }
.portfolio-dialog::backdrop { background: #000d; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.dialog-head button { background: #1b1e28; color: #fff; border: 1px solid #ffffff6b; padding: 10px 15px; white-space: nowrap; border-radius: 5px; }
.portfolio-dialog video { display: block; width: 100%; max-height: 72vh; background: #000; }
.campaign-dialog { width: min(980px, 94vw); }
.campaign-dialog > img { width: 100%; height: auto; background: #fff; }
.dialog-open { overflow: hidden; }
.dialog-error { color: #ffd4dc; }
.project-head { max-width: 1050px; padding: 85px 5vw 45px; margin: auto; }
.project-head h1 { font-size: clamp(42px, 6vw, 80px); margin: 0 0 25px; }
.project-head p { font-size: 21px; }
.project-gallery { max-width: var(--max-width); padding: 0 5vw 70px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.project-gallery figure { margin: 0; background: #181a23; padding: 12px; border-radius: 10px; }
.project-gallery img { width: 100%; height: auto; }
.project-return { padding: 0 5vw 90px; max-width: var(--max-width); margin: auto; }
@media (max-width: 1080px) {
  .site-header { gap: 16px; }
  .brand img { width: 150px; height: 70.15px; }
  .primary-nav { gap: 16px; }
  .primary-nav a { font-size: 12px; }
  .resume { padding: 9px 12px; }
  .hero-layout { grid-template-columns: 1.3fr 1fr; gap: 30px; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; padding: 10px 5vw; min-height: 80px; }
  .primary-nav { flex-basis: 100%; flex-wrap: wrap; order: 3; margin: 0; }
  .resume { margin-left: auto; }
  .menu-ready .menu-toggle { display: block; margin-left: auto; }
  .menu-ready .resume { margin-left: 0; }
  .menu-ready .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #10121afa; border-bottom: 1px solid var(--accent); padding: 20px 5vw 30px; max-height: calc(100dvh - 82px); overflow-y: auto; }
  .menu-ready .primary-nav.open { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; }
  .primary-nav a { padding: 14px; font-size: 15px; }
  .department-hero { padding: 65px 5vw; min-height: 400px; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .neon-title { max-width: 650px; }
  .hero-support { justify-self: start; text-align: left; max-width: 620px; }
  .department-art { width: 80%; opacity: .24; }
  .section-head { flex-direction: column; align-items: start; gap: 18px; }
  .section-head p { max-width: 650px; }
  .biography, .contact-layout { gap: 40px; }
  .departments { grid-template-columns: 1fr; }
}
@media (min-width: 901px) { .menu-toggle { display: none !important; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { gap: 12px; }
  .brand img { width: 119px; height: 55.65px; }
  .menu-toggle, .resume { font-size: 12px; padding: 9px 10px; }
  .department-hero { padding: 50px 5vw; min-height: 350px; }
  .neon-title img { max-height: 120px; }
  .hero-support h2 { font-size: 28px; }
  .hero-support p { font-size: 18px; }
  .section-head { margin-top: 45px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 42px; padding-bottom: 60px; }
  .tile-copy { padding-top: 22px; }
  .neon-frame { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
  .neon-frame .glass { stroke-width: 5; }
  .home-hero { min-height: 610px; height: auto; padding: 70px 6vw; }
  .home-hero .home-slogan { font-size: clamp(50px, 13vw, 70px); }
  .home-hero-copy > p:last-of-type { font-size: 19px; }
  .identity { font-size: 21px; }
  .home-gears { background-position: 58% center; }
  .biography, .contact-layout, .project-gallery { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .portfolio-dialog { padding: 12px; }
  .dialog-head { gap: 10px; }
  .dialog-head h2 { font-size: 20px; }
  .dialog-head button { padding: 9px; font-size: 14px; }
  .footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Long client names must wrap within narrow case-study headings. */
.project-head h1 { overflow-wrap: anywhere; }
.career-list { list-style: none; margin: 0 0 35px; padding: 0; }
.career-list li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.career-list strong, .career-list span { display: block; }
.career-list span { color: var(--muted); font-size: 16px; }

.home-hero .home-neon { width: min(440px, 100%); margin: 0 0 15px; }
.home-hero .home-neon img { max-height: 140px; }

/* Physical frame tubing scales down on compact grids, without changing cards. */
@media (max-width: 900px) {
  .neon-frame { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
  .neon-frame .glass { stroke-width: 12; }
  .neon-frame .core { stroke-width: 3; }
}
@media (max-width: 480px) {
  .neon-frame { inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); }
  .neon-frame .glass { stroke-width: 10.5; }
  .neon-frame .core { stroke-width: 2.6; }
}

.gear-vision, .gear-ring { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 66% center; pointer-events: none; animation: tube-ignite 1.65s linear both; }

.home-hero .identity { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.2; margin: 0 0 30px; max-width: 100%; }
.home-hero-copy { position: relative; }

.campaign-related { max-width: var(--max-width); margin: -12px auto 35px; padding: 0 5vw; display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 15px; }

.home-slogan .headline-line { display: block; width: fit-content; }
.departments .category-link { display: block; margin-top: 22px; font-size: 14px; font-weight: bold; color: var(--accent); line-height: 1.5; }

/* Relaxed letter spacing; retain natural word spacing and measured name fit. */
.home-hero .home-slogan { word-spacing: normal; }
.home-hero .identity { white-space: nowrap; }

/* A shared right edge, without stretching the continuous headline phrase. */
.hero-type { width: var(--headline-reference-width, max-content); max-width: 100%; }
.home-hero .hero-type .identity { width: 100%; text-align: left; font-size: clamp(28px, 4.1vw, 59px); }
.home-hero .home-slogan { font-size: clamp(50px, 7vw, 104px); }
.home-slogan .headline-line:first-child { white-space: nowrap; word-spacing: normal; letter-spacing: .005em; }
@media (max-width: 600px) {
  .home-hero .home-slogan { font-size: clamp(37px, 10.5vw, 58px); }
  .home-hero .hero-type .identity { font-size: clamp(25px, 7vw, 38px); }
}

.home-slogan .headline-line { white-space: nowrap; }

/* Small optical correction to the two hero word gaps. */
.home-hero .home-slogan .headline-line { word-spacing: -.035em; }

.home-hero .home-slogan .headline-line:first-child { word-spacing: -.05em; }

/* Full-category gateways have a distinct compact row above individual examples. */
.portfolio-navigation { max-width: var(--max-width); margin: auto; padding-top: 24px; scroll-margin-top: 0; }
.portfolio-navigation > .section-head { margin: 0 auto 24px; gap: 20px; }
.portfolio-navigation .departments { padding-top: 0; padding-bottom: 20px; }
.departments > a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 154px; padding: 25px 18px; border: 0; border-radius: 18px; background: #11131b; }
.departments > a h3 { font-size: clamp(28px, 3vw, 38px); color: var(--accent); margin: 0 0 12px; }
.departments > a p { padding: 0; font-size: 14px; letter-spacing: .06em; margin: 0; }
.departments > a .neon-frame { inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); }
.departments > a:hover .glass, .departments > a:focus-visible .glass { opacity: 1; }
.departments > a:hover .core, .departments > a:focus-visible .core { opacity: 1; }
.selected-work > .section-head { margin-top: 35px; }
.personal-gateways { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; padding-top: 0; padding-bottom: 75px; }
.personal-gateways > a { min-height: 116px; }
.personal-gateways > a h3 { font-size: 28px; }
.personal-gateways .glass { opacity: .6; }
.accent-about { --accent: #b184ff; --accent-rgb: 177, 132, 255; }
.accent-contact { --accent: #ffb343; --accent-rgb: 255, 179, 67; }
@media (max-width: 900px) { .portfolio-navigation { scroll-margin-top: 0; } }
@media (max-width: 600px) { .personal-gateways { grid-template-columns: 1fr; } }

@media (max-width: 360px) { .site-header { gap: 8px; padding-left: 4vw; padding-right: 4vw; } .menu-toggle, .resume { padding: 8px; } }

.portfolio-navigation .departments, .personal-gateways { gap: 32px; }

.image-dialog { width: min(1200px, 96vw); max-height: 94dvh; }
.image-dialog > img { display: block; width: 100%; height: auto; max-height: 73dvh; object-fit: contain; }
.image-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; }
.image-controls button { padding: 10px 14px; border: 1px solid currentColor; border-radius: 6px; background: #181a23; color: #fff; cursor: pointer; }
.project-gallery figcaption { padding: 12px 4px 2px; }
.project-gallery a { display: block; cursor: zoom-in; }
.image-dialog > img { width: auto; max-width: 100%; margin: auto; }

.image-dialog > img.tall-artwork { width: 100%; max-height: none; }
.image-controls { margin-bottom: 14px; }
