/* Midnight Studio — tokens and foundations */
:root {
  color-scheme: dark;
  --background: #080D18;
  --surface: #101827;
  --surface-elevated: #172235;
  --primary-text: #F5F7FC;
  --secondary-text: #B5C0D3;
  --accent: #6285FF;
  --accent-hover: #84A0FF;
  --border: #29364D;
  --max-width: 1280px;
  --space-section: clamp(56px, 6vw, 88px);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
body { margin: 0; color: var(--primary-text); background: var(--background); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 5px; }
::selection { color: var(--background); background: var(--accent-hover); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(64px, 5.4vw, 80px); line-height: 1.07; font-weight: 650; letter-spacing: -.055em; }
h2 { font-size: clamp(44px, 3.6vw, 56px); line-height: 1.15; font-weight: 600; letter-spacing: -.045em; }
h3 { font-size: clamp(24px, 2vw, 29px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; }
p { max-width: 68ch; }
.container { width: min(var(--max-width), calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .075em; color: var(--accent-hover); line-height: 1.6; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hover); margin-right: 9px; vertical-align: middle; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 20px; border-radius: 6px; background: var(--accent-hover); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Personal brand and navigation */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--background); border-bottom: 1px solid var(--border); }
html:not(.js) .site-header { position: static; }
.navigation { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; gap: 16px; align-items: center; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; }
.brand-name { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.04em; }
.brand-role { color: var(--secondary-text); font-size: 16px; line-height: 1.5; margin-top: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links>a:not(.button) { padding-block: 12px; font-size: 16px; transition: color .18s; }
.nav-links>a:hover, .footer-nav>a:hover { color: var(--accent-hover); }
.menu-toggle { display: none; color: var(--primary-text); background: var(--surface-elevated); border: 1px solid var(--border); padding: 10px 15px; border-radius: 6px; align-items: center; gap: 10px; min-height: 46px; cursor: pointer; }
.menu-toggle[hidden] { display: none; }
.menu-lines { position: relative; width: 16px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-lines::before { content: ""; position: absolute; width: 16px; top: 5px; left: 0; border-top: 1px solid currentColor; }
.menu-toggle[aria-expanded="true"] .menu-lines { border-color: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before, .menu-toggle[aria-expanded="true"] .menu-lines::after { content: ""; position: absolute; top: 5px; left: 0; width: 16px; border-top: 1px solid currentColor; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: rotate(-45deg); }

/* Actions */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 23px; min-height: 54px; border-radius: 6px; border: 1px solid transparent; font-size: 16px; font-weight: 650; line-height: 1.4; transition: background .2s, border-color .2s, transform .2s; }
.button span { font-size: 20px; }
.button-primary { background: var(--accent); color: var(--background); }
.button-primary:hover { background: var(--accent-hover); color: var(--background); transform: translateY(-2px); }
.button-secondary { background: transparent; border-color: #43526C; }
.button-secondary:hover { background: var(--surface-elevated); border-color: var(--accent); transform: translateY(-2px); }
.button-small { min-height: 46px; padding: 11px 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero: typography and a connected systems composition */
.hero { display: grid; grid-template-columns: 1.32fr 1fr; align-items: center; gap: 36px; padding-block: clamp(48px, 5vw, 76px) 48px; }
.hero-copy { min-width: 0; }
.hero-intro { color: var(--secondary-text); font-size: 16px; margin: 14px 0 23px; }
h1 span { color: var(--accent-hover); }
.hero-description { color: var(--secondary-text); font-size: clamp(20px, 1.6vw, 22px); line-height: 1.65; margin: 25px 0 30px; max-width: 52ch; }
.hero-availability { color: var(--secondary-text); font-size: 14px; margin-top: 24px; }
.hero-availability>span { color: var(--accent); margin-inline: 8px; }
.system-visual { min-width: 0; position: relative; padding: 24px 22px; background: radial-gradient(ellipse at 50% 48%, #253B6B44, transparent 70%), linear-gradient(145deg, #142037, #0C1423 65%); border: 1px solid var(--border); border-radius: 16px 48px 16px 16px; box-shadow: 0 24px 70px #00000025; }
.visual-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 500; }
.visual-detail { color: var(--secondary-text); }
.system-diagram { position: relative; width: 100%; aspect-ratio: 460 / 340; margin-block: 15px 20px; }
.system-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.system-node { position: absolute; width: 38%; padding: 14px 16px; background: var(--surface-elevated); border: 1px solid #3B4C6B; border-radius: 8px; box-shadow: 0 10px 25px #00000020; }
.node-web { top: 5%; left: 0; }
.node-commerce { top: 5%; right: 0; }
.node-mobile { bottom: 4%; left: 0; }
.node-desktop { bottom: 4%; right: 0; }
.node-overline { color: var(--secondary-text); display: block; font-size: 13px; }
.system-node strong { font-size: 17px; font-weight: 600; display: block; margin-top: 2px; }
.node-rule { display: block; width: 32px; height: 2px; background: var(--accent); margin-top: 12px; }
.system-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center; width: 124px; height: 124px; border: 1px solid #5975B5; background: #15213B; border-radius: 50%; text-align: center; box-shadow: 0 0 0 8px #6285FF08; }
.system-core>span:last-child { font-size: 13px; line-height: 1.4; color: var(--secondary-text); }
.system-visual figcaption { font-size: 14px; color: var(--secondary-text); border-top: 1px solid var(--border); padding-top: 17px; }
.visual-disclaimer { display: block; font-size: 13px; margin-top: 5px; }
.positioning-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 25px; border-block: 1px solid var(--border); }
.positioning-strip p { font-size: 16px; line-height: 1.5; color: var(--secondary-text); }
.positioning-strip strong { color: var(--primary-text); font-weight: 500; }
.positioning-strip>span { font-size: 15px; padding-left: 22px; border-left: 1px solid var(--border); }

/* Services: four deliberate offerings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 36px; }
.section-heading h2 { margin-top: 14px; }
.section-heading>p { color: var(--secondary-text); max-width: 390px; font-size: 18px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.service-card { padding: 30px 32px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.service-card:hover { transform: translateY(-3px); border-color: #526A9C; }
.service-featured { background: linear-gradient(125deg, #182642, var(--surface) 80%); border-color: #3D527F; }
.service-collaboration { border-left: 3px solid #506CBC; }
.service-top { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--secondary-text); margin-bottom: 28px; }
.item-number { color: var(--accent-hover); font-variant-numeric: tabular-nums; font-weight: 500; }
.service-card h3 { margin-bottom: 16px; }
.service-card>p { color: var(--secondary-text); margin-bottom: 24px; font-size: 18px; max-width: 52ch; }
.service-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--secondary-text); margin-top: auto; }
.service-line { width: 35px; height: 2px; background: var(--accent); flex-shrink: 0; }

/* Experience: editorial panels, no fabricated screenshots */
.work-section { background: #0B1220; border-block: 1px solid var(--border); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.work-panel { padding: 32px; display: flex; flex-direction: column; }
.work-panel:nth-child(odd) { border-right: 1px solid var(--border); }
.work-panel:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.work-panel:nth-child(2), .work-panel:nth-child(3) { background: #111B2D; }
.work-label { display: flex; justify-content: space-between; gap: 16px; color: var(--secondary-text); font-size: 14px; margin-bottom: 22px; }
.work-panel h3 { margin-bottom: 15px; }
.work-panel>p { color: var(--secondary-text); font-size: 18px; margin-bottom: 25px; }
.work-detail { font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); color: var(--secondary-text); }
.work-detail>span:last-child { color: #CAD5EB; }
.confidentiality-note { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; padding: 28px 0; }
.confidentiality-note h3 { font-size: 24px; }
.confidentiality-note p { color: var(--secondary-text); font-size: 17px; }
.public-demos { display: flex; justify-content: space-between; align-items: center; gap: 24px; border: 1px solid var(--border); border-radius: 8px; padding: 21px 25px; }
.public-demos p:last-child { color: var(--secondary-text); margin-top: 6px; font-size: 16px; }
.demo-status { color: var(--secondary-text); border: 1px solid #42516B; border-radius: 30px; padding: 7px 15px; font-size: 14px; flex-shrink: 0; }

/* About: personal identity and clear AI positioning */
.about-section { display: grid; grid-template-columns: .9fr 1.4fr; gap: clamp(35px, 6vw, 95px); align-items: center; }
.about-identity { background: linear-gradient(145deg, var(--surface-elevated), #101827 75%); border: 1px solid var(--border); padding: 30px; border-radius: 12px; }
.identity-name { margin-top: 30px; font-size: clamp(36px, 3.8vw, 52px); font-weight: 650; line-height: 1.3; letter-spacing: -.03em; }
.identity-role { font-size: 17px; color: var(--secondary-text); margin-top: 8px; }
.identity-details { margin: 28px 0 0; border-top: 1px solid var(--border); padding-top: 20px; font-size: 15px; }
.identity-details>div { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; }
.identity-details dt { color: var(--secondary-text); }
.identity-details dd { margin: 0; text-align: right; }
.about-copy>p { color: var(--secondary-text); margin-top: 19px; }
.about-copy .lead-copy { color: var(--primary-text); font-size: 21px; }
.workflow-note { border-left: 2px solid var(--accent); margin-top: 27px; padding: 4px 0 4px 22px; }
.workflow-note strong { display: block; font-size: 20px; font-weight: 500; line-height: 1.6; margin-top: 10px; }

/* Process: connected two-column timeline */
.process-section { border-top: 1px solid var(--border); }
.process-timeline { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; }
.process-timeline li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 0 0 32px; position: relative; }
.process-timeline li::before { content: ""; position: absolute; left: 26px; top: 52px; bottom: 0; border-left: 1px solid #425577; }
.process-timeline li:last-child::before { display: none; }
.process-timeline li>div { display: grid; grid-template-columns: .65fr 1fr; gap: 30px; align-items: start; }
.step-marker { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border: 1px solid #435B8D; border-radius: 50%; color: var(--accent-hover); background: var(--surface); font-size: 17px; position: relative; z-index: 1; }
.process-timeline h3 { margin-top: 9px; margin-bottom: 13px; }
.process-timeline p { color: var(--secondary-text); font-size: 17px; }
.process-timeline li:last-child { padding-bottom: 0; }

/* Contact and footer */
#contact { padding-top: 20px; }
.contact-panel { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; padding: clamp(28px, 4vw, 52px); border: 1px solid #3C5078; border-radius: 14px; background: radial-gradient(ellipse at 100% 0%, #213C7144, transparent 60%), var(--surface); }
.contact-main h2 { margin-top: 17px; }
.contact-main>p:not(.eyebrow) { color: var(--secondary-text); margin-block: 24px; font-size: 18px; }
.contact-details { align-self: center; min-width: 0; padding-left: 35px; border-left: 1px solid #3C5078; }
.contact-label { display: block; color: var(--secondary-text); font-size: 15px; margin-bottom: 16px; }
.contact-email { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; font-size: clamp(28px, 2.35vw, 36px); font-weight: 550; letter-spacing: -.035em; line-height: 1.35; overflow-wrap: anywhere; padding-bottom: 21px; border-bottom: 1px solid #455C89; }
.contact-email>span { color: var(--accent-hover); }
.contact-email:hover, .collaboration-link:hover { color: var(--accent-hover); }
.collaboration-link { display: inline-block; min-height: 44px; font-size: 16px; color: #D3DDF5; margin-top: 24px; padding-block: 5px; }
.collaboration-link span { color: var(--accent-hover); margin-left: 8px; }
.contact-location { font-size: 16px; color: var(--secondary-text); margin-top: 12px; }
.contact-note { font-size: 14px; color: var(--secondary-text); margin-top: 20px; }
.footer { border-top: 1px solid var(--border); padding-block: 30px; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-name { font-size: 27px; font-weight: 650; letter-spacing: -.04em; }
.footer-name span { color: var(--accent-hover); }
.footer>div>p { font-size: 16px; color: var(--secondary-text); margin-top: 3px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.footer-nav a { padding-block: 10px; }
.copyright { width: 100%; color: var(--secondary-text); font-size: 14px; }

/* Responsive composition */
@media (max-width: 1150px) {
  .nav-links { gap: 18px; }
  .brand-role { font-size: 16px; }
  .brand { gap: 12px; }
  .hero { grid-template-columns: 1.25fr 1fr; gap: 24px; }
  h1 { font-size: 64px; }
  .system-visual { padding: 22px 16px; }
  .visual-heading { flex-direction: column; gap: 2px; }
  .system-node { padding: 11px; }
  .system-core { width: 106px; height: 106px; }
  .system-node strong { font-size: 15px; }
  .node-rule { margin-top: 7px; }
  .contact-panel { grid-template-columns: 1fr; gap: 35px; }
  .contact-details { border-left: 0; border-top: 1px solid #3C5078; padding: 27px 0 0; }
  .contact-email { font-size: clamp(28px, 4vw, 40px); }
}
@media (max-width: 960px) {
  html { scroll-padding-top: 124px; }
  .navigation { min-height: 100px; flex-wrap: wrap; padding-block: 18px; gap: 18px; }
  .site-header:has(.nav-links.is-open) { max-height: 100dvh; overflow-y: auto; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .nav-links { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; gap: 10px 24px; }
  .js .nav-links { display: none; }
  .js .nav-links.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  h1 { font-size: clamp(54px, 8.5vw, 76px); }
  .hero-description { max-width: 58ch; }
  .system-visual { width: min(560px, 100%); padding: 24px; justify-self: center; }
  .visual-heading { flex-direction: row; }
  .system-node { padding: 15px 17px; }
  .system-node strong { font-size: 18px; }
  .system-core { width: 124px; height: 124px; }
  .positioning-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .positioning-strip>span { padding-left: 0; border-left: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-heading>p { max-width: 60ch; }
  .about-section { grid-template-columns: .9fr 1.2fr; gap: 30px; align-items: start; }
  .about-copy h2 { font-size: 38px; }
  .about-identity { padding: 24px; }
  .identity-details>div { flex-direction: column; gap: 0; }
  .identity-details dd { text-align: left; }
  .confidentiality-note { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 40px); }
  html { scroll-padding-top: 128px; }
  body { font-size: 17px; }
  h1 { font-size: clamp(43px, 9.4vw, 62px); }
  h2, .about-copy h2 { font-size: clamp(34px, 7.5vw, 44px); }
  h3 { font-size: 25px; }
  .brand-name { font-size: 30px; }
  .brand-role { font-size: 14px; max-width: 245px; }
  .brand { gap: 10px; }
  .menu-toggle { padding-inline: 12px; font-size: 15px; }
  .navigation { min-height: 100px; gap: 14px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 5px; }
  .nav-links>a:not(.button) { padding: 10px 5px; }
  .nav-links .button { margin-top: 7px; }
  .hero { padding-block: 34px 32px; gap: 32px; }
  .hero-intro { font-size: 15px; margin-block: 12px 20px; }
  .hero-description { font-size: 20px; margin-block: 21px 25px; }
  .hero-availability { font-size: 14px; }
  .hero-availability>span { display: none; }
  .hero-availability { max-width: 28ch; }
  .system-visual { padding: 20px 16px; border-top-right-radius: 30px; }
  .visual-heading { flex-direction: column; }
  .system-node { padding: 10px 11px; }
  .system-node strong { font-size: 15px; }
  .system-core { width: 104px; height: 104px; }
  .system-core>span:last-child { font-size: 13px; }
  .node-rule { margin-top: 8px; }
  .system-diagram { margin-block: 14px 18px; min-height: 232px; }
  .positioning-strip { gap: 18px; padding-block: 22px; }
  .positioning-strip>span { font-size: 14px; }
  .positioning-strip p { font-size: 15px; }
  .section-heading { margin-bottom: 28px; gap: 18px; }
  .section-heading>p { font-size: 17px; }
  .service-grid, .work-grid, .about-section, .process-timeline { grid-template-columns: 1fr; }
  .service-card { padding: 25px; }
  .service-top { margin-bottom: 22px; }
  .service-card>p, .work-panel>p { font-size: 17px; }
  .service-card h3 br { display: none; }
  .service-bottom { gap: 12px; }
  .work-panel { padding: 26px; }
  .work-panel:nth-child(odd) { border-right: 0; }
  .work-panel:not(:last-child) { border-bottom: 1px solid var(--border); }
  .work-panel:nth-child(3) { background: transparent; }
  .work-panel:nth-child(even) { background: #111B2D; }
  .public-demos { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; }
  .about-section { gap: 32px; }
  .about-identity { padding: 26px; }
  .identity-details>div { flex-direction: row; gap: 16px; }
  .identity-details dd { text-align: right; }
  .process-timeline { gap: 0; }
  .process-timeline li { grid-template-columns: 48px 1fr; gap: 20px; padding-bottom: 28px; }
  .step-marker { width: 48px; height: 48px; }
  .process-timeline li::before { left: 23px; top: 48px; }
  .process-timeline li>div { display: block; }
  .process-timeline h3 { margin-top: 8px; }
  .contact-panel { padding: 26px; gap: 28px; }
  .contact-main>p:not(.eyebrow) { font-size: 17px; }
  .contact-email { font-size: clamp(28px, 6.3vw, 36px); letter-spacing: -.04em; }
  .contact-email>span { display: none; }
  .footer { align-items: flex-start; gap: 20px; }
  .footer-nav { gap: 12px 20px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand-name { font-size: 28px; }
  .brand-role { max-width: 185px; font-size: 14px; }
  .menu-toggle { gap: 7px; padding-inline: 10px; }
  .menu-label { font-size: 14px; }
  .actions { flex-direction: column; align-items: stretch; }
  .button { padding-inline: 16px; }
  .system-visual { padding-inline: 12px; }
  .system-node { width: 41%; padding: 9px; }
  .system-node strong { font-size: 14px; }
  .system-core { width: 94px; height: 94px; }
  .positioning-strip { grid-template-columns: 1fr; gap: 12px; }
  .positioning-strip p { padding-bottom: 5px; }
  .service-card, .work-panel { padding: 22px; }
  .service-type { max-width: 19ch; text-align: right; }
  .contact-panel { padding: 22px; }
  .contact-email { font-size: 28px; }
  .identity-details>div { flex-direction: column; gap: 0; }
  .identity-details dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover, .service-card:hover { transform: none; }
}

/* Name-led identity and verified contact options */
.core-name { font-size: 23px; font-weight: 650; line-height: 1.05; letter-spacing: -.04em; margin-bottom: 8px; }
.contact-icon { width: 21px; height: 21px; flex-shrink: 0; }
.professional-link, .contact-phone { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding-block: 10px; color: var(--secondary-text); font-size: 16px; }
.professional-link { margin-top: 16px; }
.professional-link:hover, .contact-phone:hover { color: var(--accent-hover); }
.professional-link span, .contact-phone span { color: var(--accent-hover); }
.contact-actions { gap: 12px; }
.contact-phone { margin-top: 14px; flex-wrap: wrap; }
.contact-availability { color: var(--secondary-text); font-size: 16px; margin-top: 12px; }
@media (max-width: 680px) {
  .contact-actions { flex-direction: column; align-items: stretch; }
  .contact-actions .button { width: 100%; }
  .core-name { font-size: 20px; }
}
