:root{
  --bg:#0b0c10;
  --panel:#1f1f1f;
  --text:#f4f4f6;
  --muted:#b7b7c2;
  --line:rgba(255,255,255,.10);
  --accent:#7dd3fc;
  --radius:16px;
  --max:1040px;
  --pad:24px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Word cloud - home page*/
.philosophy{
  position: relative;
  height: 1.4em;
  margin: 12px 0 22px;
  font-size: 36px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.philosophy-line{
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, 6px);
  opacity: 0;
  transition: opacity 800ms ease, transform 800ms ease;
  white-space: nowrap;
}

.philosophy-line.is-active{
  opacity: 1;
  transform: translate(-50%, 0);
  color: var(--accent);
}
.two-col-home{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 64px;
  margin-top: 18px;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .philosophy-line{
    transition: none;
    opacity: 0;
  }
  .philosophy-line.is-active{
    opacity: 1;
  }
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height:1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--accent); }

.container{
  width: min(var(--max), calc(100% - 2*var(--pad)));
  margin: 0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left: var(--pad);
  top: var(--pad);
  width:auto;
  height:auto;
  background: var(--panel);
  border:1px solid var(--line);
  padding:10px 12px;
  border-radius: 10px;
  z-index: 999;
}

.site-header{
  position: sticky;
  top:0;
  backdrop-filter: blur(10px);
  background: rgba(11,12,16,.70);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 700;
  letter-spacing:.2px;
}
.brand-mark {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.9;
}
.brand-text{ color: var(--text); }

.site-nav{
  display:flex;
  gap:16px;
  align-items:center;
}
.site-nav a{
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}
.site-nav a[aria-current="page"]{
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}

