/* Hiaron Technology — iOS 26 web design system
   Liquid Glass is intentionally limited to navigation and transient controls.
   Content remains solid and readable, following iOS 26 hierarchy and spacing. */
:root {
  --ios-radius-sm: 13px;
  --ios-radius-md: 18px;
  --ios-radius-lg: 24px;
  --ios-radius-xl: 30px;
  --ios-glass-light: rgba(250,250,252,.78);
  --ios-glass-dark: rgba(24,24,29,.78);
  --ios-ease: cubic-bezier(.2,.8,.2,1);
  --ios-glass-shadow: 0 10px 34px rgba(20,20,35,.12), inset 0 1px rgba(255,255,255,.72);
  --ios-tap: 44px;
}
:root[data-theme='dark'] {
  --ios-glass-shadow: 0 12px 36px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.08);
}
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
body { letter-spacing: -.012em; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a, [role="button"], input, select, textarea { touch-action: manipulation; }

/* Shared shape language: rounded rectangles, not oversized capsule cards. */
.btn, .btn.sm, .btn.lg, .ib, .tb, .lang, .nav a, .seg button,
.tf input, .tf textarea, .tf select, .panel, .stat, .stats, .svc, .sv,
.card, .savebar, .box, .modal, .row, .grp, .up, .social-card,
.download-settings, .drop, .srow, .chips, .tabs button, .chip {
  border-radius: var(--ios-radius-md);
}
.btn { min-height: var(--ios-tap); border-radius: 15px; font-weight: 650; transition: transform .24s var(--ios-ease), box-shadow .24s var(--ios-ease), background .2s, border-color .2s, color .2s; }
.btn.sm { min-height: 40px; border-radius: 13px; }
.btn.lg { min-height: 52px; border-radius: 17px; }
.ib, .tb { min-width: var(--ios-tap); min-height: var(--ios-tap); border-radius: 50%; }
.lang { min-height: var(--ios-tap); border-radius: 15px; }
.chip, .skills span, .mq span, .tag, .pill { border-radius: 999px; }
.tf input, .tf textarea, .tf select { min-height: 50px; border-radius: 14px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--acc) 52%, transparent); outline-offset: 3px; }

/* Page background and content hierarchy. */
.ambient { opacity: .82; }
.w, main { width: min(100%, 1180px); }
.sec { padding-top: clamp(64px, 9vw, 112px); }
.sh { margin-bottom: clamp(22px, 4vw, 34px); }
.sh h2 { letter-spacing: -.045em; }
.hero h1 { letter-spacing: -.055em; }
.kicker { letter-spacing: .12em; }

/* Floating translucent navigation bars — glass belongs to the navigation layer. */
.hd, .top, .wrap.nav {
  background: var(--ios-glass-light);
  -webkit-backdrop-filter: blur(24px) saturate(1.65);
  backdrop-filter: blur(24px) saturate(1.65);
  border-bottom: 1px solid color-mix(in srgb, var(--ln) 76%, transparent);
}
:root[data-theme='dark'] .hd,
:root[data-theme='dark'] .top,
:root[data-theme='dark'] .wrap.nav { background: var(--ios-glass-dark); }
.hd { position: sticky; top: 0; z-index: 100; }
.hd .bar { min-height: 66px; }
.brand img { border-radius: 12px; }
.nav a { min-height: 42px; border-radius: 13px; }
.nav .ind { border-radius: 13px; }
.tools { gap: 8px; }
.tb, .lang { box-shadow: 0 1px 2px rgba(0,0,0,.04); }

/* Services: compact solid content surfaces, no giant capsule treatment. */
.svc { display: grid; gap: 1px; border-radius: 26px; overflow: hidden; background: var(--ln); }
.sv { position: relative; min-width: 0; min-height: 0; padding: clamp(22px, 3vw, 30px); border-radius: 0; background: var(--sf); }
.sv .oi { width: 48px; height: 48px; border-radius: 15px; margin-bottom: 20px; }
.sv .num { top: 22px; right: 22px; }
.sv h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); }
.sv p { max-width: 42ch; line-height: 1.65; }
@media (min-width: 620px) { .svc { grid-template-columns: repeat(3, minmax(0,1fr)); } }

