/* Optional Apple-inspired presentation. The original theme remains the default. */
.site-footer .apple-style-toggle {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.site-footer .apple-style-toggle:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
}

:root[data-style="apple"] {
  --bg: #080809;
  --surface: #19191c;
  --surface-raised: #232326;
  --text: #f5f5f7;
  --muted: #acacb4;
  --accent: #80b8ff;
  --green: #9bccad;
  --line: #ffffff21;
  --button-ink: #101114;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: var(--font-body);
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --apple-chrome: color-mix(in srgb, var(--bg) 82%, transparent);
  --apple-shadow: 0 12px 40px #00000020, 0 1px 2px #00000012;
  --apple-panel-shadow: 0 28px 80px #00000040, 0 1px 0 #ffffff08 inset;
  --hud-rule: var(--line);
  --hud-etch: transparent;
  --hud-grid: transparent;
  --hud-wash: transparent;
  --hud-glow: transparent;
  font-optical-sizing: auto;
}
:root[data-style="apple"][data-theme="light"] {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --text: #1d1d1f;
  --muted: #636369;
  --accent: #0066cc;
  --green: #34764d;
  --line: #1d1d1f20;
  --button-ink: #ffffff;
  --apple-shadow: 0 12px 40px #16162007, 0 1px 2px #16162005;
  --apple-panel-shadow: 0 24px 70px #16162013, 0 1px 0 #ffffffcc inset;
}
:root[data-style="apple"][data-palette="copper"] {
  --accent: #e8b398;
}
:root[data-style="apple"][data-palette="copper"][data-theme="light"] {
  --accent: #a34f29;
}
:root[data-style="apple"][data-palette="forest"] {
  --accent: #a2d5b1;
}
:root[data-style="apple"][data-palette="forest"][data-theme="light"] {
  --accent: #286c47;
}
:root[data-style="apple"] body {
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.012em;
  background: var(--bg);
}
:root[data-style="apple"] :is(h1, h2, h3) {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.035em;
}
:root[data-style="apple"] :is(.hero h1, .page-title, .section-title, .contact-banner h2) em {
  font-family: inherit;
  font-size: 1em;
  font-weight: inherit;
  font-style: normal;
  line-height: inherit;
  letter-spacing: inherit;
  color: var(--accent);
}
:root[data-style="apple"] :is(.eyebrow, .section-label, .project-small-label, .hero-intro, .availability) {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.055em;
}
:root[data-style="apple"] :is(.section-number, .service-number, .profile-index) {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
}
:root[data-style="apple"] .section-space {
  padding-block: clamp(4rem, 7.5vw, 7rem);
}
:root[data-style="apple"] .section-title {
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  line-height: 1.1;
}
:root[data-style="apple"] .section-copy {
  line-height: 1.7;
}

