/* =========================================================
   ICM-ICT 2027 — design tokens
   Identity: a Saharan oasis (Ouargla) sending a signal outward.
   Dune gold + palm green ground it in place; night-oasis navy
   + signal teal carry the ICT / circuitry register.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root{
  /* color */
  --ink:        #1C1A14;
  --ink-soft:   #534E40;
  --night:      #0B2536;
  --night-2:    #123A52;
  --night-3:    #0E3046;
  --teal:       #1E9C8B;
  --teal-light: #6FCCBC;
  --gold:       #C98A3B;
  --gold-light: #E3B978;
  --palm:       #2F5233;
  --mist:       #F6F2E8;
  --mist-2:     #EFE7D4;
  --white:      #FFFFFF;
  --line:       rgba(28,26,20,0.13);
  --line-night: rgba(255,255,255,0.16);

  /* type */
  --f-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --f-body:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-mono:    'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; }
a{ color: var(--teal); text-decoration: none; }
a:hover{ text-decoration: underline; }
h1,h2,h3,h4{
  font-family: var(--f-display);
  color: var(--night);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 600;
}
p{ margin: 0 0 1em; }
ul{ margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible{ outline: 3px solid var(--gold); outline-offset: 2px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12.5px;
  color: var(--gold);
  font-weight: 600;
  display:flex;
  align-items:center;
  gap:.55em;
}
.eyebrow::before{
  content:"";
  width:7px; height:7px;
  border-radius:50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(30,156,139,.18);
}
.eyebrow.on-dark{ color: var(--gold-light); }

section{ padding: 88px 0; }
@media (max-width:760px){ section{ padding: 56px 0; } }

.section-head{ max-width: 720px; margin: 0 0 40px; }
.section-head h2{ font-size: clamp(28px,3.4vw,38px); margin-top:.4em; }
.section-head p{ color: var(--ink-soft); font-size: 17px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5em;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing:.03em;
  font-weight:600;
  padding: 13px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover{ text-decoration:none; transform: translateY(-1px); }
.btn-gold{ background: var(--gold); color: var(--night); }
.btn-gold:hover{ background: var(--gold-light); }
.btn-line{ border-color: var(--line-night); color: var(--white); }
.btn-line:hover{ border-color: var(--teal-light); color: var(--teal-light); }
.btn-line-dark{ border-color: rgba(28,26,20,.3); color: var(--night); }
.btn-line-dark:hover{ border-color: var(--night); }
.btn-disabled{ opacity:.55; cursor:not-allowed; }
.btn-disabled:hover{ transform:none; }
.btn-sm{ padding: 9px 16px; font-size: 12px; }

/* =========================================================
   Top utility strip + header
   ========================================================= */
.topstrip{
  background: var(--night);
  color: rgba(255,255,255,.72);
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.topstrip .container{
  display:flex; justify-content:space-between; align-items:center;
  padding-top:8px; padding-bottom:8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topstrip a{ color: rgba(255,255,255,.72); }
.topstrip a:hover{ color: var(--teal-light); }
.topstrip .ts-right{ display:flex; gap:18px; }
.topstrip .ts-left span{ color: var(--teal-light); }

header.site{
  position: sticky; top:0; z-index: 60;
  background: rgba(246,242,232,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 0;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height: 42px; width:auto; }
.brand .brand-text{ font-family: var(--f-display); font-weight:700; color: var(--night); font-size: 15px; line-height:1.2; }
.brand .brand-text small{ display:block; font-family: var(--f-mono); font-weight:500; font-size:10.5px; color: var(--gold); letter-spacing:.07em; }

nav.main-links{ display:flex; gap: 28px; }
nav.main-links a{
  font-family: var(--f-mono);
  font-size: 12.8px;
  letter-spacing:.03em;
  color: var(--ink);
  font-weight:500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main-links a:hover, nav.main-links a.active{
  color: var(--night);
  border-color: var(--gold);
  text-decoration:none;
}
.nav-cta{ display:flex; align-items:center; gap:14px; }
.menu-toggle{
  display:none;
  background:none; border:none; cursor:pointer;
  width:38px; height:38px;
  flex-direction:column; justify-content:center; align-items:center; gap:5px;
}
.menu-toggle span{ width:22px; height:2px; background: var(--night); display:block; }

@media (max-width: 900px){
  nav.main-links{
    position:fixed; inset: 0 0 0 30%;
    background: var(--mist);
    flex-direction:column;
    padding: 100px 32px 32px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .28s ease;
    border-left: 1px solid var(--line);
  }
  nav.main-links.open{ transform: translateX(0); }
  nav.main-links a{ font-size: 16px; }
  .menu-toggle{ display:flex; }
  .nav-cta .btn-sm-desktop{ display:none; }
}

/* =========================================================
   Hero (home)
   ========================================================= */
.hero{
  background: radial-gradient(circle at 18% 20%, var(--night-2), var(--night) 60%);
  color: var(--white);
  padding: 76px 0 0;
  position: relative;
  overflow: hidden;
}
.hero .container{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items:center;
  position: relative;
  z-index: 2;
}
.hero h1{
  color: var(--white);
  font-size: clamp(40px, 5.4vw, 68px);
  margin: .35em 0 .4em;
  letter-spacing:-.01em;
}
.hero h1 em{ color: var(--gold-light); font-style: normal; }
.hero p.lede{
  font-size: 18px;
  color: rgba(255,255,255,.78);
  max-width: 480px;
}
.hero .hero-actions{ display:flex; gap:14px; margin-top: 30px; flex-wrap:wrap; }
.hero-art{ position:relative; }

@media (max-width: 900px){
  .hero .container{ grid-template-columns: 1fr; }
  .hero-art{ order:-1; max-width: 360px; margin: 0 auto; }
}

.hero-art svg .dune-back{ fill: var(--night-3); }
.hero-art svg .dune-front{ fill: var(--gold); opacity:.92; }
.hero-art svg .palm-tick{ stroke: var(--palm); stroke-width:2.2; opacity:.85; stroke-linecap: round; }
.hero-art svg .globe-line{ stroke: var(--teal-light); opacity:.32; fill:none; stroke-width:1.4; }
.hero-art svg .sig-line{ stroke: var(--teal-light); fill:none; stroke-width:2; opacity:.75; }
.hero-art svg .sig-node{ fill: var(--gold-light); }
.hero-art svg .sig-node-end{ fill: var(--teal-light); }
.hero-art svg .sig-pulse{ transform-box: fill-box; transform-origin:center; animation: pulseNode 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce){ .hero-art svg .sig-pulse{ animation:none; } }

/* signal strip (key facts ticker) */
.signal-strip{
  margin-top: 56px;
  background: rgba(255,255,255,.04);
  border-top: 1px solid var(--line-night);
  border-bottom: 1px solid var(--line-night);
  position: relative; z-index:2;
}
.signal-strip .container{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
}
.signal-item{
  padding: 22px 24px;
  border-left: 1px solid var(--line-night);
  font-family: var(--f-mono);
}
.signal-item:first-child{ border-left:none; }
.signal-item .si-label{ font-size: 11px; letter-spacing:.1em; text-transform:uppercase; color: var(--teal-light); margin-bottom:6px; }
.signal-item .si-value{ font-size: 16.5px; color: var(--white); font-weight:500; }
@media (max-width: 900px){
  .signal-strip .container{ grid-template-columns: repeat(2,1fr); }
  .signal-item:nth-child(3){ border-left:none; }
}
@media (max-width: 560px){
  .signal-strip .container{ grid-template-columns: 1fr; }
  .signal-item{ border-left:none !important; border-top:1px solid var(--line-night); }
  .signal-item:first-child{ border-top:none; }
}

/* dune / circuit horizon divider — the signature motif */
.horizon{
  display:block; width:100%; height:auto;
}
.horizon-divider{
  line-height:0;
  background: var(--mist);
}
.horizon-divider.on-night{ background: var(--night); }
.horizon-divider svg{ width:100%; display:block; }
.horizon-divider svg .h-line{ stroke: var(--night); opacity:.25; fill:none; stroke-width:2; }
.horizon-divider svg .h-node{ fill: var(--gold); opacity:.9; }
.horizon-divider svg .h-node-end{ fill: var(--teal); }
.horizon-divider.on-night svg .h-line{ stroke: var(--teal-light); opacity:.4; }
.horizon-divider.on-night svg .h-node{ fill: var(--gold-light); }
.horizon-divider.on-night svg .h-node-end{ fill: var(--teal-light); }
.h-pulse{ transform-box: fill-box; transform-origin: center; animation: pulseNode 2.8s ease-out infinite; }
@keyframes pulseNode{ 0%{ transform: scale(1); opacity:.9; } 70%{ transform: scale(2.6); opacity:0; } 100%{ opacity:0; } }
@media (prefers-reduced-motion: reduce){ .h-pulse{ animation: none; } }

/* page hero (non-home pages) */
.page-hero{
  background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--white);
  padding: 64px 0 70px;
}
.page-hero .eyebrow{ color: var(--gold-light); }
.page-hero h1{ color:var(--white); font-size: clamp(32px,4.2vw,48px); margin:.3em 0 .25em; }
.page-hero p{ color: rgba(255,255,255,.75); max-width: 640px; font-size:16.5px; }
.crumb{ font-family: var(--f-mono); font-size:12px; color: rgba(255,255,255,.55); }
.crumb a{ color: rgba(255,255,255,.78); }

/* =========================================================
   Cards / grids
   ========================================================= */
.grid{ display:grid; gap: 24px; }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 920px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .grid-3,.grid-4,.grid-2{ grid-template-columns: 1fr;} }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}
.card h3{ font-size:19px; margin-bottom:.4em; }
.card p{ color: var(--ink-soft); font-size: 15px; margin-bottom:0; }
.card .num{
  font-family: var(--f-mono); color: var(--gold); font-weight:600; font-size:13px;
  margin-bottom: 14px; display:block; letter-spacing:.06em;
}

/* topic pills */
.pillgrid{ display:flex; flex-wrap:wrap; gap:12px; }
.pill{
  font-family: var(--f-mono);
  font-size: 13.5px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--night);
}

/* timeline (legitimate sequence: dates) */
.timeline{ position:relative; padding-left: 0; }
.tl-row{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.tl-row:first-child{ border-top:none; }
.tl-tag{ font-family: var(--f-mono); color: var(--gold); font-weight:700; font-size:13px; padding-top:3px; }
.tl-body h4{ margin:0 0 4px; font-size:18px; color: var(--night); }
.tl-date{ font-family: var(--f-mono); color: var(--teal); font-size: 14.5px; }
.tl-row.is-final .tl-date{ color: var(--gold); }
.tl-row.is-final h4{ color: var(--gold); }

/* leadership / speaker cards */
.person{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.person .ph{ aspect-ratio: 1/1; overflow:hidden; background: var(--mist-2); }
.person .ph img{ width:100%; height:100%; object-fit:cover; }
.person .pbody{ padding: 18px 20px 22px; }
.person .role{ font-family: var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; color: var(--teal); margin-bottom:6px; }
.person h3{ font-size:17.5px; margin:0 0 4px; }
.person .aff{ color: var(--ink-soft); font-size:14px; margin-bottom: 10px; }
.person .nat{ font-family: var(--f-mono); font-size:12px; color: var(--ink-soft); }
.person .pwebsite{ font-family: var(--f-mono); font-size:12.5px; }

.person-noPhoto .ph{
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-display); font-size: 38px; font-weight:700; color: var(--night-2);
  background: var(--mist-2);
}

/* =========================================================
   Committee tables
   ========================================================= */
.cmt-toolbar{
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; margin-bottom: 14px; flex-wrap:wrap;
}
.cmt-search{
  position:relative; flex:1; min-width:240px; max-width:420px;
}
.cmt-search input{
  width:100%;
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 11px 14px 11px 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
}
.cmt-search input:focus{ border-color: var(--teal); }
.cmt-search::before{
  content:"⌕";
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  color: var(--ink-soft); font-size:15px;
}
.cmt-count{ font-family: var(--f-mono); font-size:12.5px; color: var(--ink-soft); }

.cmt-table-wrap{
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--white);
}
table.cmt{ width:100%; border-collapse:collapse; font-size:14.5px; }
table.cmt thead th{
  text-align:left;
  background: var(--night);
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing:.07em;
  text-transform:uppercase;
  padding: 13px 18px;
  position: sticky; top:0;
}
table.cmt td{
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
table.cmt td.t-no{ font-family: var(--f-mono); color: var(--gold); width: 50px; }
table.cmt tbody tr:nth-child(even){ background: var(--mist); }
table.cmt tbody tr.is-hidden{ display:none; }
.cmt-affiliation{ color: var(--ink-soft); }

.leadership-row{ margin-bottom: 30px; }

/* =========================================================
   Fee table
   ========================================================= */
table.fees{ width:100%; border-collapse:collapse; background:var(--white); border:1px solid var(--line); border-radius:4px; overflow:hidden;}
table.fees th{ text-align:left; background:var(--night); color:var(--white); font-family:var(--f-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; padding:14px 20px;}
table.fees td{ padding:16px 20px; border-top:1px solid var(--line); font-size:15.5px;}
table.fees td.fee-amt{ font-family:var(--f-mono); color:var(--gold); font-weight:600; font-size:17px;}
table.fees tr:nth-child(even) td{ background: var(--mist); }

/* =========================================================
   Banner / callout
   ========================================================= */
.callout{
  background: var(--mist-2);
  border-left: 3px solid var(--gold);
  padding: 18px 22px;
  border-radius: 2px;
  font-size: 15px;
  color: var(--ink-soft);
}
.callout strong{ color: var(--night); }

.split{
  display:grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
@media (max-width: 860px){ .split{ grid-template-columns:1fr; gap:32px; } }

/* organized-by strip */
.orgby{ background: var(--mist-2); }
.orgby .grid{ align-items:start; }
.orgby .org-item{ font-family: var(--f-mono); font-size: 13.5px; line-height:1.5; color: var(--ink-soft); padding: 18px 0; border-top: 1px solid var(--line); }
.orgby .org-item:first-child{ border-top:none; }
.orgby .org-item b{ color: var(--night); display:block; font-family: var(--f-body); font-size:15px; margin-bottom:3px; }

/* coming soon badge */
.soon{
  display:inline-block;
  font-family: var(--f-mono); font-size:10.5px; letter-spacing:.07em; text-transform:uppercase;
  color: var(--gold); border: 1px solid var(--gold-light); border-radius: 20px;
  padding: 2px 9px; margin-left: 8px; vertical-align: middle;
}

/* links list (useful links / not-yet-live) */
.linklist{ list-style:none; padding:0; margin:0; }
.linklist li{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 0; border-top:1px solid var(--line); gap: 12px;
}
.linklist li:first-child{ border-top:none; }
.linklist .ll-label{ font-size:15.5px; color: var(--ink); }

/* =========================================================
   Footer
   ========================================================= */
footer.site{
  background: var(--night);
  color: rgba(255,255,255,.7);
  padding: 64px 0 28px;
}
footer.site .container{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
}
footer.site h4{
  color: var(--white); font-family: var(--f-mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; margin-bottom:16px;
}
footer.site a{ color: rgba(255,255,255,.7); }
footer.site a:hover{ color: var(--teal-light); }
footer.site p{ font-size: 14.5px; }
footer.site ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; font-size:14.5px; }
.foot-bottom{
  margin-top: 48px; padding-top:24px; border-top:1px solid var(--line-night);
  font-family: var(--f-mono); font-size: 12px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}
.foot-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.foot-brand img{ height:38px; }
.foot-brand span{ font-family: var(--f-display); color:var(--white); font-weight:700; font-size:15px; }

@media (max-width: 860px){
  footer.site .container{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px){
  footer.site .container{ grid-template-columns: 1fr; }
}

.ieee-item {
    text-align: center;
}

.ieee-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 12px;
}

.ieee-logos img {
    height: 34px;
    width: auto;
    display: block;
}

.ieee-item {
    grid-column: 2 / 4;
    text-align: center;
}

/* utility */
.text-center{ text-align:center; }
.mt-0{ margin-top:0; }
.muted{ color: var(--ink-soft); }
.small{ font-size: 13.5px; }
.tag-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;}
