:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --paper-2: #efeee9;
  --ink: #20211d;
  --muted: #74746d;
  --line: #dddbd3;
  --orange: #fa613b;
  --lavender: #c6b6f2;
  --card: #fffefa;
  --font-body: 'DM Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171815;
  --paper-2: #22231f;
  --ink: #f5f2eb;
  --muted: #aaa99f;
  --line: #393a34;
  --card: #20211d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; transition: background-color .35s, color .35s; }
body, button, input, select, textarea { font-family: var(--font-body); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.site-shell { max-width: 1920px; margin: 0 auto; overflow: hidden; }
.section-wrap { width: min(1240px, calc(100% - 96px)); margin: 0 auto; }

.site-header { height: 86px; padding: 0 max(48px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(16px); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font: 700 23px var(--font-display); letter-spacing: -1.3px; white-space: nowrap; }
.wordmark-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fffefa; font: 600 20px var(--font-display); }
.wordmark-studio { align-self: center; margin-left: 1px; color: var(--muted); font: 600 8px var(--font-body); letter-spacing: 1px; }
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { gap: clamp(15px, 2vw, 28px); }
.site-nav a { color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .35px; transition: color .2s; }
.site-nav a:hover, .footer-bottom a:hover { color: var(--orange); }
.header-actions { gap: 12px; }
.icon-button { height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 30px; background: transparent; color: var(--ink); cursor: pointer; }
.radio-button { font-size: 10px; font-weight: 600; }
.radio-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.radio-button.is-playing .radio-dot { background: #58a981; box-shadow: 0 0 0 4px rgb(88 169 129 / 15%); }
.theme-toggle { width: 38px; padding: 0; font-size: 17px; }
.header-cta { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 30px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 11px; font-weight: 600; }
.header-cta span { color: var(--orange); font-size: 15px; }
.menu-toggle { display: none; }

.hero { min-height: 650px; padding-top: 105px; position: relative; }
.hero-copy { position: relative; z-index: 2; width: 64%; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--orange); }
.hero h1, h2 { margin: 25px 0 0; font: 500 clamp(66px, 8.3vw, 112px)/.94 var(--font-display); letter-spacing: -.085em; }
.headline-highlight { position: relative; display: inline-block; z-index: 1; }
.headline-highlight::after { content: ""; position: absolute; z-index: -1; height: 15px; background: var(--lavender); left: -4px; right: 3px; bottom: 5px; transform: rotate(-2deg); }
.headline-period { color: var(--orange); }
.hero-bottom { width: 81%; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-top: 35px; }
.hero-description { max-width: 350px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.round-link { width: 106px; height: 106px; display: flex; align-items: center; justify-content: center; position: relative; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 50%; text-decoration: none; font-size: 10px; line-height: 1.4; transition: background .25s, color .25s, transform .25s; }
.round-link b { position: absolute; right: 15px; top: 13px; color: var(--orange); font-size: 17px; font-weight: 400; }
.round-link:hover { background: var(--ink); color: var(--paper); transform: rotate(-8deg); }
.hero-art { width: 46%; height: 480px; position: absolute; top: 62px; right: -7%; overflow: hidden; background: #eeece5; }
[data-theme="dark"] .hero-art { background: #282923; }
.art-grid { position: absolute; inset: 0; opacity: .4; background-image: linear-gradient(#b9b6ac 1px, transparent 1px), linear-gradient(90deg, #b9b6ac 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(135deg, #000 0%, transparent 76%); }
.art-orb { position: absolute; border-radius: 50%; }
.art-orb-back { width: 340px; height: 340px; top: 52px; left: 100px; background: radial-gradient(circle at 36% 28%, #f9cc7e 0%, #f99a69 29%, #ee6142 63%, #bc392b 100%); box-shadow: inset -23px -27px 45px #aa332b66, 18px 32px 46px #9e51322b; }
.art-orb-front { width: 172px; height: 172px; left: 31px; top: 222px; background: radial-gradient(circle at 32% 28%, #f3e9ff 0%, #cfb8f4 45%, #9577ce 100%); box-shadow: inset -15px -15px 25px #7053a655, 4px 23px 40px #57407335; }
.art-ring { width: 440px; height: 125px; position: absolute; left: 34px; top: 225px; border: 2px solid #fff9; border-radius: 50%; transform: rotate(-27deg); }
.art-spark { position: absolute; right: 63px; top: 45px; color: var(--orange); font-size: 46px; animation: slow-spin 22s linear infinite; }
.art-label { position: absolute; right: 42px; bottom: 43px; color: var(--ink); font: 700 10px/1.5 var(--font-body); letter-spacing: 1.2px; }
.art-label span { color: var(--orange); font-size: 18px; }
.art-index { position: absolute; bottom: 15px; left: 20px; color: var(--muted); font-size: 9px; letter-spacing: 1px; }
.hero-footnote { position: absolute; bottom: 29px; left: 0; right: 0; display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.hero-footnote > span:last-child { margin-left: auto; }
.scroll-line { width: 41px; height: 1px; background: var(--orange); }

.ticker { padding: 15px 0; overflow: hidden; background: var(--orange); color: #fffaf1; }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 32px; animation: ticker 24s linear infinite; font: 600 13px var(--font-display); letter-spacing: 1px; }
.ticker-track b { font-size: 17px; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }

.services-section { padding-top: 122px; padding-bottom: 115px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.section-heading h2, .about-copy h2, .journal-inner h2, .contact-copy h2 { margin-top: 22px; font-size: clamp(48px, 6vw, 75px); line-height: .99; }
.section-heading h2 span, .journal-inner h2 span, .contact-copy h2 span { color: var(--muted); }
.section-intro { width: 290px; margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 58px; }
.service-card { min-height: 274px; display: flex; flex-direction: column; padding: 23px; background: var(--card); border: 1px solid var(--line); transition: transform .3s, border-color .3s, background-color .3s; }
.service-card:hover { transform: translateY(-5px); border-color: var(--orange); }
.service-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.service-arrow { color: var(--orange); font-size: 18px; }
.service-card h3 { margin: 34px 0 10px; font: 500 24px var(--font-display); letter-spacing: -.8px; }
.service-card p { max-width: 300px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.service-price { margin-top: 14px; color: var(--muted); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 16px; width: fit-content; margin-top: auto; padding-top: 20px; color: var(--ink); font-size: 10px; font-weight: 700; text-decoration: none; }
.text-link span { color: var(--orange); font-size: 15px; transition: transform .2s; }
.text-link:hover span { transform: translate(3px, -3px); }
.services-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.services-foot a { color: var(--ink); font-size: 10px; letter-spacing: 0; text-decoration: none; }
.services-foot a span { margin-left: 9px; color: var(--orange); }
.inline-notice { margin-top: 35px; color: var(--muted); font-size: 13px; }

.about-section { padding: 90px 0; background: var(--paper-2); }
.about-layout { min-height: 365px; display: grid; grid-template-columns: 1fr 1.25fr .65fr; align-items: center; gap: 50px; }
.about-stamp { width: 245px; height: 245px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; border: 1px solid var(--line); border-radius: 50%; transform: rotate(-10deg); font: 700 29px/.96 var(--font-display); letter-spacing: -1.5px; }
.about-stamp i { color: var(--orange); font-style: normal; }
.about-stamp b { position: absolute; right: 18px; bottom: 28px; color: var(--orange); font-size: 27px; }
.about-copy h2 { font-size: clamp(43px, 5vw, 64px); }
.about-copy h2 span { color: var(--orange); }
.about-copy > p:not(.eyebrow) { max-width: 420px; margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-copy .text-link { margin-top: 22px; }
.about-note { width: 135px; height: 175px; justify-self: end; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); transform: rotate(8deg); }
.about-note span { color: var(--muted); font-size: 8px; font-weight: 700; line-height: 1.5; letter-spacing: 1px; }
.about-note b { font: 700 14px/1.2 var(--font-display); }

.team-section { padding-top: 110px; padding-bottom: 105px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 48px; }
.team-card > p { margin: 17px 0 6px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.team-card h3 { margin: 0; font: 500 21px var(--font-display); }
.team-art { height: 190px; position: relative; overflow: hidden; display: grid; place-items: center; }
.team-art > span { position: absolute; top: 14px; left: 14px; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.team-art > b { font: 500 110px/.8 var(--font-display); letter-spacing: -12px; }
.team-art > i { position: absolute; right: 25px; bottom: 17px; font-size: 27px; font-style: normal; }
.team-art-one { background: #ead7c8; color: #8f5138; }.team-art-one > b { transform: rotate(-12deg); }
.team-art-two { background: #d8d0ee; color: #594987; }.team-art-two > b { font-size: 93px; }
.team-art-three { background: #cadbc9; color: #426b53; }.team-art-three > b { font-size: 124px; }

.work-section { padding-top: 122px; padding-bottom: 110px; }
.client-marquee { margin: 54px calc((100vw - min(1240px, 100vw - 96px)) / -2) 0; overflow: hidden; }
.client-track { width: max-content; display: flex; gap: 15px; padding: 4px 0 15px; }
.client-card { width: 220px; height: 130px; flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; border: 1px solid #24241d22; border-radius: 4px; color: #28271f; }
.client-card span { font: 700 25px var(--font-display); letter-spacing: -1px; }
.client-card small { font-size: 7px; font-weight: 700; letter-spacing: 1px; }
.client-peach { background: #f2b39d; }.client-lilac { background: #c6b6f2; }.client-yellow { background: #f1d574; }.client-green { background: #a8c6a6; }.client-blue { background: #a9c6d9; }
.marquee-caption { display: flex; justify-content: space-between; margin: 9px 0 0; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }

.journal-section { padding: 98px 0; background: var(--paper-2); }
.journal-inner { display: grid; grid-template-columns: 1fr .75fr; align-items: center; gap: 90px; }
.journal-inner h2 { font-size: clamp(46px, 5.5vw, 68px); }
.journal-card { padding: 28px 30px; background: var(--card); border: 1px solid var(--line); }
.journal-tag { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.journal-card h3 { margin: 24px 0 12px; font: 500 24px/1.2 var(--font-display); letter-spacing: -.7px; }
.journal-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.journal-card .text-link { margin-top: 13px; }

.contact-section { padding: 115px 0; background: var(--orange); color: #fffaf1; }
.contact-layout { display: grid; grid-template-columns: 1fr .8fr; gap: 80px; align-items: center; }
.contact-copy .eyebrow, .contact-copy .eyebrow-line { color: #fffaf1; }
.contact-copy .eyebrow-line { background: #fffaf1; }
.contact-copy h2 { font-size: clamp(52px, 6vw, 78px); }
.contact-copy h2 span { color: #ffd2bd; }
.contact-copy > p:not(.eyebrow) { max-width: 350px; margin: 24px 0 0; color: #fff3e9d9; font-size: 13px; line-height: 1.8; }
.contact-aside { display: flex; flex-direction: column; gap: 10px; margin-top: 54px; }
.contact-aside span { color: #fff3e9c2; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.contact-aside b { font: 500 20px/1.3 var(--font-display); }
.contact-form { display: flex; flex-direction: column; min-width: 0; padding: 28px; border: 1px solid #fff8; background: rgba(255, 250, 241, .08); }
.contact-form label { margin: 20px 0 8px; color: #fffaf1; font-size: 10px; font-weight: 600; }
.contact-form label span { color: #fff3e9c2; font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #fff8; border-radius: 0; background: transparent; color: #fffaf1; font-size: 12px; outline-offset: 3px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #fff3e9a8; }
.contact-form select { appearance: none; cursor: pointer; }
.contact-form select:invalid { color: #fff3e9a8; }
.contact-form select option { background: #fffaf1; color: #20211d; }
.contact-form textarea { resize: vertical; }
.submit-button { display: flex; align-items: center; justify-content: space-between; margin-top: 27px; padding: 16px 18px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer; font-size: 11px; font-weight: 700; transition: opacity .2s; }
.submit-button:hover { opacity: .85; }
.submit-button:disabled { opacity: .6; cursor: not-allowed; }
.submit-button span { color: var(--orange); font-size: 17px; }
.form-message { margin: 0 0 4px; padding: 12px; font-size: 12px; line-height: 1.6; }
.form-success { background: #fffaf1; color: #276441; }
.form-error { background: #fffaf1; color: #992e21; }
.form-hint { color: #fff3e9; font-size: 11px; line-height: 1.6; }

.site-footer { padding: 54px max(48px, calc((100vw - 1240px) / 2)) 22px; background: var(--ink); color: var(--paper); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; padding-bottom: 50px; }
.footer-wordmark { color: var(--paper); }
.footer-wordmark .wordmark-studio { color: #aaa99f; }
.footer-main > p { margin: 0; color: #aaa99f; font: 500 17px/1.5 var(--font-display); }
.footer-email { justify-self: end; color: var(--paper); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-decoration: none; }
.footer-email span { padding-left: 8px; color: var(--orange); font-size: 16px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 19px; border-top: 1px solid #ffffff2c; color: #aaa99f; font-size: 8px; font-weight: 600; letter-spacing: .5px; }
.footer-bottom div { display: flex; gap: 22px; }
.footer-bottom a { color: #aaa99f; text-decoration: none; transition: color .2s; }
.footer-bottom .back-top { color: var(--paper); }
.footer-bottom a { font-size: 10px; }

.js-ready .hero-copy, .js-ready .hero-art, .js-ready .hero-footnote { opacity: 0; }
.js-ready .reveal { opacity: 0; transform: translateY(22px); }
.client-marquee:hover .client-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1050px) {
  .site-header { padding: 0 30px; gap: 17px; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: 9px; }
  .section-wrap { width: calc(100% - 60px); }
  .hero-art { right: -14%; opacity: .9; }
  .contact-layout { gap: 65px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  .section-wrap { width: calc(100% - 40px); }
  .site-header { height: 70px; padding: 0 20px; gap: 12px; }
  .wordmark { font-size: 20px; }
  .wordmark-mark { width: 30px; height: 30px; }
  .wordmark-studio { font-size: 7px; }
  .menu-toggle { width: 38px; height: 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; order: 3; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span { width: 14px; height: 1px; background: var(--ink); }
  .site-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 18px 22px 24px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
  .header-actions { margin-left: auto; gap: 7px; }
  .radio-button { width: 37px; padding: 0; }
  .radio-label { display: none; }
  .header-cta { padding: 11px 12px; font-size: 10px; }
  .theme-toggle { width: 35px; height: 35px; }
  .hero { min-height: 730px; padding-top: 66px; }
  .hero-copy { width: 100%; }
  .hero h1 { font-size: clamp(40px, 8.5vw, 78px); }
  .hero-art { width: 100%; height: 310px; top: 369px; right: 0; opacity: .8; }
  .art-orb-back { width: 250px; height: 250px; top: 24px; left: calc(50% - 102px); }
  .art-orb-front { width: 125px; height: 125px; top: 145px; left: calc(50% - 153px); }
  .art-ring { width: 310px; height: 85px; top: 153px; left: calc(50% - 160px); }
  .art-spark { right: 45px; top: 20px; font-size: 32px; }
  .art-label { right: 25px; bottom: 23px; }
  .hero-bottom { width: 100%; margin-top: 22px; gap: 15px; align-items: center; }
  .hero-description { max-width: 280px; font-size: 14px; }
  .round-link { width: 82px; height: 82px; font-size: 8px; }
  .round-link b { right: 11px; top: 9px; font-size: 14px; }
  .hero-footnote { bottom: 16px; font-size: 7px; }
  .hero-footnote > span:last-child { max-width: 125px; text-align: right; }
  .ticker-track { gap: 22px; font-size: 11px; }
  .services-section, .work-section { padding-top: 83px; padding-bottom: 80px; }
  .section-heading { display: block; }
  .section-heading h2, .about-copy h2, .journal-inner h2, .contact-copy h2 { font-size: clamp(40px, 8.5vw, 64px); }
  .section-intro { width: min(100%, 350px); margin-top: 22px; font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 35px; }
  .service-card { min-height: 235px; padding: 20px; }
  .service-card p { font-size: 13px; }
  .about-copy > p:not(.eyebrow), .journal-card p, .contact-copy > p:not(.eyebrow) { font-size: 14px; }
  .text-link { font-size: 11px; }
  .service-card h3 { margin-top: 27px; }
  .services-foot { align-items: flex-start; gap: 14px; flex-direction: column; line-height: 1.7; }
  .about-section { padding: 68px 0; }
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .about-stamp { width: 174px; height: 174px; font-size: 22px; }
  .about-stamp b { right: 11px; bottom: 19px; font-size: 20px; }
  .about-note { display: none; }
  .team-section { padding-top: 78px; padding-bottom: 75px; }
  .team-grid { grid-template-columns: 1fr; gap: 23px; margin-top: 33px; }
  .team-art { height: 180px; }
  .client-marquee { margin-right: -20px; margin-left: -20px; }
  .client-card { width: 185px; height: 112px; }
  .client-card span { font-size: 21px; }
  .marquee-caption { font-size: 7px; }
  .journal-section { padding: 72px 0; }
  .journal-inner { grid-template-columns: 1fr; gap: 35px; }
  .journal-card { padding: 22px; }
  .contact-section { padding: 77px 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 43px; }
  .contact-form { padding: 20px; }
  .contact-aside { margin-top: 30px; }
  .site-footer { padding: 40px 20px 20px; }
  .footer-main { grid-template-columns: 1fr 1fr; row-gap: 30px; padding-bottom: 35px; }
  .footer-main > p { justify-self: end; font-size: 14px; }
  .footer-bottom { font-size: 10px; }
  .footer-email { grid-column: 1 / -1; justify-self: start; }
  .footer-bottom { align-items: flex-start; flex-wrap: wrap; line-height: 1.7; }
  .footer-bottom > span { width: calc(100% - 95px); }
  .footer-bottom .back-top { text-align: right; }
  .footer-bottom div { order: 3; width: 100%; flex-wrap: wrap; gap: 12px 20px; }
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
}

.auth-shell {
  width: min(500px, calc(100% - 30px));
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: clamp(22px, 5vw, 38px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.auth-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.role-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.role-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  text-decoration: none;
}

.role-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  border-radius: 2px;
}

.auth-form input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-color: transparent; }
.auth-form .submit-button { width: 100%; min-height: 48px; margin-top: 12px; font-size: 12px; }
.auth-links { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-links a, .auth-reset-url a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.auth-help { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-demo-box {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.auth-demo-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.auth-demo-box p { margin: 0; }
.auth-demo-box small { display: block; margin-top: 5px; color: var(--muted); }
.auth-reset-link { margin: 16px 0 0; padding: 12px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); }
.auth-reset-url { overflow-wrap: anywhere; margin: 12px 0 0; font-size: 13px; }

@media (max-width: 480px) {
  .auth-shell { width: min(100% - 24px, 500px); }
  .auth-card { padding: 22px 18px; }
  .role-tabs { gap: 6px; }
  .role-tab { flex: 1; padding: 10px 8px; font-size: 9px; }
}

.portal-body {
  display: flex;
  min-height: 100vh;
  background: var(--paper);
}

.portal-sidebar {
  width: 260px;
  padding: 28px 22px;
  background: var(--ink);
  color: var(--paper);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.portal-sidebar .wordmark {
  color: var(--paper);
  margin-bottom: 28px;
}

.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal-nav a {
  padding: 12px 12px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.portal-nav a.active,
.portal-nav a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--paper);
}

.portal-main {
  flex: 1;
  padding: 34px 30px 40px;
}

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.portal-header h1 {
  margin: 12px 0 0;
  font: 500 clamp(32px, 4vw, 52px)/1 var(--font-display);
  letter-spacing: -.06em;
}

.portal-user-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}

.stat-card-link {
  color: inherit;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-card-link small { color: var(--muted); font-size: 11px; }

.stat-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.stat-card strong {
  font: 500 30px/1 var(--font-display);
  letter-spacing: -.06em;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}

.panel h2 {
  margin: 0 0 16px;
  font: 500 22px var(--font-display);
  letter-spacing: -.04em;
}

.inline-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-form input,
.inline-form textarea,
.inline-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

.inline-form textarea { resize: vertical; }

.portfolio-alert,
.portal-alert {
  display: block;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
}

.portal-alert.alert-success { background: #eaf8ee; color: #1b5c3d; }
.portal-alert.alert-error { background: #ffe8e4; color: #8d2a2a; }

.list-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.list-row strong {
  display: block;
  font-size: 14px;
}

.list-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.list-row span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--muted);
}

.list-row-link {
  color: inherit;
  text-decoration: none;
  width: 100%;
}

.list-row-link:hover {
  border-color: var(--ink);
}

.list-row-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.order-row {
  align-items: center;
}

.order-status-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-status-form select {
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

.task-inline-form-wrap {
  flex: 1;
  min-width: 260px;
}

.task-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-inline-form select,
.task-inline-form input,
.mini-form input,
.mini-form textarea,
.mini-form select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
}

.mini-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-card {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}

.detail-card h2 {
  margin: 8px 0 12px;
  font: 500 26px/1.1 var(--font-display);
  letter-spacing: -.05em;
}

.detail-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.task-badge {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.member-row strong {
  display: block;
  margin-bottom: 4px;
}

.member-row small {
  color: var(--muted);
  font-size: 11px;
}

.member-row span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.approval-box {
  margin-top: 20px;
}

.approval-item {
  margin-top: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.approval-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.approval-head span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.approval-item small {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.approval-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 13px;
}

.message-thread {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.compact-list .list-row { padding: 12px; }

.chart-box {
  display: flex;
  align-items: end;
  gap: 10px;
  min-height: 230px;
  padding-top: 16px;
}

.bar-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 48px;
}

.bar {
  width: 100%;
  min-height: 14px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, rgba(91,131,255,0.9), rgba(19,24,39,0.9));
}

.bar-col span {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.project-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.project-pill.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.panel-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-note {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.productivity-panel {
  margin-bottom: 18px;
}

.table-scroll {
  overflow-x: auto;
}

.productivity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.productivity-table th,
.productivity-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.productivity-table th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.productivity-table td:first-child strong,
.productivity-table td:first-child small {
  display: block;
}

.productivity-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.overdue-count {
  color: #b33b2e;
  font-weight: 700;
}

.activity-heatmap {
  display: flex;
  align-items: center;
  gap: 5px;
}

.heat-cell {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  vertical-align: middle;
}

.heat-level-0 { background: var(--paper); }
.heat-level-1 { background: #f7d9c7; border-color: #f7d9c7; }
.heat-level-2 { background: #f0ad84; border-color: #f0ad84; }
.heat-level-3 { background: #e98550; border-color: #e98550; }
.heat-level-4 { background: #bd5425; border-color: #bd5425; }

.heatmap-legend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.settings-panel {
  margin-bottom: 18px;
}

.settings-form label,
.service-admin-form label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.settings-form input,
.settings-form textarea,
.service-admin-form input,
.service-admin-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-transform: none;
  letter-spacing: normal;
}

.settings-form textarea,
.service-admin-form textarea {
  resize: vertical;
}

.service-admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-admin-form {
  display: grid;
  grid-template-columns: 1fr 1.4fr minmax(110px, .5fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-admin-form .switch-row {
  text-transform: none;
  letter-spacing: normal;
}

.service-admin-form .switch-row input {
  width: auto;
  margin: 0;
}

.brand-logo {
  display: inline-block;
  width: auto;
  max-width: 120px;
  max-height: 36px;
  object-fit: contain;
}

.inline-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.notification-item.unread {
  border-left: 3px solid var(--orange);
  background: rgba(255, 134, 62, 0.04);
}

.notification-body {
  flex: 1;
}

.notification-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.notification-body p {
  margin: 0 0 6px;
  line-height: 1.6;
  font-size: 13px;
}

.notification-body small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.message-meta strong {
  font-size: 13px;
}

.message-meta span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.message-item p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 13px;
}

.empty-state {
  color: var(--muted);
  margin: 0;
}

.permission-table-wrap {
  overflow-x: auto;
  margin-bottom: 18px;
}

.permission-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.permission-table th,
.permission-table td {
  padding: 10px 8px;
  border: 1px solid var(--line);
  text-align: left;
}

.permission-table th {
  background: var(--paper);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 10px;
}

.permission-form {
  margin-top: 8px;
}

.switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .7px;
}

.project-showcase-section { padding-top: 38px; }
.project-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.project-video-card { min-width: 0; border: 1px solid var(--line); background: var(--card); }
.project-video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #171717; }
.project-video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-sound-toggle {
  position: absolute;
  right: 12px;
  bottom: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  background: rgba(20, 20, 20, .78);
  color: #fff;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.video-sound-toggle:hover,
.video-sound-toggle:focus-visible { background: #111; }
.project-video-caption { display: flex; justify-content: space-between; gap: 18px; padding: 18px; }
.project-video-caption > div > span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.project-video-caption h3 { margin: 6px 0 0; font: 500 21px var(--font-display); }
.project-video-caption p { max-width: 48%; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.journal-post-list { display: grid; gap: 12px; }
.journal-post-list .journal-card { width: 100%; }
.journal-author { display: block; margin: 0 0 14px; color: var(--muted); font-size: 11px; }
.blog-article { max-width: 850px; padding-top: 100px; padding-bottom: 100px; }
.blog-article h1 { margin: 28px 0 14px; font: 500 clamp(42px, 8vw, 84px)/.98 var(--font-display); letter-spacing: -.07em; }
.blog-article-meta { color: var(--muted); font-size: 12px; }
.blog-article-excerpt { margin: 42px 0 26px; font: 500 22px/1.55 var(--font-display); }
.blog-article-body { margin-bottom: 40px; font-size: 17px; line-height: 1.9; white-space: pre-wrap; }
.blog-assignment { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.blog-assignment + .blog-assignment { margin-top: 12px; }
.blog-assignment-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blog-assignment-heading strong { display: block; font-size: 14px; }
.blog-assignment-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; text-transform: capitalize; }
.blog-assignment > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.blog-start-form { margin-top: 16px; }
.blog-post-list { display: grid; gap: 12px; }
.blog-post-editor { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.blog-edit-details { margin-top: 10px; }
.blog-edit-details summary { color: var(--ink); font-size: 12px; cursor: pointer; }
.blog-edit-details form { margin-top: 12px; }
.blog-insights-table td { vertical-align: top; }
.blog-insights-table td strong { display: block; min-width: 150px; }
.blog-insights-table .blog-edit-details summary { margin-top: 8px; }
.blog-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.blog-row-actions .text-link { padding: 0; border: 0; background: transparent; cursor: pointer; }
.portfolio-admin-form { margin: 20px 0; }
.portfolio-admin-form input,
.portfolio-admin-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 13px; }
.blog-article .text-link { display: inline-block; }
.service-detail-hero { padding-top: 100px; padding-bottom: 74px; }
.service-detail-hero h1 { max-width: 900px; margin: 28px 0 15px; font: 500 clamp(48px, 9vw, 96px)/.98 var(--font-display); letter-spacing: -.07em; }
.service-detail-description { max-width: 650px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.service-enquiry-link { display: flex; max-width: 330px; margin-top: 28px; color: var(--paper); text-decoration: none; }
.service-video-section { padding-top: 25px; padding-bottom: 100px; }
.service-video-section .project-video-grid { margin-top: 36px; }
.testimonial-section { padding-top: 100px; padding-bottom: 100px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 42px; }
.testimonial-card { padding: 24px; border: 1px solid var(--line); background: var(--card); }
.testimonial-stars { color: var(--orange); font-size: 16px; letter-spacing: 2px; }
.testimonial-stars span { color: var(--line); }
.testimonial-card blockquote { margin: 22px 0; font: 500 17px/1.6 var(--font-display); }
.testimonial-card > p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.team-chat-panel { max-width: 1040px; }
.chat-project-select { display: grid; grid-template-columns: auto minmax(220px, 1fr); align-items: center; gap: 14px; max-width: 650px; }
.chat-project-select label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; }
.chat-project-select select,
.team-chat-form select,
.team-chat-form textarea,
.client-review-form select,
.client-review-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; }
.chat-room-note { margin: 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.team-chat-log { display: flex; flex-direction: column; gap: 10px; min-height: 300px; max-height: min(58vh, 620px); overflow: auto; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.team-chat-message { max-width: min(86%, 700px); padding: 12px 14px; border: 1px solid var(--line); background: var(--card); }
.team-chat-message.is-own-message { align-self: flex-end; border-color: #f2a16e; }
.team-chat-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.team-chat-meta strong { font-size: 12px; }
.team-chat-meta time { color: var(--muted); font-size: 10px; }
.team-chat-message > p { margin: 8px 0 0; overflow-wrap: anywhere; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.team-chat-status { min-height: 1.4em; margin: 8px 0; color: #8d2a2a; font-size: 12px; }
.team-chat-form { display: grid; grid-template-columns: minmax(0, 1fr) 180px; align-items: end; gap: 12px; }
.team-chat-form textarea { grid-column: 1 / -1; }
.team-chat-form .submit-button { grid-column: 2; }
.team-chat-form .submit-button { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.client-updates-panel { margin-bottom: 22px; }
.client-review-form { margin-top: 18px; }
.client-review-form label { color: var(--muted); font-size: 11px; font-weight: 700; }
.review-rating-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.review-rating-group legend { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.review-rating-options { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.review-rating-choice { position: relative; cursor: pointer; }
.review-rating-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.review-rating-choice span { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 88px; padding: 10px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); font-size: 16px; }
.review-rating-choice small { font-size: 9px; }
.review-rating-choice input:checked + span { border-color: var(--accent); background: var(--paper-2); }
.review-rating-choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.invoice-client-link { display: block; margin-top: 6px; font-size: 11px; }
.order-actions { display: grid; gap: 10px; min-width: min(100%, 280px); }
.order-team-details summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.order-team-options { display: grid; gap: 7px; max-height: 180px; overflow: auto; margin: 10px 0 0; padding: 10px; border: 1px solid var(--line); }
.order-team-options legend { padding: 0 4px; color: var(--muted); font-size: 10px; }
.order-team-options label { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.order-team-options input[type="checkbox"] { width: auto; min-height: 0; margin: 0; padding: 0; accent-color: var(--ink); }
.order-team-form .empty-state { margin: 0; font-size: 10px; }
.order-invoice-details summary { cursor: pointer; color: var(--accent); font-size: 12px; }
.order-invoice-details form { margin-top: 12px; }
.invoice-body { display: block; min-height: 100vh; }
.invoice-page { width: min(100% - 32px, 960px); margin: 32px auto; }
.invoice-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.invoice-sheet { padding: clamp(22px, 5vw, 56px); border: 1px solid var(--line); background: var(--card); }
.invoice-heading { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.invoice-heading h1 { margin: 8px 0 0; font: 500 clamp(32px, 5vw, 52px)/1 var(--font-display); }
.invoice-number { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.invoice-number strong { font-size: 18px; }
.invoice-number span { padding: 5px 9px; border: 1px solid var(--line); font-size: 11px; text-transform: uppercase; }
.invoice-parties { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0; }
.invoice-parties h2 { margin: 0 0 12px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.invoice-parties p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.invoice-dates p { display: flex; flex-direction: column; gap: 4px; }
.invoice-dates p strong { color: var(--ink); }
.invoice-items { width: 100%; border-collapse: collapse; }
.invoice-items th, .invoice-items td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; }
.invoice-items th { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.invoice-items th:not(:first-child), .invoice-items td:not(:first-child) { text-align: right; white-space: nowrap; }
.invoice-totals { width: min(100%, 360px); margin: 22px 0 0 auto; }
.invoice-totals p { display: flex; justify-content: space-between; gap: 20px; margin: 0; padding: 9px 0; font-size: 13px; }
.invoice-total { margin-top: 6px !important; border-top: 1px solid var(--line); font-size: 16px !important; }
.invoice-admin-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.invoice-void-button { background: #82442f; }
.invoice-disclaimer { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }

@media print {
  body.invoice-body { background: #fff; color: #111; }
  .invoice-page { width: 100%; margin: 0; }
  .invoice-toolbar, .invoice-admin-actions, .invoice-body .portal-alert { display: none !important; }
  .invoice-sheet { padding: 0; border: 0; background: #fff; }
}
.client-review-list { display: grid; gap: 14px; margin-top: 18px; }
.client-review-admin-card { padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.client-review-admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.client-review-admin-head strong,
.client-review-admin-head small { display: block; }
.client-review-admin-head small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.client-review-admin-head > span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.client-review-admin-card > p { margin: 18px 0 8px; line-height: 1.7; white-space: pre-wrap; }
.review-reject-button { background: #82442f; }
.portfolio-admin-form select { min-height: 120px; padding: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }

@media (max-width: 900px) {
  .portal-body { display: block; }
  .portal-sidebar { width: 100%; }
  .portal-grid, .stats-grid { grid-template-columns: 1fr 1fr; }
  .service-admin-form { grid-template-columns: 1fr 1fr; }
  .project-video-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .portal-main { padding: 20px 16px 30px; }
  .portal-header { display: block; }
  .portal-user-box { margin-top: 16px; justify-content: space-between; }
  .portal-grid, .stats-grid { grid-template-columns: 1fr; }
  .service-admin-form { grid-template-columns: 1fr; }
  .role-tabs { flex-wrap: wrap; }
  .project-video-grid { gap: 14px; margin-top: 30px; }
  .project-video-caption { display: block; padding: 14px; }
  .project-video-caption p { max-width: none; margin-top: 9px; }
  .blog-article { padding-top: 56px; padding-bottom: 60px; }
  .service-detail-hero { padding-top: 58px; padding-bottom: 48px; }
  .service-video-section, .testimonial-section { padding-top: 60px; padding-bottom: 60px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .chat-project-select, .team-chat-form { grid-template-columns: 1fr; }
  .team-chat-form .submit-button { width: 100%; grid-column: 1; }
  .client-review-admin-head { display: block; }
  .invoice-parties { grid-template-columns: 1fr 1fr; }
  .invoice-dates { grid-column: 1 / -1; }
  .order-row { align-items: stretch; flex-direction: column; }
  .order-actions { width: 100%; }
}

@media (max-width: 380px) {
  .site-header { padding-right: 12px; padding-left: 12px; gap: 7px; }
  .wordmark { gap: 5px; font-size: 18px; }
  .wordmark-mark { width: 28px; height: 28px; }
  .header-actions { gap: 4px; }
  .header-cta { display: none; }
  .eyebrow { gap: 7px; font-size: 8px; letter-spacing: 1px; }
  .hero-footnote { gap: 9px; font-size: 7px; letter-spacing: .6px; }
  .hero-footnote > span:last-child { max-width: 112px; }
  .service-card { padding: 18px; }
}