/* Floating functional layers have weight; content cards stay solid. */
:root[data-style="apple"] .site-header {
  background: var(--apple-chrome);
  border-bottom-color: transparent;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
:root[data-style="apple"] .brand-mark {
  box-shadow: none;
  background: var(--surface);
  border-color: var(--line);
}
:root[data-style="apple"] .brand:hover .brand-mark {
  transform: none;
  box-shadow: none;
}
:root[data-style="apple"] .brand small {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}
:root[data-style="apple"] .nav-links a {
  font-weight: 500;
  letter-spacing: -0.01em;
}
:root[data-style="apple"] .nav-links a.active {
  color: var(--accent);
}
:root[data-style="apple"] :is(.theme-toggle, .palette-toggle) {
  border-color: transparent;
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
:root[data-style="apple"] :is(.theme-toggle, .palette-toggle):hover {
  background: color-mix(in srgb, var(--text) 9%, transparent);
  box-shadow: none;
}
:root[data-style="apple"] .nav-contact {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: transparent;
}
:root[data-style="apple"] :is(.palette-panel, .topic-listbox) {
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-radius: 1.25rem;
  box-shadow: var(--apple-panel-shadow);
}
:root[data-style="apple"] .palette-panel {
  transform-origin: top right;
}
:root[data-style="apple"] :is(.palette-option, .topic-option) {
  border-radius: 0.75rem;
}

/* Scale is driven by an interruptible press spring in apple-style.js. */
:root[data-style="apple"] :is(.button, .admin-button, .footer-tool, .hud-filter, .certificate-filter) {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
:root[data-style="apple"] .button {
  min-height: 3rem;
  gap: 0.9rem;
  padding: 0.875rem 1.375rem;
  border-radius: 999px;
  font-size: 0.875rem;
}
:root[data-style="apple"] :is(.button, .footer-social-link):hover {
  transform: none;
}
:root[data-style="apple"] .button-primary {
  color: var(--button-ink);
  background: var(--accent);
  border-color: transparent;
}
:root[data-style="apple"] .button-primary:hover {
  background: color-mix(in srgb, var(--accent) 90%, var(--text));
}
:root[data-style="apple"] .button-secondary {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background: transparent;
}
:root[data-style="apple"] .button-secondary:hover {
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
}
:root[data-style="apple"] :is(button, .button, .footer-tool, .footer-social-link):active {
  filter: brightness(0.92);
}
:root[data-style="apple"] :is(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
:root[data-style="apple"] .text-link {
  color: var(--accent);
}
:root[data-style="apple"] .tag {
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  border-color: transparent;
  background: color-mix(in srgb, var(--text) 5%, var(--surface));
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  line-height: 1.5;
}

/* Larger, quieter typography makes the work the first thing to read. */
:root[data-style="apple"] .hero {
  column-gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: 6rem;
}
:root[data-style="apple"] .hero h1 {
  font-size: clamp(3rem, 5.7vw, 5rem);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.05em;
}
:root[data-style="apple"] .hero-intro {
  margin-bottom: 1.5rem;
}
:root[data-style="apple"] .availability {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--green) 9%, var(--bg));
  font-size: 0.625rem;
  letter-spacing: 0.035em;
}
:root[data-style="apple"] .hero-avatar {
  box-shadow: none;
  padding: 0;
  border-color: var(--line);
}
:root[data-style="apple"] .hero-description {
  max-width: 29rem;
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 1.75rem;
}
:root[data-style="apple"] .hero-location {
  font-size: 0.6875rem;
  line-height: 1.6;
}
:root[data-style="apple"] .hero-time {
  font-family: var(--font-body);
  font-size: 0.6875rem;
}
:root[data-style="apple"] .hero-art.hero-brand-art.hero-hud {
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: var(--apple-panel-shadow);
}
:root[data-style="apple"] .hud-art-header {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  background: var(--surface);
}
:root[data-style="apple"] .hud-art-header i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: none;
}
:root[data-style="apple"] .hud-scene {
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface) 70%);
}
:root[data-style="apple"] :is(.hud-guide-lines, .hud-rotation, .hud-core-pulse, .hud-packets) {
  display: none;
}
:root[data-style="apple"] .hud-traces {
  opacity: 0.16;
  stroke-width: 1.5;
}
:root[data-style="apple"] .hud-core-disc {
  fill: var(--surface-raised);
  stroke: var(--line);
}
:root[data-style="apple"] .hero-hud .hud-core .brand-symbol {
  filter: none;
}
:root[data-style="apple"] .hero-hud :is(.hud-core-label, .hud-core-caption) {
  font-family: var(--font-body);
  letter-spacing: 0.015em;
}
:root[data-style="apple"] .hud-capability {
  border-color: var(--line);
  border-radius: 1rem;
  background: var(--surface-raised);
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] .hud-capability-top > span:last-child {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.025em;
}
:root[data-style="apple"] .hud-art-footer {
  border: 0;
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--text) 4%, var(--surface));
  padding: 1rem 1.125rem;
}
:root[data-style="apple"] :is(.hud-footer-kicker, .hud-art-footer strong) {
  font-family: var(--font-body);
  letter-spacing: 0.015em;
}
:root[data-style="apple"] .hud-art-footer strong {
  font-size: 0.8125rem;
}
:root[data-style="apple"] .expertise-strip {
  border-color: transparent;
  background: var(--surface);
}
:root[data-style="apple"] .expertise-strip i {
  opacity: 0.45;
}

