:root,[data-theme="light"]{
      --text-xs:clamp(.75rem,.7rem + .25vw,.875rem);
      --text-sm:clamp(.875rem,.8rem + .35vw,1rem);
      --text-base:clamp(1rem,.95rem + .25vw,1.125rem);
      --text-lg:clamp(1.125rem,1rem + .75vw,1.5rem);
      --text-xl:clamp(1.5rem,1.2rem + 1.25vw,2.25rem);
      --text-2xl:clamp(2rem,1.2rem + 2.5vw,3.5rem);
      --text-3xl:clamp(2.5rem,1rem + 4vw,5rem);
      --space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-5:1.25rem;--space-6:1.5rem;--space-8:2rem;--space-10:2.5rem;--space-12:3rem;--space-16:4rem;--space-20:5rem;--space-24:6rem;
      --color-bg:#f6f2ec;--color-surface:#fbf9f5;--color-surface-2:#f3ede4;--color-surface-offset:#ece5da;--color-border:rgba(42,37,29,.12);
      --color-text:#1f1a14;--color-text-muted:#655f57;--color-text-faint:#9f968b;--color-text-inverse:#f6f2ec;
      --color-primary:#173a52;--color-primary-hover:#102c40;--color-gold:#b48a49;--color-gold-soft:#e9dcc5;
      --radius-sm:.375rem;--radius-md:.75rem;--radius-lg:1rem;--radius-xl:1.5rem;--radius-full:9999px;
      --shadow-sm:0 1px 2px rgba(29,24,17,.05);--shadow-md:0 10px 30px rgba(29,24,17,.08);--shadow-lg:0 30px 80px rgba(17,18,25,.12);
      --font-body:'Satoshi',Inter,sans-serif;--font-display:'Boska',Georgia,serif;
      --content-wide:1200px;--content-default:1080px;
    }
    [data-theme="dark"]{
      --color-bg:#12100e;--color-surface:#171412;--color-surface-2:#1e1a17;--color-surface-offset:#221d19;--color-border:rgba(240,232,221,.1);
      --color-text:#eee6dc;--color-text-muted:#b2a79b;--color-text-faint:#7f756c;--color-text-inverse:#15120f;
      --color-primary:#9ebdd3;--color-primary-hover:#c6d9e7;--color-gold:#d8b37a;--color-gold-soft:#3a2d1f;
      --shadow-sm:0 1px 2px rgba(0,0,0,.25);--shadow-md:0 10px 30px rgba(0,0,0,.3);--shadow-lg:0 30px 80px rgba(0,0,0,.4);
    }
    *,*:before,*:after{box-sizing:border-box;margin:0;padding:0}
    html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
    body{min-height:100vh;font-family:var(--font-body);font-size:var(--text-base);background:var(--color-bg);color:var(--color-text);line-height:1.6}
    img,svg{display:block;max-width:100%}
    a{color:inherit;text-decoration:none}
    button{font:inherit;border:0;background:none;color:inherit;cursor:pointer}
    :focus-visible{outline:2px solid var(--color-primary);outline-offset:3px;border-radius:var(--radius-sm)}
    .container{width:min(100% - 2rem,var(--content-default));margin-inline:auto}
    .skip-link{position:absolute;left:-999px;top:auto}.skip-link:focus{left:1rem;top:1rem;background:var(--color-surface);padding:.75rem 1rem;z-index:1000}
    .site-header{position:sticky;top:0;z-index:20;backdrop-filter:blur(18px);background:color-mix(in srgb,var(--color-bg) 72%, transparent);border-bottom:1px solid var(--color-border)}
    .nav{display:flex;align-items:center;justify-content:space-between;padding:1rem 0;gap:1rem}
    .brand{display:flex;align-items:center;gap:.85rem;font-size:var(--text-sm);letter-spacing:.08em;text-transform:uppercase}
    .brand svg{width:34px;height:34px;color:var(--color-primary)}
    .nav-links{display:flex;gap:1.25rem;align-items:center;flex-wrap:wrap}
    .nav-links a{font-size:var(--text-sm);color:var(--color-text-muted)}
    .theme-toggle,.cta-btn,.ghost-btn{min-height:44px;padding:.8rem 1.1rem;border-radius:var(--radius-full);border:1px solid var(--color-border);transition:.2s ease}
    .theme-toggle:hover,.ghost-btn:hover{background:var(--color-surface-2)}
    .cta-btn{background:var(--color-primary);color:var(--color-text-inverse);border-color:transparent}
    .cta-btn:hover{background:var(--color-primary-hover)}
   .hero{
  padding:clamp(3rem,7vw,6rem) 0 3rem;
}

