:root{
  --ink:#1c1a17;
  --paper:#faf8f5;
  --line:#d8d3cb;
  --muted:#8a8377;
  /* Helvetica Now / Metropolitser Heb / NarkisBlockMF / Lovely May Font Duo
     are commercial fonts, not available on a free CDN. Close free stand-ins
     are used below until the licensed font files can be embedded via @font-face. */
  --font-en:'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-he-heading:'Rubik', sans-serif;
  --font-he-body:'Heebo', sans-serif;
  /* logotype font: closest free match to the supplied "one.54" mark
     (thin geometric sans with fully circular o/e) */
  --font-logo:'Poppins', sans-serif;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-he-body);
  font-weight:300;
  line-height:1.7;
}
h1,h2,h3{
  font-family:var(--font-he-heading);
  font-weight:500;
  letter-spacing:0.01em;
}
h2.latin, h1.latin, .logo, .latin{
  font-family:var(--font-en);
  letter-spacing:0.06em;
}
.logo, .logo-hero{
  font-family:var(--font-logo);
  font-weight:300;
  text-transform:lowercase;
}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
button{ font-family:inherit; }

/* header */
header{
  position:fixed; top:0; right:0; left:0; z-index:50;
  display:flex; justify-content:space-between; align-items:center;
  padding:22px 6vw;
  background:transparent;
  border-bottom:1px solid var(--line);
  transition:background-color .3s ease;
}
header.scrolled{
  background:var(--paper);
}
.section-divider{
  max-width:1300px;
  margin:0 auto;
  border:none;
  border-top:1px solid var(--line);
}
.logo{ font-size:1.15rem; letter-spacing:0.14em; }
.logo-link{ display:block; }
.logo-img{ height:22px; width:auto; display:block; }
nav{display:flex; gap:34px; font-size:0.92rem; color:var(--muted); font-family:var(--font-he-body);}
nav a:hover{ color:var(--ink); }

/* hero */
.hero{
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  text-align:center;
  padding:150px 8vw 20px;
}
.logo-hero{
  font-size:clamp(2.6rem, 7vw, 4.4rem);
  letter-spacing:0.16em;
  line-height:1;
  margin-bottom:0;
}
.byline{
  font-size:clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing:0.22em;
  line-height:1.2;
  color:var(--muted);
  margin-top:10px;
  margin-bottom:26px;
}
.hero-sub{
  font-size:1.05rem;
  color:var(--muted);
  letter-spacing:0.03em;
}
.logo-hero-img{
  width:min(30vw, 230px);
  height:auto;
  margin-bottom:22px;
}

section{ padding:70px 8vw; }
#about{ padding-top:76px; }
.section-title{
  font-size:0.85rem;
  letter-spacing:0.25em;
  color:var(--muted);
  text-transform:uppercase;
  margin-bottom:60px;
  text-align:center;
  font-family:var(--font-he-body);
}
.section-title.latin{ font-family:var(--font-en); letter-spacing:0.28em; }
.section-title.big{
  font-size:clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing:0.02em;
  text-transform:none;
  color:var(--ink);
  font-family:var(--font-he-heading);
  font-weight:500;
  margin-bottom:50px;
}

/* about */
.about-grid{
  max-width:1080px;
  margin:0 auto;
  display:grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap:38px;
  align-items:stretch;
}
.about-photo{ height:100%; overflow:visible; position:relative; }
.about-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:0% 0%; display:block; }
.about-photo .photo-mobile{ display:none; }
.about-text{ display:flex; flex-direction:column; height:100%; }
.about-text h2{ font-size:clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom:32px; margin-top:0; }
.about-text p{ font-size:1.05rem; color:#3a362f; margin-bottom:20px; text-align:justify; text-align-last:right; }
.about-text p:last-child{ margin-bottom:0; }
@media (max-width: 760px){
  .about-grid{ grid-template-columns:0.8fr 1.2fr; gap:16px; align-items:stretch; }
  .about-photo{ height:100%; }
  .about-photo .photo-desktop{ display:none; }
  .about-photo .photo-mobile{ display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:78% center; }
  .about-text h2{ font-size:1.4rem; margin-bottom:16px; }
  .about-text p{ font-size:0.86rem; line-height:1.65; margin-bottom:12px; }
}

/* home tiles */
.tiles{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  max-width:1300px;
  margin:0 auto;
}
@media (max-width:760px){ .tiles{ grid-template-columns:1fr; } }

.tile{
  position:relative;
  display:block;
  aspect-ratio: 4 / 3;
  overflow:hidden;
  background:#111;
}
.tile img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition:transform .7s ease;
}
.tile.tile-amuda img{ object-position:100% 0%; }
.tile.tile-jusa img{ object-position:0% 50%; }
.tile.tile-fugue img{ object-position:50% 40%; }