/* Portfolio cards: consistent image frame, typography, and detail affordance. */
.sgrid { align-items: stretch; gap: 22px; }
.card { min-width: 0; border-radius: 26px; overflow: hidden; background: var(--sf); border: 1px solid var(--ln); box-shadow: 0 2px 8px rgba(15,18,35,.035); }
.card .th { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; background: var(--sf2); }
.card .th img { width: 100%; height: 100%; object-fit: cover; }
.card .bd { padding: clamp(18px, 2.5vw, 25px); }
.card h3 { letter-spacing: -.035em; }
.card .go { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; }
.card .go .ic { color: var(--acc); }

/* Filters use iOS segmented-control visual language. */
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--ln); border-radius: 999px; background: var(--sf2); }
.seg button { min-height: 40px; padding: 0 17px; border-radius: 999px; color: var(--mu); }
.seg button.on { color: var(--tx); background: var(--sf); box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.seg .pill { display: none; }

/* Cards, stats, content panels and lists remain solid — no glass on content. */
.stats { border-radius: 23px; }
.stat { padding: clamp(17px, 3vw, 28px); }
.panel, .box, .grp, .social-card, .download-settings { border-radius: 24px; }
.row { border-radius: 18px; }
.empty { border-radius: 24px; }

/* iOS 26 floating inset tab bar. Keep a real safe-area and content clearance. */
@media (max-width: 719px) {
  html { scroll-padding-top: 78px; }
  main { padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)) !important; }
  footer { padding-bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important; }
  .hd .bar { height: 60px; }
  .bn {
    position: fixed !important;
    left: 21px !important; right: 21px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 120 !important;
    display: flex !important; align-items: center; justify-content: space-around;
    min-height: 66px; padding: 7px 9px !important; gap: 4px;
    border: 1px solid color-mix(in srgb, var(--ln) 72%, transparent) !important;
    border-radius: 999px !important;
    background: var(--ios-glass-light) !important;
    color: var(--tx);
    -webkit-backdrop-filter: blur(26px) saturate(1.7);
    backdrop-filter: blur(26px) saturate(1.7);
    box-shadow: var(--ios-glass-shadow);
  }
  :root[data-theme='dark'] .bn { background: var(--ios-glass-dark) !important; }
  .bn a {
    flex: 1; min-width: 0; min-height: 50px; justify-content: center;
    gap: 2px; padding: 5px 4px; border-radius: 999px;
    font-size: 11px; font-weight: 600; color: var(--mu);
  }
  .bn a::before { display: none !important; }
  .bn a[aria-current] { color: var(--acc); background: var(--acc-soft); }
  .bn .ic { width: 21px; height: 21px; }
  .snack { bottom: calc(94px + env(safe-area-inset-bottom, 0px)) !important; }
  .seg { width: 100%; }
  .seg button { flex: 1; justify-content: center; padding-inline: 8px; }
  .sh { align-items: stretch; }
  .card .bd { padding: 18px; }
  .sgrid { gap: 16px; }
}
@media (min-width: 720px) {
  .bn { display: none !important; }
}