.hero-shell{
  background:var(--color-surface);
  border:1px solid var(--color-border);
  border-radius:36px;
  overflow:hidden;
  box-shadow:var(--shadow-lg);
}

.hero-top{
  position:relative;
  min-height:440px;
  display:flex;
  align-items:flex-end;
  padding:clamp(1.5rem,3vw,2.5rem);
  background:
  url("./images/hero_image_01.jpg") 54% center / cover no-repeat;
}

.hero-top-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      90deg,
      rgba(14,16,20,.88) 0%,
      rgba(14,16,20,.72) 28%,
      rgba(14,16,20,.42) 52%,
      rgba(14,16,20,.10) 76%,
      rgba(14,16,20,0) 100%
    );
}

.hero-top-copy{
  position:relative;
  z-index:1;
  max-width:560px;
  color:#f6f2ec;
}

.hero-top-copy .eyebrow{
  color:rgba(246,242,236,.78);
  margin-bottom:.85rem;
}

.hero-top-copy h1{
  font-family:var(--font-display);
  font-size:clamp(2.8rem,5vw,5.2rem);
  line-height:.94;
  letter-spacing:-.03em;
  max-width:10ch;
  margin-bottom:1rem;
}

.hero-top-copy p{
  color:rgba(246,242,236,.84);
  max-width:56ch;
  font-size:var(--text-base);
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.85rem;
  margin-top:1.5rem;
}

.hero-ghost{
  background:rgba(246,242,236,.08);
  border-color:rgba(246,242,236,.18);
  color:#f6f2ec;
}

.hero-ghost:hover{
  background:rgba(246,242,236,.14);
}

.hero-bottom{
  display:grid;
  grid-template-columns:minmax(280px,1fr) minmax(320px,420px);
  border-top:1px solid var(--color-border);
  background:var(--color-surface);
}

.hero-meta{
  padding:0 1.5rem;
  display:grid;
  align-content:stretch;
}

.stat{
  padding:1.2rem 0;
  border-top:1px solid var(--color-border);
}

.stat:first-child{
  border-top:0;
}

.stat strong{
  display:block;
  font-size:clamp(1.6rem,2vw,2.15rem);
  font-weight:700;
  color:var(--color-text);
  margin-bottom:.2rem;
}

.stat span{
  font-size:var(--text-sm);
  color:var(--color-text-muted);
  max-width:28ch;
}

.portrait-card{
  position:relative;
  min-height:100%;
  padding:1.5rem;
  border-left:1px solid var(--color-border);
  background:
    linear-gradient(155deg,var(--color-surface),var(--color-surface-2));
  overflow:hidden;
}

.portrait-card--stacked{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:1.25rem;
}

.portrait-card--stacked::before{
  content:"";
  position:absolute;
  inset:auto -8% 58% 18%;
  height:180px;
  background:radial-gradient(circle,var(--color-gold-soft),transparent 65%);
  opacity:.9;
  pointer-events:none;
}

.portrait-stack{
  position:relative;
  z-index:1;
  display:grid;
  gap:1rem;
  margin-top:.25rem;
}

.reference-pill{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:56px 1fr;
  align-items:center;
  gap:.9rem;
  min-height:88px;
  padding:.95rem 1rem;
  border-radius:999px;
  border:1px solid color-mix(in srgb,var(--color-primary) 18%, transparent);
  background:
    linear-gradient(135deg, rgba(23,58,82,.10), rgba(180,138,73,.08)),
    var(--color-surface-2);
  box-shadow:var(--shadow-sm);
}

.reference-avatar{
  width:56px;
  height:56px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid rgba(255,255,255,.55);
  box-shadow:0 2px 10px rgba(17,18,25,.12);
}

.reference-copy{
  min-width:0;
}

.reference-copy strong{
  display:block;
  font-size:var(--text-sm);
  line-height:1.1;
  margin-bottom:.18rem;
  color:var(--color-text);
}

