
/* Layout: dark hero with centred portrait between copy and tagline list, then light bands for work, skills, about; navy CTA band closes the page. */
:root {
  --hero-bg: #122039; /* approximates the hero gradient behind the header button */
  --navy-900: #121a2f;
  --navy-800: #15213f;
  --blue: #3b82f6;
  --blue-soft: #5aa2ff;
  --violet: #8b6cf6;
  --teal: #2dd4bf;
  --ink: #0f1b3d;
  --muted: #6c7ca0;
  --line: #e2e8f4;
  --paper: #f7f9fd;
  --tint: #eef3fb;
  --white: #ffffff;
  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
html { scroll-behavior: smooth; }
.ss-block, .ss-block *, .ss-block *::before, .ss-block *::after { box-sizing: border-box; }
.ss-block { font-family: var(--font-body); color: var(--ink); font-size: 16px; line-height: 1.6; }
.ss-block :is(h1, h2, h3, p, dl, dd) { margin: 0; }
.ss-block :is(h1, h2, h3) { font-family: var(--font-display); text-wrap: balance; line-height: 1.2; }
.ss-block a { color: inherit; text-decoration: none; }
.ss-block button { font: inherit; cursor: pointer; }
.ss-block :focus-visible { outline: 2px solid var(--blue-soft); outline-offset: 3px; border-radius: 6px; }
.ss-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.ss-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}
.ss-on-light .ss-eyebrow { color: #16b3a0; }

/* buttons */
.ss-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;  border-width: 0px !important; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ss-btn:hover { transform: translateY(-1px); }
.ss-btn { white-space: nowrap;}
.ss-btn-primary { background: linear-gradient(90deg, #4f86fd 0%, #6d77fc 45%, #3fdcc8 100%); color: #fff; box-shadow: 0 8px 24px rgba(79,134,253,.32); }
.ss-btn-primary:hover { box-shadow: 0 10px 28px rgba(63,220,200,.35); }
.ss-btn-ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.28); }
.ss-btn-ghost:hover { background: rgba(255,255,255,.1); }
.ss-btn-outline {
  color: #fff; padding: 9px 20px; font-size: 14px; border: 1.5px solid transparent !important;
  background: linear-gradient(var(--hero-bg), var(--hero-bg)) padding-box, linear-gradient(90deg, #6d77fc, #3fdcc8) border-box;
}
.ss-btn-outline:hover { background: linear-gradient(rgba(21,30,53,.6), rgba(21,30,53,.6)) padding-box, linear-gradient(90deg, #6d77fc, #3fdcc8) border-box; }
.ss-icon { width: 18px; height: 18px; flex: none; }

/* hero */
.ss-hero {
  position: relative; overflow: hidden; color: #fff; padding-top: 82px;
  background: radial-gradient(
    ellipse at 50% 70%,
    #1C3658 0%,
    #142440 45%,
    #111A2E 100%
  );
}
.ss-header { position: relative; z-index: 20; background: var(--hero-bg); color: #fff; }
.ss-header .ss-brand, .ss-header .ss-nav-links a { color: #fff; }
body.home .ss-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.ss-nav { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; position: relative; z-index: 5; }
.ss-brand { display: flex; align-items: center; gap: 12px; }
.ss-brand svg { width: 30px; height: 34px; }
.ss-brand-name { display: block; font-family: var(--font-display); font-weight: 500; letter-spacing: .18em; font-size: 16px; line-height: 1.2; }
.ss-brand-role { display: block; font-size: 10px; letter-spacing: .2em; opacity: .7; line-height: 1.3; }
.ss-nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.ss-nav-links a:not(.ss-btn):hover { color: var(--teal); }
.ss-menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.ss-hero-top { text-align: center; padding-top: 36px; }
.ss-hero h1 { font-weight: 300; font-size: clamp(34px, 5.4vw, 52px); line-height: 1.12; margin-top: 10px; }
.ss-hero h1 strong { font-weight: 500; display: block; }
.ss-grad { background: linear-gradient(90deg, #4da3ff, #a68bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* network lines on the hero edges echo the closing band */
.ss-hero svg.ss-net { position: absolute; top: 0; height: 100%; width: min(24vw, 340px); opacity: .22; pointer-events: none; z-index: 0; }
.ss-hero svg.ss-edge-right { right: 0; }
.ss-hero svg.ss-edge-left { left: 0; transform: scaleX(-1); }
/* network lines draw in, hold, then draw out in a slow loop; nodes pulse softly */
.ss-hero svg.ss-net .ss-seg { stroke-dasharray: 1; animation: net-draw 10s ease-in-out infinite both; }
.ss-hero svg.ss-net .ss-node { transform-box: fill-box; transform-origin: center; animation: node-pulse 5s ease-in-out infinite both; }
@keyframes net-draw { 0% { stroke-dashoffset: 1; } 38% { stroke-dashoffset: 0; } 68% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes node-pulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
.ss-hero .ss-wrap { position: relative; z-index: 1; }
/* neon line: gradient matches the buttons, the glow comes from the line only */
.ss-tagline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; background: linear-gradient(180deg, #4f86fd 0%, #6d77fc 45%, #3fdcc8 100%); box-shadow: 0 0 5px rgba(109,119,252,.9), 0 0 12px rgba(63,220,200,.55); }
@media (max-width: 1000px) { .ss-hero svg.ss-net { width: 34vw; opacity: .16; } }
/* copy, portrait and tagline share one grid row; the portrait spans all columns and sits behind the text */
.ss-hero-grid { display: grid; grid-template-columns: 268px minmax(0, 1fr) 190px; align-items: center; margin-top: -8px; }
.ss-hero-art { grid-column: 1 / -1; grid-row: 1; align-self: end; display: flex; justify-content: center; position: relative; z-index: 0; }
.ss-hero-stage { position: relative; width: min(100%, 940px); }
.ss-hero-stage img { display: block; width: 100%; height: auto; }
.ss-hero-stage img.ss-float { position: absolute; pointer-events: none; will-change: transform; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate; }
.ss-float-win { animation-name: float-a; animation-duration: 8s; }
.ss-float-code { animation-name: float-b; animation-duration: 6.4s; animation-delay: -2.5s; }
.ss-float-list { animation-name: float-c; animation-duration: 7.2s; animation-delay: -4.5s; }
@keyframes float-a { from { transform: translate3d(0, -7px, 0) rotate(-.2deg); } to { transform: translate3d(0, 8px, 0) rotate(.25deg); } }
@keyframes float-b { from { transform: translate3d(-3px, 6px, 0) rotate(.3deg); } to { transform: translate3d(3px, -8px, 0) rotate(-.3deg); } }
@keyframes float-c { from { transform: translate3d(3px, -6px, 0) rotate(-.25deg); } to { transform: translate3d(-3px, 8px, 0) rotate(.25deg); } }
.ss-hero-copy { grid-column: 1; grid-row: 1; position: relative; z-index: 1; padding-block: 24px; align-self: center; }
.ss-hero-copy p { font-size: 15px; line-height: 1.7; color: #e3e9fb; }
.ss-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ss-tagline { grid-column: 3; grid-row: 1; position: relative; z-index: 1; justify-self: end; padding: 10px 0 10px 22px; display: grid; gap: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }

/* sections */
.ss-section { padding-block: 56px; }
.ss-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.ss-section-head h2 { font-size: clamp(32px, 4vw, 40px); font-weight: 500; margin-top: 4px; }
.ss-section-head p { color: var(--muted); max-width: 440px; margin-top: 8px; font-size: 15px; }
.ss-link { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: #1d4fd8; font-weight: 500; font-size: 14px; background: none; border: 0; padding: 0; }
.ss-link:hover .ss-icon { transform: translateX(3px); }
.ss-link .ss-icon { width: 16px; height: 16px; transition: transform .15s ease; }

.ss-card h3 a:hover { color: #1d4fd8; }
.ss-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.ss-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 22px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 6px 20px rgba(26,46,110,.05); transition: box-shadow .2s ease, transform .2s ease; }
.ss-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26,46,110,.12); }
.ss-card-media { display: block; }
.ss-card img { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 14px; }
.ss-card .ss-tag { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-inline: 4px; }
.ss-card h3 { font-size: 24px; font-weight: 500; padding-inline: 4px; }
.ss-card p { color: var(--muted); font-size: 14.5px; padding-inline: 4px; flex: 1; margin-bottom: 10px; }
.ss-card .ss-link { padding-inline: 4px; }

.ss-skills { background: var(--tint); }
.ss-skills-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 48px; align-items: start; }
.ss-skills-intro h2 { font-size: clamp(30px, 3.6vw, 38px); font-weight: 500; margin-top: 4px; line-height: 1.2; }
.ss-skills-intro p { color: var(--muted); margin-top: 16px; font-size: 15px; max-width: 340px; }
.ss-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ss-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 14px; min-width: 0; }
.ss-panel.ss-wide { grid-column: 1 / -1; }
.ss-panel h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.ss-panel h3 span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #e6edff; color: #2f5de0; }
.ss-panel h3 svg { width: 12px; height: 12px; }
.ss-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 4px; list-style: none; margin: 0; padding: 0; }
.ss-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; font-size: 11px; color: var(--muted); text-align: center; line-height: 1.25; border-radius: 8px; transition: background .15s ease; }
.ss-chip:hover { background: var(--tint); }
.ss-badge { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.ss-badge-brand { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand, #2f5de0); }
.ss-badge-brand svg { width: 19px; height: 19px; }
.ss-badge-line { background: #e8efff; color: #2f5de0; }
.ss-badge-line svg { width: 18px; height: 18px; }

.ss-about-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 40px; align-items: center; }
.ss-photo { position: relative; padding: 0 0 18px 18px; max-width: 330px; }
.ss-photo::before { content: ""; position: absolute; left: 0; top: 14px; width: 52%; height: 78%; background: #d9e1fb; border-radius: 14px; }
.ss-photo::after { content: ""; position: absolute; right: -14px; bottom: 0; width: 36%; height: 60%; background: #cdeee9; border-radius: 14px; }
.ss-photo img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: 12px; }
.ss-about h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 500; line-height: 1.2; margin-top: 4px; }
.ss-about-text p { color: var(--muted); margin-top: 12px; max-width: 520px; font-size: 15px; }
.ss-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-top: 26px; }
.ss-feature { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.ss-feature .ss-ring { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #dfe8fd; color: #2f5de0; display: grid; place-items: center; }
.ss-feature .ss-ring svg { width: 19px; height: 19px; }
.ss-feature b { display: block; font-size: 13px; font-weight: 600; }
.ss-feature span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* CTA */
.ss-cta { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--navy-900), #0c1c52); color: #fff; padding-block: 44px; }
.ss-cta svg.ss-net { position: absolute; right: 0; top: 0; height: 100%; width: 46%; opacity: .55; pointer-events: none; }
.ss-cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.ss-cta h2 { font-size: clamp(28px, 3.4vw, 34px); font-weight: 500; margin-top: 4px; }
.ss-cta p { margin-top: 8px; max-width: 460px; color: #d9e2fb; font-size: 15px; }
.ss-cta-side { display: grid; gap: 14px; justify-items: center; }
.ss-mail { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; background: none; border: 0; padding: 0; }
.ss-mail .ss-addr { user-select: all; }
.ss-mail:hover .ss-addr { text-decoration: underline; }
.ss-mail .ss-icon { width: 16px; height: 16px; }
.ss-copied { color: var(--teal); font-size: 12px; }

.ss-footer { background: var(--paper); padding-block: 24px; }
.ss-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ss-foot .ss-brand { color: var(--ink); }
.ss-foot small { color: var(--muted); font-size: 11px; }
.ss-social { display: flex; gap: 14px; align-items: center; }
.ss-social a { color: var(--ink); display: grid; place-items: center; width: 28px; height: 28px; }
.ss-social a:hover { color: #2f5de0; }
.ss-social svg { width: 20px; height: 20px; }

/* contact dialog (native <dialog>: focus trap, Esc and backdrop come from the browser) */
dialog.ss-dialog { background: var(--white); color: var(--ink); border: 0; border-radius: 16px; width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); overflow-y: auto; }
dialog.ss-dialog::backdrop { background: rgba(5,10,30,.72); }
html.ss-modal-open { overflow: hidden; }
.ss-dialog h2 { font-size: 28px; font-weight: 500; margin-top: 2px; padding-right: 40px; }
.ss-dialog .ss-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); display: grid; place-items: center; padding: 0; }
.ss-dialog .ss-x svg { width: 16px; height: 16px; }
.ss-dialog p { color: var(--muted); margin-top: 12px; font-size: 15px; }
.ss-dialog-form { margin-top: 18px; }
.ss-dialog-form form { display: grid; gap: 14px; }
.ss-dialog-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.ss-dialog-form :is(input, textarea, select):not([type="checkbox"], [type="radio"], [type="submit"]) { font: inherit; padding: 10px 12px; border: 1px solid #cfd8ec; border-radius: 10px; background: var(--white); color: var(--ink); width: 100%; }
.ss-dialog-form textarea { min-height: 110px; resize: vertical; }
.ss-dialog-form :is(button[type="submit"], input[type="submit"]) { justify-self: start; border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; font-weight: 500; color: #fff; cursor: pointer; background: linear-gradient(90deg, #4f86fd 0%, #6d77fc 45%, #3fdcc8 100%); }
.ss-dialog .ss-note { font-size: 12px; margin-top: 16px; }
.ss-dialog .ss-note .ss-link { display: inline; }
.ss-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; }
.ss-facts div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.ss-facts dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ss-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 500; }

/* inner pages */
.ss-page-head { background: radial-gradient(ellipse at 50% 120%, #1C3658 0%, #142440 50%, #111A2E 100%); color: #fff; padding-block: 56px 44px; }
.ss-page-head h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 500; margin-top: 6px; }
.ss-page-head .ss-eyebrow { margin: 0; }
.ss-prose { padding-block: 40px 56px; color: var(--ink); font-family: var(--font-body); }
.ss-prose :is(h2, h3, h4) { font-family: var(--font-display); font-weight: 500; }
.ss-prose a { color: #1d4fd8; }
.ss-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.ss-project-meta { padding-top: 40px; }
.ss-prose.ss-flush { padding-top: 0; }
.ss-backlink { display: inline-flex; margin-top: 8px; }

/* responsive */
@media (max-width: 900px) {
  .ss-menu-btn { display: inline-flex; }
  .ss-nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--navy-800); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 14px; }
  .ss-nav-links.ss-open { display: flex; }
  .ss-nav-links a { padding: 8px 6px; width: 100%; }
  .ss-nav-links .ss-btn { width: auto; margin-top: 6px; }
  .ss-skills-grid, .ss-about-grid { grid-template-columns: 1fr; gap: 28px; }
  .ss-panels { grid-template-columns: 1fr; }
  .ss-cta-grid { grid-template-columns: 1fr; }
  .ss-cta-side { justify-items: start; }
  .ss-cta svg.ss-net { width: 80%; opacity: .3; }
}
@media (max-width: 1000px) {
  .ss-hero-grid { grid-template-columns: 1fr; margin-top: 0; }
  .ss-hero-art, .ss-hero-copy, .ss-tagline { grid-column: 1; grid-row: auto; }
  .ss-hero-art { order: -1; margin-top: 8px; }
  .ss-hero-copy { max-width: 440px; padding-bottom: 12px; }
  .ss-tagline { justify-self: start; margin-bottom: 36px; }
}
/* eyebrow labels: keep size and colour regardless of the paragraph rule of the section they sit in */
.ss-section p.ss-eyebrow, .ss-cta p.ss-eyebrow, .ss-hero p.ss-eyebrow, .ss-dialog p.ss-eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 600; max-width: none; margin-top: 0; color: var(--teal); }
.ss-on-light p.ss-eyebrow, .ss-dialog p.ss-eyebrow { color: #16b3a0; }
.ss-cta p.ss-eyebrow { color: var(--teal); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ss-hero svg.ss-net .ss-seg, .ss-hero svg.ss-net .ss-node, .ss-hero-stage img.ss-float { animation: none !important; }
  .ss-hero svg.ss-net .ss-seg { stroke-dasharray: none; }
  * { transition: none !important; }
}

/* block editor preview helpers */
.editor-styles-wrapper .ss-block { margin: 0; }
.ss-btn-outline.ss-btn-lg { padding: 11px 20px; font-size: 14px; }
.ss-hero-actions .ss-btn { padding: 11px 20px; font-size: 14px; }

.ss-notice { padding: 16px; border: 1px dashed var(--muted); border-radius: 10px; color: var(--muted); font-size: 14px; }
