/* ==========================================================================
   dogaru.xyz home.css : EN homepage, "liquid glass" redesign (Nov 2026).
   Self-contained: does not depend on base.css / hub.css.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens (light default, dark via [data-theme] or system preference)
   -------------------------------------------------------------------------- */

:root {
  --ground: #eceef1;
  --ink: #12151c;
  --muted: #414857;
  --line: rgba(18, 21, 28, .16);
  --grid: rgba(18, 21, 28, .06);
  --glass: rgba(255, 255, 255, .7);
  --glass-thin: rgba(255, 255, 255, .42);
  --edge: 1px solid rgba(255, 255, 255, .9);
  --lift: inset 0 1px 0 rgba(255, 255, 255, 1), inset 0 -1px 0 rgba(18, 21, 28, .07), 0 1px 2px rgba(18, 21, 28, .06), 0 28px 56px -28px rgba(18, 21, 28, .32);
  --cobalt: #2747d8;
  --flame: #f0622d;
  --link: #1f3bbf;
  --solid: #12151c;
  --on-solid: #ffffff;
  --field: rgba(255, 255, 255, .78);
  --ok: #17803d;
  --err: #b42318;

  --blur: blur(22px) saturate(175%);
  --display: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --max: 1160px;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ground: #0c0f15;
  --ink: #f1f3f7;
  --muted: #a9b1c1;
  --line: rgba(241, 243, 247, .18);
  --grid: rgba(241, 243, 247, .05);
  --glass: rgba(14, 17, 25, .7);
  --glass-thin: rgba(14, 17, 25, .45);
  --edge: 1px solid rgba(255, 255, 255, .16);
  --lift: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .4), 0 28px 56px -28px rgba(0, 0, 0, .8);
  --cobalt: #3d5cf0;
  --flame: #ff7a45;
  --link: #9db1ff;
  --solid: #f1f3f7;
  --on-solid: #12151c;
  --field: rgba(255, 255, 255, .07);
  --ok: #6ee7a0;
  --err: #fca5a5;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0c0f15;
    --ink: #f1f3f7;
    --muted: #a9b1c1;
    --line: rgba(241, 243, 247, .18);
    --grid: rgba(241, 243, 247, .05);
    --glass: rgba(14, 17, 25, .7);
    --glass-thin: rgba(14, 17, 25, .45);
    --edge: 1px solid rgba(255, 255, 255, .16);
    --lift: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .4), 0 1px 2px rgba(0, 0, 0, .4), 0 28px 56px -28px rgba(0, 0, 0, .8);
    --cobalt: #3d5cf0;
    --flame: #ff7a45;
    --link: #9db1ff;
    --solid: #f1f3f7;
    --on-solid: #12151c;
    --field: rgba(255, 255, 255, .07);
    --ok: #6ee7a0;
    --err: #fca5a5;
    color-scheme: dark;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ground);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  position: relative;
  overflow-x: clip;
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
a.plain { color: var(--ink); text-decoration: none; }
a.plain:hover { color: var(--link); }

:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
::placeholder { color: var(--muted); opacity: .8; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 0 0 14px 14px;
  background: var(--solid);
  color: var(--on-solid);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
  transition: transform .15s ease;
}
.skip-link:focus, .skip-link:focus-visible { transform: none; color: var(--on-solid); }

.visually-hidden, .hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. Shared primitives
   -------------------------------------------------------------------------- */

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: var(--edge);
  box-shadow: var(--lift);
}
.glass--thin { background: var(--glass-thin); }

.wrap { position: relative; max-width: var(--max); margin: 0 auto; }

.section { position: relative; padding: 72px 20px; }

.section-head { display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.03em;
}

.label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.orb--cobalt { background: var(--cobalt); }
.orb--flame { background: var(--flame); }
.orb--ring { border: 1px solid var(--line); }