/* The same content, without the drafting ornament. */
:root[data-style="apple"] :is(.page-header, .contact-banner, .service-card, .capability-card, .degree-content, .career-date, .project-visual, .case-system-figure, .contact-form-panel, .site-footer, .hud-code, .admin-auth-art)::before,
:root[data-style="apple"] :is(.page-header, .project-visual, .case-system-figure, .career-date, .admin-auth-art)::after,
:root[data-style="apple"] :is(.page-header .eyebrow, .profile-section-intro .section-label, .project-section-heading > .eyebrow)::before {
  content: none;
}
:root[data-style="apple"] :is(.banner-asterisk, .portrait-drafting, .portrait-backplate, .portrait-edition, .portrait-frame-ticks, .portrait-frame-corner, .graduation-registration, .graduation-frame-corner) {
  display: none;
}
:root[data-style="apple"] .page-header {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}
:root[data-style="apple"] .page-title {
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
}
:root[data-style="apple"] :is(.featured-work, .service-card, .capability-grid, .education-degree, .contact-banner, .certificate-card, .admin-auth-shell, .admin-state-card) {
  border-color: var(--line);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] :is(.service-card, .capability-card, .career-project, .admin-auth-art) {
  background: var(--surface);
}
:root[data-style="apple"] .service-card {
  padding: clamp(1.375rem, 2.6vw, 2rem);
}
:root[data-style="apple"] .service-card p {
  font-size: 0.875rem;
  line-height: 1.7;
}
:root[data-style="apple"] .service-card .text-link {
  font-size: 0.75rem;
}
:root[data-style="apple"] :is(.service-icon-frame, .journey-icon, .career-project-icon) {
  border: 0;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  box-shadow: none;
}
:root[data-style="apple"] :is(.service-card:hover, .service-card:hover .service-icon) {
  transform: none;
}
:root[data-style="apple"] .service-card:hover {
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] .capability-grid {
  overflow: hidden;
}
:root[data-style="apple"] .capability-card {
  border-radius: 0;
}
:root[data-style="apple"] .about-portrait.portrait-card {
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--apple-shadow);
  overflow: hidden;
}
:root[data-style="apple"] .portrait-card .portrait-composition {
  padding: 0;
}
:root[data-style="apple"] .portrait-card .portrait-visual-frame {
  padding: 0;
  border: 0;
  border-radius: 1.75rem 1.75rem 0 0;
  box-shadow: none;
}
:root[data-style="apple"] .portrait-card .portrait-photo {
  border-radius: inherit;
}
:root[data-style="apple"] .portrait-card .portrait-identity {
  width: 100%;
  margin: 0;
  padding: 1.25rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
:root[data-style="apple"] .portrait-card .portrait-identity::before {
  content: none;
}
:root[data-style="apple"] .portrait-card :is(.portrait-identity-top, .portrait-identity-bottom) {
  font-family: var(--font-body);
  letter-spacing: 0.015em;
}
:root[data-style="apple"] .graduation-portrait {
  background: var(--surface);
}
:root[data-style="apple"] .graduation-photograph {
  border-radius: 1.25rem;
}
:root[data-style="apple"] .contact-banner {
  text-align: center;
  padding-block: clamp(3rem, 6vw, 5rem);
}
:root[data-style="apple"] .contact-banner > div {
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
}
:root[data-style="apple"] .contact-banner > div > p {
  font-size: 0.9375rem;
}

/* The Stack explorer uses neutral materials and a dedicated blue selection accent. */
:root[data-style="apple"] .technology-hud {
  --bg: #17171a;
  --surface: #202023;
  --surface-raised: #29292d;
  --accent: #80b8ff;
  --hud-faint: #1b1b1e;
  --hud-edge: var(--line);
  --hud-card-shadow: 0 5px 12px #00000018, 0 1px 0 #ffffff06 inset;
}
:root[data-style="apple"][data-theme="light"] .technology-hud {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --accent: #0066cc;
  --hud-faint: #f7f8fa;
  --hud-card-shadow: 0 5px 12px #1d1d1f06, 0 1px 2px #1d1d1f04;
}
:root[data-style="apple"] .technology-hud .hud-console {
  border-radius: 1.75rem;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] .technology-hud :is(.hud-map-column, .hud-console-bar) {
  background: var(--surface);
}
:root[data-style="apple"] .technology-hud .hud-console-label {
  font-size: 0.875rem;
  font-weight: 600;
}
:root[data-style="apple"] .technology-hud .hud-filters {
  gap: 0.375rem;
  background: var(--surface);
}
:root[data-style="apple"] .technology-hud :is(.hud-filter, .hud-tool) {
  border-radius: 0.75rem;
}
:root[data-style="apple"] .technology-hud .hud-filter {
  min-height: 2.75rem;
  padding-inline: 1rem;
  font-size: 0.75rem;
}
:root[data-style="apple"] .technology-hud .hud-filter[aria-pressed="true"] {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-color: transparent;
}
:root[data-style="apple"] .technology-hud .hud-catalog {
  background: var(--hud-faint);
}
:root[data-style="apple"] .technology-hud .hud-catalog-eyebrow {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.055em;
}
:root[data-style="apple"] .technology-hud .hud-catalog-intro h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
}
:root[data-style="apple"] .technology-hud .hud-catalog-heading > p {
  font-size: 0.75rem;
  line-height: 1.6;
}
:root[data-style="apple"] .technology-hud .hud-tool {
  color: var(--text);
  border-color: var(--line);
  background: var(--surface);
}
:root[data-style="apple"] .technology-hud .hud-tool.hud-carousel-card {
  height: 9rem;
  min-height: 9rem;
  padding: 1.125rem;
  border-radius: 1.125rem;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--hud-card-shadow);
  transition: transform 160ms ease;
}
:root[data-style="apple"] .technology-hud .hud-carousel-card .hud-tool-symbol {
  flex-basis: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
}
:root[data-style="apple"] .technology-hud .hud-carousel-card .hud-tool-symbol svg {
  width: 1.625rem;
  height: 1.625rem;
}
:root[data-style="apple"] .technology-hud .hud-carousel-card .hud-tool-label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
:root[data-style="apple"] .technology-hud .hud-card-layer {
  font-family: var(--font-body);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0;
}
:root[data-style="apple"] .technology-hud .hud-tool.hud-carousel-card:is(:hover, :focus-visible) {
  transform: none;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 25%, var(--line));
  background: var(--surface-raised);
  box-shadow: var(--hud-card-shadow);
}
:root[data-style="apple"] .technology-hud .hud-tool.is-selected,
:root[data-style="apple"] .technology-hud .hud-tool.hud-carousel-card.is-selected {
  color: var(--text);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--hud-card-shadow);
}
:root[data-style="apple"] .technology-hud .hud-carousel-card.is-selected::after {
  top: 1.125rem;
  right: 1.125rem;
  bottom: auto;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--accent);
}
:root[data-style="apple"] .technology-hud .hud-tool.hud-carousel-card:focus-visible {
  transition: none;
}
:root[data-style="apple"] .technology-hud .hud-carousel[data-lanes="1"] .hud-carousel-card {
  height: 10.625rem;
  padding: 1.375rem;
}
:root[data-style="apple"] .technology-hud .hud-carousel[data-lanes="1"] .hud-tool-symbol {
  flex-basis: 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.125rem;
}
:root[data-style="apple"] .technology-hud .hud-carousel-controls {
  padding-top: 1rem;
}
:root[data-style="apple"] .technology-hud .hud-motion-status {
  font-family: var(--font-body);
  font-size: 0.625rem;
  letter-spacing: 0;
}
:root[data-style="apple"] .technology-hud .hud-carousel-actions button {
  min-width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
}
:root[data-style="apple"] .technology-hud .hud-carousel-actions .hud-carousel-pause {
  gap: 0.375rem;
  padding-inline: 0.875rem;
  font-size: 0.6875rem;
  font-weight: 500;
}
:root[data-style="apple"] .technology-hud .hud-carousel-actions button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
}
:root[data-style="apple"] .technology-hud :is(.hud-map-grid, .hud-map-scan, .hud-orbit-outer, .hud-orbit-inner, .hud-route-trace, .hud-fiducial, .hud-core-pins) {
  display: none;
}
:root[data-style="apple"] .technology-hud :is(.hud-map-caption, .hud-map-label, .hud-detail-meta, .hud-map-key) {
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
:root[data-style="apple"] .technology-hud .hud-core-shell {
  stroke: var(--line);
}
:root[data-style="apple"] .technology-hud .hud-detail-description {
  font-size: 0.8125rem;
  line-height: 1.8;
}
:root[data-style="apple"] .technology-hud .hud-docs-link {
  min-height: 2.75rem;
  font-size: 0.75rem;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :root[data-style="apple"]:not([data-motion="paused"]) .technology-hud .hud-tool.hud-carousel-card:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 700px) {
  :root[data-style="apple"] .technology-hud .hud-console {
    border-radius: 1.375rem;
  }
  :root[data-style="apple"] .technology-hud .hud-filter {
    padding-inline: 0.75rem;
    font-size: 0.6875rem;
  }
  :root[data-style="apple"] .technology-hud .hud-tool.hud-carousel-card {
    height: 8.5rem;
    min-height: 8.5rem;
    padding: 1rem;
  }
  :root[data-style="apple"] .technology-hud .hud-carousel[data-lanes="1"] .hud-carousel-card {
    height: 9.625rem;
    padding: 1.25rem;
  }
  :root[data-style="apple"] .technology-hud .hud-carousel-card .hud-tool-symbol {
    margin-bottom: 0.5625rem;
  }
  :root[data-style="apple"] .technology-hud .hud-detail {
    background: var(--surface);
  }
  :root[data-style="apple"] .technology-hud .hud-detail-description {
    font-size: 0.8125rem;
  }
}
@media (prefers-contrast: more) {
  :root[data-style="apple"] .technology-hud :is(.hud-console, .hud-tool, .hud-tool.hud-carousel-card, .hud-carousel-actions button) {
    border-color: var(--text);
  }
  :root[data-style="apple"] .technology-hud .hud-tool.is-selected {
    outline: 2px solid var(--accent);
    outline-offset: -3px;
  }
}
:root[data-style="apple"] :is(.capability-orbit, .degree-visual) *,
:root[data-style="apple"] :is(.capability-orbit, .degree-visual) *::before,
:root[data-style="apple"] .degree-visual::after {
  animation: none;
}
:root[data-style="apple"] .degree-visual::after {
  visibility: hidden;
}

/* Native-sized fields keep form entry comfortable, including mobile Safari. */
:root[data-style="apple"] .contact-form-panel {
  padding: clamp(1.5rem, 3.4vw, 3rem);
  border-radius: 1.75rem;
  background: var(--surface);
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] .form-heading h2 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
:root[data-style="apple"] .contact-form-panel .form-heading > span {
  border: 0;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  box-shadow: none;
}
:root[data-style="apple"] :is(.field label, .admin-field label) {
  font-size: 0.8125rem;
  font-weight: 600;
}
:root[data-style="apple"] :is(.field input, .field textarea, .field select, .topic-trigger, .admin-field input, .admin-field textarea) {
  min-height: 3.25rem;
  border-radius: 0.875rem;
  background-color: color-mix(in srgb, var(--bg) 70%, var(--surface));
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.875rem 1rem;
}
:root[data-style="apple"] :is(.field input, .field textarea, .field select, .topic-trigger):is(:focus, :focus-visible) {
  border-color: var(--accent);
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 1px;
  box-shadow: none;
}
:root[data-style="apple"] .has-error :is(input, textarea) {
  border-color: var(--field-error);
}
:root[data-style="apple"] .has-error :is(input, textarea):focus {
  outline-color: color-mix(in srgb, var(--field-error) 40%, transparent);
}
:root[data-style="apple"] .admin-field [aria-invalid="true"] {
  border-color: var(--admin-danger);
}
:root[data-style="apple"] .field textarea {
  min-height: 10rem;
}
:root[data-style="apple"] .field select {
  padding-right: 3rem;
}
:root[data-style="apple"] .admin-slug-field input {
  border-radius: 0 0.875rem 0.875rem 0;
}
:root[data-style="apple"] :is(.field-hint, .field-error, .form-note) {
  font-size: 0.75rem;
  line-height: 1.6;
}
:root[data-style="apple"] .topic-option {
  min-height: 2.75rem;
  font-size: 0.875rem;
}
:root[data-style="apple"] :is(.submit-button, .email-draft, .admin-button) {
  border-radius: 0.875rem;
}
:root[data-style="apple"] :is(.contact-success-dialog, .admin-dialog, .certificate-dialog-panel) {
  border-radius: 1.75rem;
  background: var(--surface-raised);
  box-shadow: var(--apple-panel-shadow);
}
:root[data-style="apple"] :is(.contact-success-dialog, .admin-dialog, .certificate-dialog)::backdrop {
  background: #08080d70;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
:root[data-style="apple"] :is(.admin-editor, .admin-sidebar, .admin-contact-tools) {
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--apple-shadow);
}
:root[data-style="apple"] .admin-button-primary {
  color: var(--button-ink);
}
:root[data-style="apple"] .admin-savebar {
  border-radius: 1.125rem;
  background: color-mix(in srgb, var(--surface-raised) 93%, transparent);
}

:root[data-style="apple"] .site-footer {
  background: var(--surface);
}
:root[data-style="apple"] .site-footer .footer-bottom {
  border-image: none;
  border-color: var(--line);
}
:root[data-style="apple"] .site-footer .footer-tools {
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: none;
}
:root[data-style="apple"] .site-footer .footer-tool {
  border-radius: 0.875rem;
}
:root[data-style="apple"] .site-footer .back-top {
  color: var(--button-ink);
}
:root[data-style="apple"] .site-footer .apple-style-toggle {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
  background: var(--surface);
}
:root[data-style="apple"] .motion-switch-thumb {
  background: var(--button-ink);
}

@media (max-width: 1100px) and (min-width: 701px) {
  :root[data-style="apple"] .hero h1 {
    font-size: clamp(2.7rem, 5.4vw, 4rem);
  }
  :root[data-style="apple"] .hero {
    column-gap: 1.5rem;
  }
  :root[data-style="apple"] .hero-buttons .button {
    padding-inline: 1rem;
    gap: 0.625rem;
    font-size: 0.8125rem;
  }
}
@media (max-width: 1000px) {
  :root[data-style="apple"] .nav-links {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--apple-shadow);
  }
}
@media (max-width: 700px) {
  :root[data-style="apple"] .hero {
    row-gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 4.5rem;
  }
  :root[data-style="apple"] .hero h1 {
    font-size: clamp(2.625rem, 10.5vw, 4.25rem);
  }
  :root[data-style="apple"] .hero-description {
    font-size: 0.9375rem;
  }
  :root[data-style="apple"] .hero-buttons .button {
    min-height: 3rem;
    padding-inline: 1.125rem;
    gap: 0.75rem;
    font-size: 0.8125rem;
  }
  :root[data-style="apple"] .hero-art.hero-brand-art.hero-hud {
    max-width: 30rem;
    border-radius: 1.5rem;
  }
  :root[data-style="apple"] .hud-art-header {
    padding: 1rem;
    font-size: 0.5625rem;
  }
  :root[data-style="apple"] .hud-art-footer strong {
    font-size: 0.75rem;
  }
  :root[data-style="apple"] .hero-location {
    font-size: 0.625rem;
  }
  :root[data-style="apple"] .contact-banner {
    padding-inline: 1.5rem;
  }
  :root[data-style="apple"] .contact-banner h2 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  :root[data-style="apple"] :is(.service-card, .contact-form-panel) {
    border-radius: 1.25rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  :root[data-style="apple"] :is(.site-header, .palette-panel, .topic-listbox, .site-footer .footer-tools, .admin-savebar) {
    background: var(--surface-raised);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  :root[data-style="apple"] :is(.contact-success-dialog, .admin-dialog, .certificate-dialog)::backdrop {
    background: #08080de0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
@media (prefers-contrast: more) {
  :root[data-style="apple"],
  :root[data-style="apple"][data-theme] {
    --line: color-mix(in srgb, var(--text) 58%, var(--bg));
    --muted: var(--text);
  }
  :root[data-style="apple"] :is(.site-header, .palette-panel, .topic-listbox, .site-footer .footer-tools, .admin-savebar) {
    background: var(--surface-raised);
    border: 1px solid var(--text);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  :root[data-style="apple"] :is(.button-secondary, .tag, .theme-toggle, .palette-toggle) {
    border-color: var(--text);
  }
}
:root[data-style="apple"][data-motion="paused"],
:root[data-style="apple"][data-motion="paused"] *,
:root[data-style="apple"][data-motion="paused"] *::before,
:root[data-style="apple"][data-motion="paused"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto;
}
@media (prefers-reduced-motion: reduce) {
  :root[data-style="apple"],
  :root[data-style="apple"] *,
  :root[data-style="apple"] *::before,
  :root[data-style="apple"] *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto;
  }
}