.nav-toggle{
  display:none;
  background: var(--panel);
  color: var(--text);
  border:1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.hero{
  padding: 54px 0 26px;
}
.hero-title{
  font-size: clamp(34px, 4vw, 54px);
  margin: 0 0 10px;
}
.hero-subtitle{
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 18px;
}
.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.section{
  padding: 26px 0 0;
}
.section-tight{
  margin-top: 26px;
}
.section-title{
  margin: 0 0 10px;
  font-size: 28px;
}
.section-subtitle{
  margin: 0 0 18px;
  color: var(--muted);
}

.btn, .btn-ghost{
  transition: all 180ms ease-out;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--text);
  color: #111;
  font-weight: 650;
}
.btn:hover{ 
  color: #111; 
  background-color: var(--accent); 
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover{ 
  color: #111; 
  background-color: var(--accent); 
}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-3{
  grid-template-columns: repeat(3, 1fr);
}

.card{
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.card-link{ display:block; height:100%; }
.card-body{ padding: 16px; }
.card h3{ margin: 0 0 6px; font-size: 18px; }
.card p{ margin: 0 0 10px; color: var(--muted); }
.card-meta{ color: var(--muted); font-size: 13px; }

.thumb{
  height: 170px;
  background: linear-gradient(135deg, rgba(125,211,252,.18), rgba(255,255,255,.03));
  border-bottom: 1px solid var(--line);
}

.video-frame{
  margin-top: 18px;
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.video-placeholder{
  height: 420px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(125,211,252,.10));
}

.two-col{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 18px;
}
.two-col h2{ margin: 0 0 8px; font-size: 18px; }
.two-col p{ margin: 0 0 10px; color: var(--muted); }

.breadcrumb{
  display:flex;
  gap:10px;
  align-items:center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.breadcrumb a{ color: var(--muted); }
.breadcrumb a:hover{ color: var(--text); }

.list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.list-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 14px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.list-title{ font-weight: 650; }
.list-meta{ color: var(--muted); font-size: 13px; }

.clean-list{ margin:0; padding-left: 18px; }
.bullets{ margin: 0; padding-left: 18px; }
.muted{ color: var(--muted); }

.pad{ padding: 18px; }

.site-footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(255,255,255,.02);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

/* About page */

.about-hero-inner{
  display:grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items:start;
}

.about-avatar{
  width:300px;
  height:300px;
  border-radius:50%;
  overflow:hidden;
}

.about-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Default hidden state BEFORE JS runs */
.page-about .about-copy{
  opacity: 0;
  transform: translateX(-40px);
}

/* animate in with avatar */
.page-about.about-animating .about-copy{
  transform: translateX(0);
  opacity: 1;
  transition: transform 320ms ease-out, opacity 220ms ease-out;
}

.page-about .about-below{
  transform: translateY(-16px);
  opacity: 0;
}

.page-about.about-flip-done .about-below{
  transform: translateY(0);
  opacity: 1;
  transition: transform 260ms ease-out 120ms, opacity 200ms ease-out 120ms;
}
.page-about.about-flip-done .about-copy{
  opacity: 1;
  transform: translateX(0);
}

/*  keep header avatar hidden on About */
.page-about #brandMark { visibility: hidden; }

/* Slide name left after the morph (triggered by JS class) */
.page-about .brand-text{
  transform: translateX(0);
  transition: transform 220ms ease-out;
}
.page-about.about-flip-done .brand-text{
  transform: translateX(-70px);
}
.about-hero {
  margin-bottom: 48px;
}
.about-hero-inner {
  background: rgba(58,59,56,0.65); /* slightly lifted panel */
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 48px;
}

/* Projects page */
.masonry{
  column-count: 3;
  column-gap: 16px;
}

.tile{
  break-inside: avoid;
  margin: 0 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tile-link{
  display: block;
  padding: 16px;
}

.tile h3{ margin: 10px 0 6px; font-size: 18px; }
.tile p{ margin: 0 0 10px; color: var(--muted); }
.tile-meta{ font-size: 13px; color: var(--muted); }

/* tweak heights per type */
.tile-video .tile-media{ height: 170px; }
.tile-web .tile-media{ height: 220px; }
.tile-print .tile-media{ height: 260px; }
.tile-brand .tile-media{ height: 240px; }

/* “Media” blocks give you different tile heights = masonry feel */
.tile-media{
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.tile-media{
  position: relative;
  height: 200px;          /* REQUIRED */
  overflow: hidden;
  border-radius: 14px;
}

.tile-media img{
  position: absolute;     /* IMPORTANT */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tile-web .tile-media img{
  object-position: top center;
}

/* Projects section */
/* Base state */
.tile-media img,
.artifact-thumb img{
  transition: transform 400ms cubic-bezier(.2,.8,.2,1),
  filter 400ms ease;
}

/* Hover state */
.tile-media:hover img,
.artifact:hover img{
  transform: scale(1.03);
  filter: saturate(0.01);
}
/* Torr */
.artifact-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
  margin-bottom: 24px;
}
.full-width{
  grid-column: 1 / -1;
}
.artifact-thumb{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}

.artifact-thumb img{
  width: 100%;
  height: auto;          /* ← key */
  display: block;
}
.artifact-thumb img{
  object-position: top center;
}

/* Dg-landing Page */
.lp-annotated{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr; /* ~45 / 55 */
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.lp-image img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.lp-callouts h2{
  margin-top: 0;
  font-size: 18px;
}

.callout-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.callout-title{
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.callout-list p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.lp-callouts{
  position: relative;
}
.lp-callouts h3{
  margin-top: 0px;
}

.callout{
  margin-bottom: 32px;
}

.callout-title{
  display: block;
  font-weight: 600;
  margin-bottom: 2px;   /* tighten title → text gap */
}

.callout p{
  margin: 0;            /* remove default p margins */
  color: var(--muted);
  font-size: 14px;
}

/* vertical alignment tuning */
.callout-hero{ margin-top: 90px; }
.callout-cta{ margin-top: 200px; }
.callout-trust{ margin-top: 200px; }
.callout-nav{ margin-top: 190px; }
.callout-flow{ margin-top: 270px; }

.callout::before{
  content:"";
  display:block;
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  margin: 0 0 -24px -36px;
}

.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;   /* modern, clean */
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom:24px;
}

.video-frame video,
.video-frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;

}
.video-frame video{
  object-fit: contain;   /* or cover if you prefer */
}
.web-frame{
  width: 100%;
}

.web-frame img{
  width: 100%;
  height: auto;
  display: block;
}
.pad-top {
  padding-top: 18px;
}
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.75);
  z-index: 2000;
  padding: 24px;
}
.lightbox.is-open{ display: grid; }

.lightbox-img{
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.lightbox-close{
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18,19,26,.8);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(18,19,26,.8);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }

@media (max-width: 700px){
  .lightbox-nav{ width: 40px; height: 40px; }
}
/* mobile */
@media (max-width: 900px){
  .lp-annotated{
    grid-template-columns: 1fr;
  }
}

/* responsive */
@media (max-width: 1100px){
  .masonry{ column-count: 2; }
}
@media (max-width: 900px){
  .about-hero-inner{ grid-template-columns: 1fr; }
  .about-avatar{ width:180px; height:180px; }
}
@media (max-width: 880px){
  .masonry{ column-count: 1; }
}
@media (max-width: 880px){
  .grid{ grid-template-columns: 1fr; }
  .two-col-home{ grid-template-columns: 1fr; }
  .two-col{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }
  .site-nav{
	display:none;
	position:absolute;
	right: var(--pad);
	top: 64px;
	flex-direction: column;
	align-items: stretch;
	background: var(--panel);
	border:1px solid var(--line);
	border-radius: 16px;
	padding: 10px;
	min-width: 220px;
	box-shadow: var(--shadow);
  }
  .site-nav.is-open{ display:flex; }
}
@media (max-width: 768px) {
  .brand-mark {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 900px){
  .callout{ margin-bottom: 32px; }
  .callout-hero,
  .callout-cta,
  .callout-trust,
  .callout-nav,
  .callout-flow{
    margin-top: 44px; /* reset the alignment nudges */
  }

  .lp-callouts h3{ margin-top: 20px; }
}