.btn {
  height: 52px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn--solid, .btn--solid:hover { background: var(--solid); color: var(--on-solid); border: 0; }
.btn--solid:hover { opacity: .86; }
.btn--solid:disabled { opacity: .5; cursor: progress; }
.btn--glass, .btn--glass:hover { color: var(--ink); }
.btn--glass { background: var(--glass-thin); }
.btn--glass:hover { background: var(--glass); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }

.rule-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.rule-list li { padding: 12px 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  padding: 0 20px;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 60px;
  padding: 8px 8px 8px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  padding: 0;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.theme-toggle:hover { background: var(--glass-thin); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}

@media (max-width: 400px) {
  .nav { padding-left: 16px; gap: 8px; }
  .brand { font-size: 17px; }
  .btn--sm { padding: 0 16px; }
  .lang { min-width: 36px; }
}

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */

.hero { position: relative; padding: 72px 20px 104px; }

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(46px, 6.6vw, 96px);
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.hero-sig {
  font-family: var(--mono);
  font-size: clamp(15px, 1.4vw, 19px);
}
.hero-sig span { color: var(--link); }

.hero-lead { max-width: 560px; color: var(--muted); text-wrap: pretty; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 440px;
  position: relative;
}

.photo-frame {
  position: relative;
  padding: 14px;
  border-radius: 36px;
}
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
  background: var(--field);
}

.now-chip {
  position: absolute;
  left: -28px;
  bottom: -26px;
  max-width: 250px;
  padding: 14px 18px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.now-chip__k { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.now-chip__v { font-size: 15px; font-weight: 600; line-height: 1.3; }

@media (max-width: 600px) {
  .hero { padding-top: 48px; }
  .hero-visual { margin: 0 auto; }
  .now-chip { left: 12px; }
}

/* --------------------------------------------------------------------------
   6. Trust
   -------------------------------------------------------------------------- */

.stack { display: flex; flex-direction: column; gap: 36px; }

.brands {
  list-style: none;
  padding: 26px 34px;
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 36px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: -.01em;
}
.brands__more {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.proof {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 0 40px;
}
.proof li {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}
.proof__desc { font-size: 15px; color: var(--muted); }

/* RO hub: digital gap stats */
.gap-intro { max-width: 760px; color: var(--muted); text-wrap: pretty; }

.gap-stats {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 16px;
}
.gap-stat {
  padding: 30px 32px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gap-stat__value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--flame);
}
.gap-stat__label { font-size: 18px; font-weight: 500; line-height: 1.35; }
.gap-stat__label em { font-style: normal; font-weight: 700; }
.gap-stat__note { font-size: 15px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); }

.local-link { font-size: 17px; }

.notes-subhead { padding: 28px 0 10px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------------------
   7. Fractional CTO
   -------------------------------------------------------------------------- */

.fcto-head { max-width: 820px; }
.fcto-lead {
  margin-top: 8px;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.4;
  text-wrap: pretty;
}

.fcto-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }

.fcto-card {
  flex: 999 1 560px;
  min-width: 0;
  padding: 36px;
  border-radius: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 36px;
}
.fcto-col { display: flex; flex-direction: column; gap: 16px; }
.fcto-col h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--link);
}
.fcto-col--not h3, .fcto-col--not ul { color: var(--muted); }

.stage {
  flex: 1 1 320px;
  min-width: 0;
  padding: 14px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stage picture { flex-grow: 1; display: flex; }
.stage img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  border-radius: 20px;
  background: var(--field);
}
.stage figcaption { padding: 0 8px 6px; font-size: 14px; color: var(--muted); }

.fcto-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px 56px;
  align-items: start;
}
.fcto-notes > div { display: flex; flex-direction: column; gap: 6px; }
.fcto-notes p { text-wrap: pretty; }

@media (max-width: 600px) {
  .fcto-card { padding: 26px; }
}