.reference-copy p{
  font-size:var(--text-xs);
  line-height:1.35;
  color:var(--color-text-muted);
  margin:0;
  max-width:30ch;
}

.portrait-pill span{
  font-size:var(--text-sm);
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--color-text-muted);
}

.skills-panel{
  width:100%;
  max-width:none;
}

.skills-panel-head{
  margin-bottom:.95rem;
}

.skills-panel-head strong{
  display:block;
  font-size:1rem;
  margin-bottom:.2rem;
}

.skills-panel-head span{
  display:block;
  font-size:var(--text-xs);
  color:var(--color-text-muted);
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem;
}

.service-card{
  display:flex;
  flex-direction:column;
  gap:.7rem;
  min-height:100%;
  padding:1rem;
  border-radius:20px;
  background:color-mix(in srgb,var(--color-surface) 84%, transparent);
  border:1px solid color-mix(in srgb,var(--color-primary) 14%, transparent);
  box-shadow:var(--shadow-sm);
}

.service-kicker{
  display:inline-block;
  font-size:var(--text-xs);
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--color-text-muted);
}

.service-card h3{
  font-size:var(--text-sm);
  line-height:1.35;
  color:var(--color-text);
}

.service-card p{
  font-size:var(--text-xs);
  line-height:1.5;
  color:var(--color-text-muted);
  max-width:none;
}

.service-list{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem;
  margin:0;
  padding:0;
}

.service-list li{
  padding:.4rem .65rem;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(23,58,82,.08), rgba(180,138,73,.08));
  border:1px solid color-mix(in srgb,var(--color-primary) 14%, transparent);
  font-size:var(--text-xs);
  color:var(--color-text);
}

.portrait-identity strong{
  display:block;
  font-size:1.1rem;
  margin-bottom:.2rem;
}

.portrait-identity span{
  display:block;
  font-size:var(--text-sm);
  color:var(--color-text-muted);
}


  

  @media (max-width: 980px){
  .hero-top{
    min-height:400px;
    background-position: 54% center;
  }

  .hero-bottom{
    grid-template-columns:1fr;
  }

  .portrait-card{
    border-left:0;
    border-top:1px solid var(--color-border);
  }

  .portrait-pill{
    min-height:74px;
  }
}

@media (max-width: 640px){
  .hero-top-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(14,16,20,.84) 0%,
        rgba(14,16,20,.58) 46%,
        rgba(14,16,20,.18) 100%
      );
  }
}

  .hero-top-copy h1{
    max-width:11ch;
  }

  .hero-bottom{
    grid-template-columns:1fr;
  }

  .portrait-card{
    border-left:0;
    border-top:1px solid var(--color-border);
  }

  .portrait-pill{
    min-height:74px;
  }
}
    .stat{padding:1rem 0;border-top:1px solid var(--color-border)}
    .stat strong{display:block;font-size:var(--text-lg);font-weight:700;color:var(--color-text)}
    .stat span{font-size:var(--text-sm);color:var(--color-text-muted)}
    .portrait-card{position:relative;background:linear-gradient(155deg,var(--color-surface),var(--color-surface-2));border:1px solid var(--color-border);border-radius:32px;padding:1.25rem;box-shadow:var(--shadow-lg);overflow:hidden;min-height:560px}
    .portrait-card:before{content:"";position:absolute;inset:auto -10% 62% 22%;height:220px;background:radial-gradient(circle,var(--color-gold-soft),transparent 62%);opacity:.9}
    .portrait-card:after{content:"";position:absolute;inset:18px;border:1px solid color-mix(in srgb,var(--color-primary) 18%, transparent);border-radius:24px;pointer-events:none}
    .portrait{height:100%;border-radius:24px;background:
      radial-gradient(circle at 70% 25%, rgba(180,138,73,.38), transparent 20%),
      linear-gradient(160deg, rgba(23,58,82,.95), rgba(34,28,22,.94));
      display:flex;align-items:flex-end;padding:1.5rem;position:relative;overflow:hidden}
    .portrait .shape{position:absolute;border-radius:999px;border:1px solid rgba(255,255,255,.18)}
    .shape.one{width:300px;height:300px;top:-80px;right:-70px}.shape.two{width:220px;height:220px;bottom:40px;left:-90px}
    .portrait-identity{position:relative;z-index:1;background:rgba(248,242,234,.1);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.16);padding:1rem 1rem;border-radius:20px;color:#f6f2ec;width:100%;