#work .tiles{ grid-template-columns:repeat(3, 1fr); }
@media (max-width:980px){ #work .tiles{ grid-template-columns:1fr 1fr; } }
@media (max-width:760px){ #work .tiles{ grid-template-columns:1fr; } }
.tile::after{
  content:'';
  position:absolute; inset:0;
  background:rgba(18,16,14,0);
  transition:background .45s ease;
}
.tile:hover::after{ background:rgba(18,16,14,0.58); }
.tile:hover img{ transform:scale(1.045); }
.tile-caption{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:10px;
  color:#f6f3ee;
  opacity:0;
  transition:opacity .45s ease;
  text-align:center;
  padding:20px;
}
.tile:hover .tile-caption{ opacity:1; }
.tile-caption .t-title{
  font-family:var(--font-en);
  font-size:clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing:0.1em;
}
.tile-caption .t-sub{
  font-family:var(--font-he-body);
  font-size:0.95rem;
  letter-spacing:0.02em;
}

/* detail page header */
.detail-hero{ padding:150px 8vw 10px; max-width:900px; margin:0 auto; text-align:center; }
.detail-hero .project-logo-img{ height:44px; width:auto; margin:0 auto 22px; }
.detail-hero h1{ font-size:clamp(2rem, 4.4vw, 2.9rem); font-weight:600; margin-bottom:22px; }
.detail-hero .detail-subtitle{
  display:inline-block;
  font-size:1.02rem;
  color:var(--ink);
  border-bottom:1px solid var(--ink);
  padding-bottom:5px;
  font-family:var(--font-he-body);
}

.detail-paragraph{
  max-width:920px;
  margin:30px auto 0;
  font-size:1.08rem;
  line-height:1.9;
  color:#3a362f;
  padding:0 8vw;
  text-align:justify;
  text-align-last:right;
}

.materials{
  max-width:1100px;
  margin:90px auto 0;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:0 8vw;
}
.materials img, .materials video{
  width:100%;
  height:auto;
  display:block;
  background:#000;
}
.materials button.cell{ all:unset; display:block; cursor:pointer; width:100%; }
.materials .ratio-43{ aspect-ratio:4/3; object-fit:contain; background:var(--paper); }

/* also-like bar */
.also-like{
  margin-top:150px;
  border-top:1px solid var(--line);
  padding:80px 8vw 0;
  text-align:center;
}
.also-like .section-title{ margin-bottom:40px; }
.also-like .tiles{ max-width:900px; grid-template-columns:1fr 1fr; }

/* contact */
#contact{ text-align:center; padding-bottom:150px; }
#contact h2{ font-size:clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom:30px; }
.contact-links{ display:flex; flex-direction:column; gap:14px; align-items:center; font-size:1.05rem; }
.contact-links a{ border-bottom:1px solid var(--line); padding-bottom:2px; transition:border-color .25s; }
.contact-links a:hover{ border-color:var(--ink); }

.contact-icons{
  display:flex; justify-content:center; align-items:center; gap:26px;
}
.contact-icons a{
  width:48px; height:48px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid var(--line);
  border-radius:50%;
  color:var(--ink);
  transition:border-color .25s, background-color .25s, color .25s;
}
.contact-icons a:hover{
  border-color:var(--ink);
  background:var(--ink);
  color:var(--paper);
}
.contact-icons svg{
  width:20px; height:20px;
  fill:currentColor;
}

footer{
  text-align:center; padding:34px 8vw; border-top:1px solid var(--line);
  color:var(--muted); font-size:0.8rem; letter-spacing:0.06em;
}

/* scroll reveal */
.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity 1s cubic-bezier(.16,.8,.24,1), transform 1s cubic-bezier(.16,.8,.24,1);
}
.reveal.is-visible{
  opacity:1;
  transform:translateY(0);
}
.tiles .tile.reveal:nth-child(2){ transition-delay:.08s; }
.tiles .tile.reveal:nth-child(3){ transition-delay:.16s; }
.materials > *.reveal:nth-child(2){ transition-delay:.06s; }
.materials > *.reveal:nth-child(3){ transition-delay:.12s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* lightbox */
.lightbox{
  position:fixed; inset:0; background:rgba(18,16,14,0.95);
  display:none; align-items:center; justify-content:center;
  z-index:300; padding:6vh 6vw;
}
.lightbox.open{ display:flex; }
.lightbox img{ max-width:100%; max-height:100%; object-fit:contain; }
.lightbox-close{
  all:unset; position:fixed; top:26px; left:26px; cursor:pointer;
  color:#f4f1ec; font-size:2rem; line-height:1; font-family:var(--font-en);
}

/* ===== mobile ===== */
@media (max-width:760px){
  header{ padding:16px 6vw; }
  .logo{ font-size:1rem; }
  .logo-img{ height:17px; }
  nav{ gap:18px; font-size:0.8rem; }

  .hero{ padding:120px 6vw 16px; }
  .logo-hero{ font-size:2.4rem; letter-spacing:0.1em; }
  .logo-hero-img{ width:42vw; margin-bottom:16px; }
  .byline{ font-size:0.78rem; letter-spacing:0.16em; }
  .hero-sub{ font-size:0.92rem; }

  section{ padding:50px 6vw; }
  #about{ padding-top:40px; }
  .section-title{ margin-bottom:36px; }
  .section-title.big{ font-size:1.4rem; margin-bottom:32px; }

  .tile::after{ transition:background .6s ease; }
  .tile.in-view::after{ background:rgba(18,16,14,0.58); }
  .tile-caption{ transition:opacity .6s ease; }
  .tile.in-view .tile-caption{ opacity:1; }

  .detail-hero{ padding:120px 6vw 8px; }
  .detail-hero .project-logo-img{ height:32px; }
  .detail-paragraph{ margin-top:18px; padding:0 6vw; font-size:1rem; }
  .materials{ margin-top:50px; padding:0 6vw; gap:18px; }

  .also-like{ margin-top:90px; padding:56px 6vw 0; }

  #contact{ padding-bottom:90px; }
  #contact h2{ font-size:1.4rem; margin-bottom:20px; }

  footer{ padding:26px 6vw; }
}