/* --------------------------------------------------------------------------
   8. Timeline
   -------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  padding: 0;
  columns: 2 420px;
  column-gap: 56px;
}
.timeline li {
  break-inside: avoid;
  display: flex;
  gap: 20px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.timeline time {
  flex: 0 0 96px;
  font-family: var(--mono);
  font-size: 14px;
  padding-top: 3px;
  color: var(--link);
}

@media (max-width: 480px) {
  .timeline time { flex-basis: 84px; }
}

/* --------------------------------------------------------------------------
   9. Projects
   -------------------------------------------------------------------------- */

.cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.card {
  height: 100%;
  padding: 26px;
  border-radius: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-3px); }
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -.01em;
}
.card p { flex-grow: 1; font-size: 15px; color: var(--muted); }
.card a { font-size: 15px; font-weight: 600; }

/* --------------------------------------------------------------------------
   10. How I think
   -------------------------------------------------------------------------- */

.rules {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 32px 40px;
}
.rules li {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rules__num { font-family: var(--mono); font-size: 13px; color: var(--link); }
.rules h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.rules p { font-size: 16px; color: var(--muted); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   11. Notes
   -------------------------------------------------------------------------- */

.notes-row { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }

.notes-list {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}

.note {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.note time {
  flex: 0 0 96px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}
.note__title {
  flex-grow: 1;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.now-card {
  flex: 1 1 300px;
  min-width: 0;
  padding: 28px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.now-card h3 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--link);
}

@media (max-width: 480px) {
  .note { flex-wrap: wrap; gap: 4px 12px; }
  .note time { flex-basis: 100%; }
  .note__title { flex-basis: 0; }
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */

.faq-row { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.faq-row > .section-head { flex: 1 1 280px; min-width: 0; }

.faq {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  min-height: 64px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 19px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link); }
.faq .plus { flex: 0 0 auto; transition: transform .2s ease; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq p { padding: 0 40px 22px 0; color: var(--muted); text-wrap: pretty; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */

.contact { padding-bottom: 96px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }

.contact-copy {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
}
.contact-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.contact-copy p { max-width: 420px; color: var(--muted); }

.contact-form {
  position: relative;
  flex: 999 1 480px;
  min-width: 0;
  max-width: 600px;
  padding: 34px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
}
.field input, .field select { height: 50px; padding: 0 16px; }
.field select { padding: 0 12px; }
.field select option { color: #12151c; background: #ffffff; }
.field textarea { padding: 14px 16px; line-height: 1.5; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 1px;
}
.contact-form .btn { align-self: flex-start; }

.form-status {
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--field);
}
.form-status[hidden] { display: none; }
.form-status.is-success { color: var(--ok); border-color: currentColor; }
.form-status.is-error { color: var(--err); border-color: currentColor; }
.form-status a { color: inherit; }

@media (max-width: 600px) {
  .contact-form { padding: 24px; }
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer { position: relative; padding: 0 20px 40px; }
.footer-bar {
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  font-size: 15px;
}
.footer-meta { color: var(--muted); }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-links a { min-height: 44px; display: flex; align-items: center; }

/* --------------------------------------------------------------------------
   15. Consent banner (markup injected by consent.js)
   -------------------------------------------------------------------------- */

.consent-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(340px, calc(100vw - 32px));
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: var(--edge);
  box-shadow: var(--lift);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.consent-banner.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.consent-banner__text { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.consent-banner__text a { color: var(--link); }
.consent-banner__actions { display: flex; justify-content: flex-end; gap: 8px; }
.consent-banner__accept, .consent-banner__decline {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.consent-banner__accept { background: var(--solid); color: var(--on-solid); border: 0; }
.consent-banner__accept:hover { opacity: .86; }
.consent-banner__decline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.consent-banner__decline:hover { background: var(--glass-thin); }

@media (max-width: 480px) {
  .consent-banner { left: 12px; right: 12px; bottom: 12px; width: auto; }
}

/* --------------------------------------------------------------------------
   16. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .faq .plus, .consent-banner, .skip-link { transition: none; }
  .card:hover { transform: none; }
}