max-width:none;}
    .portrait-identity strong{display:block;font-size:1.1rem}.portrait-identity span{display:block;font-size:var(--text-sm);opacity:.82}
    .work-section{
  padding:clamp(2rem,6vw,5rem) 0;
}

.work-shell{
    border:1px solid var(--color-border);
  border-radius:36px;
  overflow:hidden;
  background:var(--color-surface);
  box-shadow:var(--shadow-lg);
}

.work-top{
  position:relative;
  min-height:360px;
  padding:clamp(1.5rem,3vw,2.5rem);
  display:flex;
  align-items:flex-start;
  background:
    url("./images/work_image_02.jpg") center 18% / cover no-repeat;
}

.work-top-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      270deg,
      rgba(14,16,20,.88) 0%,
      rgba(14,16,20,.72) 28%,
      rgba(14,16,20,.42) 52%,
      rgba(14,16,20,.10) 76%,
      rgba(14,16,20,0) 100%
    );
}

.work-head{
  position:relative;
  z-index:1;
  width:100%;
  min-height: 300px;
  margin-bottom:0;
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  align-items:start;
}

.work-head-copy{
  justify-self:end;
  text-align:right;
  max-width:450px;
  width:100%;
  padding:clamp(1rem,2vw,1.5rem);
  
}

.work-head-copy h2{
  margin-bottom:.85rem;
  align-content: left;
  
}

.work-bottom{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:1rem;
  padding:1rem;
  background:var(--color-surface);
}

.work-copy-card,
.work-logo-card{
  min-height:100%;
  border-radius:28px;
}

.work-copy-card{
  padding:1.5rem;
}

.work-copy-card h3,
.work-logo-card h3{
  margin-bottom:.9rem;
}

.work-copy-card p + p{
  margin-top:.9rem;
}

.work-logo-card{
  padding:1.5rem;
}

.work-logo-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:.85rem;
  margin-top:1rem;
}

.work-logo-flip{
  perspective:1000px;
  min-height:88px;
}

.work-logo-flip-inner{
  position:relative;
  width:100%;
  height:100%;
  min-height:88px;
  transform-style:preserve-3d;
  transition:transform .7s cubic-bezier(.16,1,.3,1);
}

.work-logo-flip:hover .work-logo-flip-inner{
  transform:rotateY(180deg);
}

.work-logo-face{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.9rem;
  border-radius:18px;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  border:1px solid var(--color-border);
}

.work-logo-front{
  background:var(--color-surface-2);
}

.work-logo-front img{
  display:block;
  width:auto;
  height:auto;
  max-width:120px;
  max-height:34px;
  object-fit:contain;
  filter:grayscale(100%) brightness(.78) contrast(1.02);
  opacity:.95;
}

.work-logo-back{
  background:var(--color-primary);
  color:var(--color-text-inverse);
  transform:rotateY(180deg);
  text-align:center;
}

.work-logo-back span{
  font-size:var(--text-sm);
  font-weight:600;
  line-height:1.3;
}

.work-logo-box{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:18px;
  border:1px solid var(--color-border);
  background:var(--color-surface-2);
  padding:.9rem;
}

.work-logo-box img{
  display:block;
  width:auto;
  height:auto;
  max-width:140px;
  max-height:60px;
  object-fit:contain;
  filter:grayscale(100%) brightness(.82) contrast(1);
  opacity:.95;
}

.timeline-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:.85rem;
}

.timeline-logo{
  width:auto;
  height:auto;
  max-width:110px;
  max-height:26px;
  object-fit:contain;
  filter:grayscale(100%) brightness(.72) contrast(1.05);
  opacity:.9;
}

.experience-head{
  position: relative;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: end;
  gap: 2rem;
  min-height: 260px;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: url("./images/experience_image_03.jpg") center 35% / cover no-repeat;
}

.experience-head{
  position: relative;
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: end;
  gap: 2rem;
  min-height: 260px;
  margin-bottom: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: url("./images/experience_image_03.jpg") center 35% / cover no-repeat;
}

