/* Image-led portfolio, with the quiet hierarchy of Apple's website. */
:root {
  color-scheme: light;
  --bg-main: #ffffff;
  --bg-main-alt: #f5f5f7;
  --bg-elevated: #f5f5f7;
  --bg-elevated-hover: #ebebee;
  --text-main: #1d1d1f;
  --text-muted: #626267;
  --accent: #0066cc;
  --accent-2: #0066cc;
  --accent-soft: #e6f0fa;
  --border-glass: #dedee3;
  --border-glass-highlight: #dedee3;
  --border-subtle: #86868b;
  --nav-surface: rgba(255,255,255,.92);
  --signal: #a62c24;
  --content-max: 1080px;
  --nav-height: 56px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; font-size: 1.0625rem; line-height: 1.55; background: var(--bg-main); overflow-x: clip; }
body::before, body::after, .grain-overlay, .scanline { display: none; }
h1, h2, h3, h4, .section-title, .page-title, .hero-heading, .case-study h1, .skill-group h2, .skill-dialog h2, .cyber-heading { font-family: inherit; background: none; color: var(--text-main); -webkit-text-fill-color: currentColor; letter-spacing: -.035em; font-weight: 650; }
button, input, textarea { font-family: inherit; }
:focus-visible { outline-color: var(--accent) !important; }
.skip-link { background: var(--text-main); color: var(--bg-main); }
.container, nav { width: min(var(--content-max), calc(100% - 48px)); }
.container { padding-top: 64px; padding-bottom: 64px; }
.nav-wrapper { background: var(--nav-surface); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--border-glass); }
nav { min-height: 56px; gap: 32px; }
.nav-left { gap: 0; }
.nav-logo { display: none; }
.nav-title { font-size: 1rem; letter-spacing: -.03em; color: var(--text-main); }
.nav-title span { color: inherit; }
.nav-links { gap: 16px; }
.nav-links a, .nav-links a.active { padding: 8px; font-size: .8125rem; font-weight: 400; color: var(--text-main); background: none; border: 0; border-radius: 0; box-shadow: none; }
.nav-links a:hover { color: var(--accent); background: none; }
.nav-links a.active { text-decoration: underline; text-underline-offset: 6px; }
.nav-menu-button { border: 0; background: transparent; color: var(--text-main); font-size: .875rem; }
.btn { background: var(--accent); border: 1px solid var(--accent); border-radius: 999px; font-size: 1rem; font-weight: 400; padding: 11px 23px; min-height: 46px; color: #fff; }
.btn:hover { background: #005bb5; border-color: #005bb5; }
.btn:active, button:active { filter: brightness(.9); }
.btn.btn-outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn.btn-outline:hover { color: #fff; background: var(--accent); }
.text-link, .project-cta { color: var(--accent); text-decoration: none; font-size: 1.0625rem; }
.text-link:hover, .project-cta:hover { text-decoration: underline; }
.eyebrow, .project-kind, .project-meta, .featured-badge { color: var(--text-muted); font-weight: 500; letter-spacing: 0; }
.section-title, .page-title { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; margin-bottom: 20px; }
.section-subtitle, .page-subtitle { font-size: 1.25rem; line-height: 1.5; max-width: 65ch; color: var(--text-muted); }
.hero { padding: 64px 0 32px; }
.hero-heading { font-size: clamp(2.5rem, 5.8vw, 4.5rem); line-height: 1.04; margin: 18px 0 24px; }
.hero-heading span { color: inherit; }
.hero-subtitle { font-size: 1.25rem; }
.apple-hero { text-align: center; background: var(--bg-main-alt); padding: 70px 24px 54px; }
.apple-hero .eyebrow { font-size: 1.125rem; color: var(--text-main); margin: 0 0 18px; }
.apple-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; margin: 0; }
.apple-hero .hero-subtitle { max-width: 640px; margin: 24px auto 0; font-size: 1.375rem; line-height: 1.45; }
.apple-hero .hero-actions { justify-content: center; margin: 26px 0 0; }
.apple-hero .hero-meta { justify-content: center; color: var(--text-muted); font-size: .875rem; margin: 20px 0 0; }
.apple-hero .hero-dot { display: none; }
.work-display { width: min(940px,100%); margin: 44px auto 0; }
.display-frame { display: block; padding: 12px; border-radius: 22px; background: #242428; box-shadow: 0 20px 45px #0002; border: 1px solid #727277; }
.display-frame img { width: 100%; aspect-ratio: 16 / 8.4; object-fit: cover; object-position: top; border-radius: 12px; }
.work-display figcaption { margin-top: 20px; font-size: .9375rem; color: var(--text-muted); }
.work-display figcaption .text-link { font-size: inherit; }
.featured-work { padding: 0; }
.featured-work .container { padding-top: 76px; padding-bottom: 76px; }
.section-heading-row { align-items: center; margin-bottom: 36px; }
.section-heading-row .eyebrow { margin-bottom: 10px; }
.section-heading-row .section-title { font-size: clamp(2rem,4vw,3rem); }
.featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.featured-project { border: 0; border-radius: 28px; background: var(--bg-main-alt); flex-direction: column-reverse; }
.featured-project-body { text-align: center; padding: 38px 32px 24px; }
.featured-project h3 { font-family: inherit; font-size: 2rem; line-height: 1.12; letter-spacing: -.035em; margin: 12px 0; }
.featured-project p { font-size: 1.125rem; }
.featured-project .text-link { align-self: center; padding-top: 10px; }
.featured-project > a { padding: 8px 32px 32px; }
.featured-project img { object-fit: contain; aspect-ratio: 16/10; border-radius: 14px; background: #121216; }
.profile-strip { display: flex; gap: 48px; align-items: center; padding: 64px; border-radius: 28px; background: var(--bg-main-alt); }
.profile-strip img { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.profile-strip h2 { font-size: 2.5rem; line-height: 1.12; margin: 8px 0 16px; }
.profile-strip p { color: var(--text-muted); max-width: 60ch; }
.profile-strip .text-link { margin-top: 12px; }
.contact-invitation { border: 0; background: transparent; padding: 48px 0 64px; flex-direction: column; text-align: center; gap: 24px; }
.contact-invitation h2 { font-size: clamp(2rem,4vw,3rem); }
.contact-invitation p { font-size: 1.25rem; }
.profile-card, .card, .section-card, .highlight-card, .project-card, .contact-card, .form-card { border: 0; background: var(--bg-elevated); border-radius: 24px; box-shadow: none; }
.card::before, .highlight-card::before, .profile-card::before { display: none; }
.card { padding: 36px; }
.about-grid { gap: 24px; }
.about-grid h1.section-title { font-size: 2.75rem; }
.about-grid h2.section-title { font-size: 2rem; }
.about-grid .card > p, .exp-heading h3, .timeline-item { color: var(--text-main) !important; }
.about-grid .card > p { font-size: 1.0625rem !important; }
.about-heading { text-transform: none; font-size: 1rem; letter-spacing: 0; }
.about-list li, .about-list li:hover { color: var(--text-main); background: var(--bg-main); border: 0; transform: none; padding: 9px 14px; font-size: .9375rem; }
.exp-item .about-list li, .exp-item .about-list li:hover { color: var(--text-muted); background: transparent; font-size: 1rem; padding: 0; }
.exp-heading h3 { font-size: 1.125rem; }
.exp-period { font-family: inherit; font-size: .875rem; }
.timeline-card { background: var(--bg-elevated); }
.timeline-item::before { background: var(--bg-main); border: 0; color: var(--text-main); font-size: .875rem; }
.timeline-dot, .timeline-item:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--bg-elevated); transform: none; }
.grid.grid-3 { gap: 24px; }
.project-card { padding-bottom: 0; }
.project-card:hover { background: var(--bg-elevated); border: 0; }
.project-body { padding: 28px; }
.project-title { font-size: 1.5rem; letter-spacing: -.025em; }
.project-meta { font-size: .875rem; }
.project-tag, .chip { border: 0; color: var(--text-muted); background: var(--bg-main-alt); font-size: .8125rem; }
.project-card .project-tag { background: var(--bg-main); }
.filter-btn { color: var(--text-main); background: var(--bg-main-alt); border: 1px solid transparent; }
.filter-btn:hover { border-color: var(--accent); }
.filter-btn.active { background: var(--text-main); border-color: var(--text-main); color: var(--bg-main); }
.skill-groups { gap: 48px; }
.skill-group h2 { font-size: 1.75rem; }
.skill-button { border: 0; border-radius: 20px; font-weight: 500; }
.skill-button:hover { background: var(--bg-elevated-hover); }
.skill-dialog { background: var(--bg-main); color: var(--text-main); border: 0; border-radius: 24px; padding: 36px; }
.skill-dialog h2 { font-family: inherit; }
.dialog-close { background: var(--bg-main-alt); color: var(--text-main); border: 0; border-radius: 50%; }
.case-study h1 { font-size: clamp(2.5rem,5vw,4rem); }
.case-intro { font-size: 1.375rem; }
.case-screenshot { background: var(--bg-main-alt); border: 0; border-radius: 24px; padding: 24px 24px 0; }
.case-screenshot img { border-radius: 12px; }
.case-sections { gap: 36px; margin: 56px 0; }
.case-sections h2 { font-size: 1.5rem; }
.form-card, .contact-card { padding: 36px; }
.form-field label, label { color: var(--text-main); }
.form-field input, .form-field textarea, #chatbot-input input { background: var(--bg-main); border: 1px solid var(--border-subtle); color: var(--text-main); border-radius: 12px; }
.form-field input::placeholder, .form-field textarea::placeholder, #chatbot-input input::placeholder { color: var(--text-muted); }
.contact-card h3 { font-size: 1.5rem; }
.contact-list span, .contact-list strong { color: var(--text-main); }
.contact-badge { color: var(--text-main); background: var(--bg-main); border: 0; }
.contact-badge span { color: inherit; }
footer { background: var(--bg-main-alt); border-top: 0; margin-top: 0; }
.footer-inner { width: min(var(--content-max),calc(100% - 48px)); padding: 24px 0 90px; font-size: .8125rem; }
.footer-inner .text-link { font-size: inherit; }
#chatbot-toggle { background: var(--text-main); color: var(--bg-main); font-size: .9375rem; font-weight: 500; width: auto; height: auto; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 0; right: 24px; bottom: 24px; box-shadow: 0 5px 20px #0002; }
#chatbot-toggle:hover { transform: none; }
#chatbot-container { background: var(--bg-main); border: 1px solid var(--border-glass); border-radius: 24px; }
#chatbot-header { background: var(--bg-main-alt); }
#chatbot-header h2 { font-family: inherit; }
#chatbot-close { color: var(--text-main); }
#chatbot-messages { background: var(--bg-main); }
.chat-suggestions button, .message.bot { color: var(--text-main); background: var(--bg-main-alt); border-color: var(--border-glass); }
.message.user { color: #fff; background: var(--accent); }
.message.user a { color: #fff; }
#chatbot-input { background: var(--bg-main); border-top: 1px solid var(--border-glass); }
#chatbot-input button { background: var(--accent); color: #fff; border-radius: 12px; }
.telemetry-page .chip-row { display: none; }
.telemetry-page .hero-heading { font-size: clamp(2.5rem,5vw,4rem); }
.telemetry-page .hero .container { padding-bottom: 0; }
.telemetry-page .home-highlights .container { padding-top: 0; }
.telemetry-page .highlight-card { background: var(--bg-main-alt) !important; }
.telemetry-page .highlight-card [style] { color: var(--text-main) !important; text-shadow: none !important; }
.telemetry-page .highlight-card p { opacity: 1 !important; }
.telemetry-page .profile-card [style] { color: var(--text-main) !important; text-shadow: none !important; }
.telemetry-page .profile-card a { color: var(--accent) !important; text-decoration: underline; }
.telemetry-page .profile-card .profile-stat-label { color: var(--text-muted) !important; font-size: .875rem; }
.telemetry-page #top-ips-container > div { background: var(--bg-main) !important; border-color: var(--border-glass) !important; }
.telemetry-page #modal-ip-title { color: var(--text-main) !important; }
.telemetry-page #modal-country { color: var(--text-muted) !important; }
.telemetry-page #total-bans, .telemetry-page #unique-ips { color: var(--text-main) !important; font-family: inherit !important; }
.telemetry-page .highlight-card span[style*="background:"] { background: var(--bg-main) !important; border-color: var(--border-glass) !important; }
.telemetry-page .cyber-tag { color: var(--text-muted); font-size: .875rem !important; letter-spacing: 0; text-transform: none; }
.threat-map-container { background: #15151a; border: 0; }
.ip-modal-content { background: var(--bg-main); color: var(--text-main); border: 0; border-radius: 24px; }
.ip-detail-label { color: var(--text-muted); }
.ip-modal-close { color: var(--text-main); }
.search-box { flex-wrap: wrap; }
.search-box input { background: var(--bg-main-alt); color: var(--text-main); border-color: var(--border-subtle); min-height: 48px; min-width: 0; }
.search-box button { color: #fff; border-radius: 999px; min-height: 48px; }
.profile-page { max-width: 900px; }
.profile-intro { text-align: center; padding: 16px 0 40px; }
.profile-intro h1 { font-size: clamp(2.6rem,5vw,4.5rem); line-height: 1.08; margin: 16px 0 24px; }
.profile-lead { font-size: clamp(1.4rem,3vw,2rem); line-height: 1.25; margin-bottom: 20px; }
.profile-meta, .profile-source { color: var(--text-muted); font-size: .9375rem; overflow-wrap: anywhere; }
.profile-summary { max-width: 720px; margin: 0 auto 64px; }
.profile-summary > p { margin-bottom: 20px; font-size: 1.125rem; }
.profile-top-skills { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.profile-top-skills span { background: var(--bg-elevated); border-radius: 999px; padding: 8px 16px; font-size: .9375rem; }
.profile-section { margin-top: 64px; }
.profile-section > h2 { font-size: clamp(1.8rem,3.5vw,2.7rem); line-height: 1.15; margin-bottom: 32px; }
.profile-entry { border-top: 1px solid var(--border-glass); padding: 28px 0; }
.profile-entry h3, .credential-card h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; }
.profile-entry .profile-meta { margin: 0 0 6px; }
.profile-list { padding-left: 20px; margin: 18px 0 0; color: var(--text-muted); }
.profile-list:empty { display: none; }
.profile-list li { margin: 9px 0; }
.profile-result { margin-top: 16px; font-weight: 600; }
.credential-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.credential-card { background: var(--bg-elevated); border-radius: 24px; padding: 28px; }
.credential-card > p { margin: 14px 0; }
.credential-card .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.profile-source { margin-top: 36px; }
.linkedin-skills summary { cursor: pointer; padding: 18px 20px; min-height: 48px; background: var(--bg-elevated); border-radius: 16px; margin: 24px 0; }
.profile-skill-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 28px; padding-left: 22px; }
.profile-skill-list li { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .credential-grid, .profile-skill-list { grid-template-columns: 1fr; }
  .profile-section { margin-top: 44px; }
  .profile-summary > p { font-size: 1rem; }
  .credential-card { padding: 24px; }
}
@media (max-width: 860px) {
  nav { padding: 6px 0; gap: 8px; }
  .nav-links { gap: 0; grid-template-columns: 1fr; padding: 8px 0 16px; }
  .nav-links a { justify-content: flex-start; font-size: 1.125rem; padding: 12px 4px; }
  .nav-links a.active { background: none; }
  .grid.grid-3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-strip { gap: 28px; padding: 40px; }
}
@media (max-width: 640px) {
  .container, nav { width: calc(100% - 40px); }
  .container { padding-top: 44px; padding-bottom: 44px; }
  .apple-hero { padding: 50px 20px 36px; }
  .apple-hero h1 { font-size: clamp(2.4rem,10vw,3.5rem); }
  .apple-hero .eyebrow { font-size: 1rem; }
  .apple-hero .hero-subtitle { font-size: 1.1875rem; margin-top: 20px; }
  .apple-hero .hero-actions { flex-direction: row; gap: 10px; }
  .apple-hero .hero-actions .btn { flex: none; padding: 10px 17px; font-size: .9375rem; }
  .apple-hero .hero-meta { align-items: center; }
  .work-display { margin-top: 34px; }
  .display-frame { padding: 6px; border-radius: 12px; }
  .display-frame img { border-radius: 7px; }
  .work-display figcaption { font-size: .875rem; margin-top: 14px; }
  .featured-work .container { padding-top: 48px; padding-bottom: 24px; }
  .featured-grid, .grid.grid-3 { grid-template-columns: 1fr; }
  .featured-project-body { padding: 30px 24px 20px; }
  .featured-project h3 { font-size: 1.75rem; }
  .featured-project > a { padding: 0 24px 24px; }
  .profile-strip { flex-direction: column; text-align: center; padding: 32px 24px; gap: 20px; }
  .profile-strip img { width: 120px; height: 120px; }
  .profile-strip h2 { font-size: 2rem; }
  .contact-invitation { align-items: center; padding: 20px 0 36px; }
  .card, .form-card, .contact-card, .project-body { padding: 24px; }
  .case-screenshot { padding: 10px 10px 0; border-radius: 16px; }
  .case-screenshot figcaption { padding: 14px 8px; }
  #chatbot-toggle { right: 16px; bottom: 16px; }
  .footer-inner { width: calc(100% - 40px); }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --bg-main: #161617; --bg-main-alt: #000000; --bg-elevated: #242426; --bg-elevated-hover: #303033; --text-main: #f5f5f7; --text-muted: #a1a1a6; --accent: #85bbff; --accent-2: #85bbff; --accent-soft: #15283f; --border-glass: #454548; --border-glass-highlight: #454548; --border-subtle: #86868b; --nav-surface: rgba(22,22,23,.94); --signal: #ffb4aa; }
  .btn, .message.user, #chatbot-input button, .search-box button { background: #0066cc; border-color: #0066cc; }
  .btn.btn-outline { background: transparent; border-color: var(--accent); }
  .btn.btn-outline:hover { background: #0066cc; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-wrapper { background: var(--bg-main); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ip-modal { backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --text-muted: var(--text-main); --border-glass: var(--text-main); --border-glass-highlight: var(--text-main); --border-subtle: var(--text-main); }
  .card, .skill-button, .project-card, .featured-project { border: 1px solid var(--border-glass); }
}