/* Admin: iOS grouped form sections, inset navigation, compact lists and sheet dialogs. */
#login { padding: max(24px, env(safe-area-inset-top)) 18px 40px; }
#login .box { border-radius: 30px; box-shadow: 0 18px 54px rgba(18,20,35,.10); }
.top .bar { min-height: 64px; }
main { padding-top: clamp(22px, 4vw, 36px); }
.tabs { gap: 5px; border: 0; padding: 4px; border-radius: 999px; background: var(--sf2); }
.tabs button { min-height: 42px; padding: 0 18px; border-radius: 999px; justify-content: center; }
.tabs button.on { background: var(--sf); box-shadow: 0 1px 4px rgba(0,0,0,.10); }
.tabs .ind { display: none; }
.head h2 { letter-spacing: -.045em; }
.grp { background: var(--sf); border: 1px solid var(--ln); box-shadow: 0 2px 8px rgba(15,18,35,.035); }
.row { grid-template-columns: 104px minmax(0,1fr) auto; padding: 10px; gap: 14px; }
.row .th { width: 104px; height: 68px; border-radius: 14px; }
.drop { border-radius: 20px; }
.dchg { border-radius: 999px; }
.srow { border-radius: 18px; }
.chips { border-radius: 16px; }
.chips .t { border-radius: 999px; }
.savebar { border-radius: 999px; padding: 9px 10px 9px 20px; }
.ov { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal { border-radius: 28px; }
.fab { min-height: 54px; border-radius: 999px; padding-inline: 22px; }
.warn { border-radius: 18px; }
@media (max-width: 640px) {
  #login .box { padding: 26px 22px; }
  .row { grid-template-columns: 76px minmax(0,1fr); }
  .row .th { width: 76px; height: 64px; }
  .row .acts { grid-column: 1 / -1; justify-content: flex-end; }
  .savebar { width: calc(100% - 24px); gap: 6px; padding-left: 14px; }
  .savebar span { font-size: 12px; }
  .savebar .btn { padding-inline: 10px; }
  .modal { border-radius: 26px 26px 20px 20px; }
}

/* Standalone project detail pages share the same iOS design system. */
.wrap.nav { position: sticky; top: 0; z-index: 40; min-height: 68px; }
.wrap.nav .brand img { border-radius: 12px; }
.wrap.nav .back { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 15px; background: var(--sf); border: 1px solid var(--ln); color: var(--tx); }
.wrap.nav + main .pill { border-radius: 999px; }
.wrap.nav + main .cover { border-radius: 26px; box-shadow: 0 14px 42px rgba(20,20,35,.10); }
.wrap.nav + main .action { min-height: 50px; border-radius: 15px; }
.wrap.nav + main .action.primary { box-shadow: 0 8px 22px rgba(32,36,58,.16); }
.wrap.nav + main .content { padding-bottom: 72px; }
@media (max-width: 600px) {
  .wrap.nav { width: 100%; padding-inline: 18px; }
  .wrap.nav .back { padding-inline: 13px; font-size: 13px; }
  .wrap.nav + main { padding-bottom: 48px; }
  .wrap.nav + main .hero { padding-top: 34px; }
  .wrap.nav + main .action { width: 100%; }
}

/* Motion is restrained and disabled when the user requests reduced motion. */
@media (hover: hover) and (pointer: fine) {
  .btn:hover, .ib:hover, .tb:hover, .lang:hover, .nav a:hover { transform: translateY(-2px); }
  .sv:hover { background: var(--sf2); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--sh2); }
  .row:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* iOS system typography and standalone project dark/light appearance. */
:root { --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif; }
body:has(.wrap.nav) { background: radial-gradient(ellipse at 82% 0%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 44%), var(--bg) !important; color: var(--tx) !important; }
body:has(.wrap.nav) .desc,
body:has(.wrap.nav) .content p { color: var(--mu) !important; }
body:has(.wrap.nav) .pill { background: var(--acc-soft) !important; color: var(--acc) !important; }
body:has(.wrap.nav) .action { background: var(--sf) !important; border-color: var(--ln) !important; color: var(--tx) !important; }
body:has(.wrap.nav) .action.primary { background: var(--ink) !important; border-color: var(--ink) !important; color: var(--on-ink) !important; }
body:has(.wrap.nav) .tag { background: var(--sf2) !important; color: var(--mu) !important; }
body:has(.wrap.nav) .content { border-top-color: var(--ln) !important; }
body:has(.wrap.nav) footer { color: var(--fa) !important; }