.experience-head::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10,11,14,.18) 0%,
    rgba(10,11,14,.28) 34%,
    rgba(10,11,14,.58) 64%,
    rgba(10,11,14,.84) 100%
  );
  z-index: 0;
}

.experience-head-copy,
.experience-head-text{
  position: relative;
  z-index: 1;
}

.experience-head-copy{
  align-self: start;
  text-align: right
}

.experience-head-text{
  justify-self: end;
  width: 100%;
  max-width: 520px;
  text-align: right;
}

.experience-head .eyebrow{
  display: inline-block;
  margin-bottom: .8rem;
  color: rgba(246,242,236,.78);
}

.experience-head h2{
  margin: 0;
  color: #f6f2ec;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: .98;
  max-width: 10ch;
}

.experience-head-text p{
  margin: 0;
  color: rgba(246,242,236,.88);
  max-width: 52ch;
  margin-left: auto;
}

@media (max-width: 980px){
  .experience-head{
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 220px;
  }

  .experience-head h2{
    max-width: none;
  }

  .experience-head-text{
    justify-self: start;
    max-width: none;
  }
}
 
    .timeline{display:grid;gap:1rem}
    .timeline-item{display:grid;grid-template-columns:160px 1fr;gap:1rem;padding:1.25rem;border-top:1px solid var(--color-border);background:color-mix(in srgb,var(--color-surface) 88%, transparent);border-radius:22px}
    .timeline-item:first-child{border-top:0}
    .timeline-item time{font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.12em;color:var(--color-text-muted)}
    .timeline-item h3{margin-bottom:.35rem}
    .badge{display:inline-flex;align-items:center;gap:.5rem;padding:.45rem .8rem;border-radius:999px;background:var(--color-gold-soft);color:var(--color-text);font-size:var(--text-xs);letter-spacing:.08em;text-transform:uppercase;margin-bottom:.9rem}
    .process-band{background:var(--color-primary);color:var(--color-text-inverse);border-radius:36px;padding:clamp(1.5rem,4vw,2.5rem)}
    .process-band .steps{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.25rem}
    .process-band .step{padding-top:1rem;border-top:1px solid rgba(246,242,236,.18)}
    .process-band p,.process-band .step p{color:rgba(246,242,236,.78)}
    .footer-card{display:flex;justify-content:space-between;gap:2rem;align-items:end;background:var(--color-surface);border:1px solid var(--color-border);border-radius:32px;padding:1.5rem}
    .footer-card p{color:var(--color-text-muted);max-width:55ch}
    .small{font-size:var(--text-sm)}
    @media (max-width: 980px){
      .hero-grid,.section-head,.footer-card{grid-template-columns:1fr;display:grid}
      .hero-meta,.process-band .steps{grid-template-columns:1fr}
      .signature-grid .card,.experience-grid,.signature-grid{display:grid;grid-template-columns:1fr}
      .signature-grid .card{grid-column:auto}
      .logo-strip{grid-template-columns:repeat(2,1fr)}
      .timeline-item{grid-template-columns:1fr}
      h1{max-width:12ch}
      .portrait-card{min-height:420px}
      .nav-links{display:none}
    }

@media (max-width: 640px){
  .reference-pill{
    grid-template-columns:48px 1fr;
    gap:.75rem;
    min-height:82px;
    padding:.85rem .95rem;
  }

  .reference-avatar{
    width:48px;
    height:48px;
  }

  .reference-copy p{
    max-width:none;
  }
}


@media (max-width: 640px){
  .skills-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .skill-box{
    min-height:54px;
  }
}

@media (max-width: 980px){
  .work-head{
    grid-template-columns:1fr;
  }

  .work-head-copy{
    justify-self:start;
    max-width:none;
  }

  .work-bottom{
    grid-template-columns:1fr;
  }
}

@media (max-width: 640px){
  .work-top{
    min-height:320px;
    background-position:center 14%;
  }

  .work-logo-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .work-logo-box{
    min-height:72px;
  }
}

@media (hover: none){
  .work-logo-flip:hover .work-logo-flip-inner{
    transform:none;
  }

  .work-logo-flip-inner{
    min-height:76px;
  }

  .work-logo-back{
    display:none;
  }

  .work-logo-face{
    position:relative;
  }
}


