/* ============================================================
   Digital Twin - shared stylesheet
   Landing (index.html) and About (about.html)
   ============================================================ */

:root{
  --ink:#161616;
  --ink-2:#4a4a4a;
  --ink-3:#767b80;
  --line:#e5e7e9;
  --line-2:#d8dbde;
  --paper:#ffffff;
  --page:#fafbfb;
  --coral:#c9501f;          /* 4.6:1 on white - passes AA for text */
  --coral-bright:#d95a2b;   /* used for large fills only */
  --coral-soft:#fdeee7;
  --radius:16px;

  --display:"Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body:"Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --shell:min(760px, 100% - 2.5rem);
}

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

html{ -webkit-text-size-adjust:100%; }

body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  background:var(--page);
  color:var(--ink);
  font-family:var(--body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

a{ color:var(--coral); }

:focus-visible{
  outline:2px solid var(--coral);
  outline-offset:2px;
  border-radius:4px;
}

.shell{
  width:var(--shell);
  margin-inline:auto;
}

.skip{
  position:absolute;
  left:-9999px;
  top:0;
  background:var(--ink);
  color:#fff;
  padding:10px 16px;
  border-radius:0 0 8px 0;
  font-size:14px;
  font-weight:600;
  z-index:20;
}
.skip:focus{ left:0; }

/* ---------- main ---------- */

main{
  flex:1 0 auto;
  padding:clamp(2.5rem, 7vw, 4.5rem) 0 3.5rem;
}

/* ---------- hero ---------- */

.hero{ margin-bottom:1.75rem; }

.hero__eyebrow{
  margin:0 0 .65rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.hero__name{
  font-family:var(--display);
  font-weight:800;
  font-size:clamp(2.05rem, 6.2vw, 2.85rem);
  line-height:1.05;
  letter-spacing:-.025em;
  margin:0 0 .7rem;
}

.hero__position{
  margin:0;
  /* 52ch left "revenue." orphaned on a third row; 58ch fits it in two
     without pushing the measure past comfortable reading width */
  max-width:58ch;
  font-size:clamp(1rem, 2.4vw, 1.075rem);
  font-weight:500;
  line-height:1.5;
  color:var(--ink-2);
}

/* ---------- twin card ---------- */

.twin{
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius);
  box-shadow:0 12px 32px -20px rgba(20,20,20,.42);
  padding:clamp(1.1rem, 3.5vw, 1.35rem);
}

.twin__label{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0 0 .9rem;
  font-size:.7rem;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.twin__label::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--coral-bright);
  flex:none;
}

.ask{
  display:flex;
  gap:.6rem;
  align-items:center;
}

.ask__input{
  flex:1;
  min-width:0;
  font-family:inherit;
  font-size:1rem;              /* 16px stops iOS zooming on focus */
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:11px;
  padding:.75rem .9rem;
}
.ask__input::placeholder{ color:#a4a9ad; }
.ask__input:focus-visible{ outline-offset:1px; border-color:transparent; }

.ask__send{
  flex:none;
  width:46px;
  height:46px;
  border:none;
  /* rounded square, not a circle: the only other circle on the site is the
     live dot, and every other control is a rounded rectangle */
  border-radius:11px;
  background:var(--coral-bright);
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  box-shadow:0 6px 14px -6px rgba(217,90,43,.85);
  transition:background .15s ease, transform .15s ease;
}
.ask__send:hover{ background:#b8481b; }
.ask__send:active{ transform:scale(.94); }
.ask__send[disabled]{ opacity:.45; cursor:default; box-shadow:none; }
.ask__send svg{ width:18px; height:18px; }

/* The one element that swaps content in place.
   min-height is reserved so the card never jumps. */
.slot{
  min-height:1.35rem;
  margin:.8rem .15rem 0;
  font-size:.83rem;
  line-height:1.6;
  color:var(--ink-2);
}

.slot__link{
  color:var(--coral);
  text-decoration:none;
  border-bottom:1px solid #eec8b4;
  padding-bottom:1px;
  background:none;
  border-top:0; border-left:0; border-right:0;
  font:inherit;
  cursor:pointer;
  padding-inline:0;
}
.slot__link:hover{ border-bottom-color:var(--coral); }

.slot__status{
  display:inline-flex;
  align-items:center;
  gap:.55rem;
  color:var(--ink-3);
}

.dots{ display:inline-flex; gap:4px; }
.dots i{
  width:5px; height:5px;
  border-radius:50%;
  background:#c3c7cb;
  animation:bob 1s infinite;
}
.dots i:nth-child(2){ animation-delay:.15s; }
.dots i:nth-child(3){ animation-delay:.3s; }
@keyframes bob{
  0%,60%,100%{ transform:none; opacity:.5 }
  30%{ transform:translateY(-3px); opacity:1 }
}

.twin__hint{
  margin:.7rem .15rem 0;
  font-size:.72rem;
  line-height:1.55;
  color:var(--ink-3);
}

/* ---------- thread ---------- */

.thread{ display:flex; flex-direction:column; gap:1.15rem; }
.thread:not(:empty){
  margin-top:1.15rem;
  padding-top:1rem;
  border-top:1px solid #eef0f1;
}

.exchange{
  display:flex;
  flex-direction:column;
  gap:.55rem;
  animation:reveal .45s cubic-bezier(.2,.7,.3,1);
}
@keyframes reveal{
  from{ opacity:0; transform:translateY(-6px) }
  to{ opacity:1; transform:none }
}

.exchange__q{
  display:flex;
  gap:.55rem;
  align-items:baseline;
  font-size:.85rem;
  font-weight:600;
  color:var(--ink);
}
.exchange__q span{
  flex:none;
  font-size:.66rem;
  font-weight:600;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-3);
}

.exchange__a{
  font-size:.94rem;
  line-height:1.68;
  color:var(--ink-2);
  min-height:1.4rem;
}
.exchange__a strong{ color:var(--ink); font-weight:600; }
.exchange__a p{ margin:0 0 .7rem; }
.exchange__a p:last-child{ margin-bottom:0; }

.exchange__source{
  margin-top:.6rem;
  font-size:.7rem;
  color:var(--ink-3);
}

.caret{
  display:inline-block;
  width:2px; height:.95em;
  background:var(--coral-bright);
  vertical-align:-2px;
  animation:blink .9s steps(2) infinite;
}
@keyframes blink{ 50%{ opacity:0 } }

.exchange--error .exchange__a{ color:#8a3c1c; }

/* ---------- profile links ---------- */

.links{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
  margin-top:1.5rem;
  padding:0;
  list-style:none;
}

.link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size:.85rem;
  font-weight:600;
  text-decoration:none;
  border-radius:10px;
  padding:.6rem .95rem;
  border:1px solid var(--line-2);
  background:var(--paper);
  color:var(--ink);
  transition:background .15s ease, border-color .15s ease;
}
.link:hover{ background:#fbfbfc; border-color:#c6cace; }
.link svg{ width:16px; height:16px; flex:none; }

.link--primary{
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}
.link--primary:hover{ background:#000; border-color:#000; }

/* ---------- about ---------- */


.about{
  display:grid;
  grid-template-columns:168px minmax(0,1fr);
  gap:clamp(1.5rem, 4vw, 2.25rem);
  align-items:start;
}
@media (max-width:560px){
  .about{ grid-template-columns:1fr; }
  .about__photo{ width:150px; }
}

.about__photo{
  width:168px;
  height:auto;          /* without this the HTML height attribute wins and the box goes tall */
  aspect-ratio:1;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--line);
  background:#eceff1;
}

.about__name{
  font-family:var(--display);
  font-weight:800;
  font-size:clamp(1.8rem, 5.5vw, 2.15rem);
  letter-spacing:-.022em;
  line-height:1.1;
  margin:0 0 .25rem;
}

.about__role{
  margin:0 0 1.1rem;
  font-size:.85rem;
  font-weight:500;
  color:var(--ink-3);
}

.about__lede{
  margin:0 0 1rem;
  max-width:54ch;
  font-size:1.075rem;
  font-weight:600;
  line-height:1.5;
  color:var(--ink);
}

.about p:not(.about__role):not(.about__lede){
  margin:0 0 .9rem;
  max-width:62ch;
  font-size:.94rem;
  line-height:1.7;
  color:var(--ink-2);
}

/* the closing opinion - marked as a separate thought, not another bio fact */
.about__closing{
  margin-top:1.4rem !important;
  padding-top:1.2rem;
  border-top:1px solid var(--line);
  color:var(--ink) !important;
}

/* quiet internal link. Deliberately not a button: the profile row below is
   the set of exits, and this should not compete with them. */
.more{
  margin:1.1rem .15rem 0;
}
.more a{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  font-size:.85rem;
  font-weight:600;
  color:var(--coral);
  text-decoration:none;
}
.more a:hover{ text-decoration:underline; }
.more svg{ width:14px; height:14px; }

/* ---------- footer ---------- */

.foot{
  flex:none;
  border-top:1px solid var(--line);
  background:var(--paper);
  padding:1.1rem 0;
}

.foot .shell{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
  font-size:.78rem;
  color:var(--ink-3);
}

.foot a{
  color:var(--coral);
  text-decoration:none;
  font-weight:600;
}
.foot a:hover{ text-decoration:underline; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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