
:root{
  --bg:#07080a;--panel:rgba(8,10,12,.20);--text:#f2f2f0;--muted:#7f858d;
  --line:rgba(255,255,255,.12);--line-soft:rgba(255,255,255,.07);
  --red:#ff2430;--green:#22e67a;--blue:#1688ff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;touch-action:pan-y}
body{touch-action:pan-y}
img,video{-webkit-user-drag:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
a{color:inherit;text-decoration:none} button,input,textarea{font:inherit} button{color:inherit}
.topbar{position:absolute;z-index:30;top:max(18px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:center;pointer-events:none}
.topbar>*{pointer-events:auto}
.brand{font-size:clamp(17px,1.7vw,24px);font-weight:300;letter-spacing:.36em}
.menu-shell{position:relative;display:flex;flex-direction:column;align-items:flex-end}
.menu-trigger{min-width:118px;min-height:44px;padding:0 14px 0 16px;border:1px solid rgba(255,255,255,.15);background:rgba(8,10,12,.18);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;font-size:9px;letter-spacing:.18em;text-transform:uppercase}
.menu-icon{position:relative;width:16px;height:12px}
.menu-icon span{position:absolute;left:0;width:16px;height:1px;background:#d4d6d8;transition:.2s}
.menu-icon span:first-child{top:3px}.menu-icon span:last-child{top:9px}
.menu-shell.open .menu-icon span:first-child{top:6px;transform:rotate(45deg)}
.menu-shell.open .menu-icon span:last-child{top:6px;transform:rotate(-45deg)}
.site-menu{position:absolute;right:0;top:52px;width:min(280px,calc(100vw - 40px));padding:7px;border:1px solid rgba(255,255,255,.12);background:rgba(8,10,12,.20);backdrop-filter:blur(5px);opacity:0;visibility:hidden;transform:translateY(-7px);pointer-events:none;transition:.2s}
.menu-shell.open .site-menu{opacity:1;visibility:visible;transform:none;pointer-events:auto}
.site-menu a{min-height:52px;padding:0 13px;border-bottom:1px solid var(--line-soft);display:flex;align-items:center;justify-content:space-between;gap:18px;color:#b5b9bf;font-size:11px;letter-spacing:.13em;text-transform:uppercase}
.site-menu a:last-child{border-bottom:0}.site-menu a:hover{color:#fff;background:rgba(255,255,255,.045)}
.site-menu .contact-link{margin-top:7px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#fff}
.menu-arrow{color:#777d85;font-size:14px}
.page-shell{min-height:100vh;background:radial-gradient(circle at 75% 8%,rgba(22,136,255,.07),transparent 25%),radial-gradient(circle at 15% 86%,rgba(255,36,48,.05),transparent 24%),#08090b}
.page-hero{padding:150px clamp(22px,5vw,80px) 72px;border-bottom:1px solid var(--line-soft)}
.eyebrow{color:#858a91;font-size:9px;letter-spacing:.3em;text-transform:uppercase;margin-bottom:18px}
.page-hero h1{margin:0;max-width:1000px;font-size:clamp(50px,8vw,118px);line-height:.9;font-weight:260;letter-spacing:-.055em}
.page-hero p{max-width:680px;margin:28px 0 0;color:#93989f;line-height:1.7;font-size:14px}
.page-content{padding:46px clamp(22px,5vw,80px) 90px}
.section-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}
.section-head h2{margin:0;font-size:clamp(28px,4vw,54px);font-weight:300;letter-spacing:-.035em}
.section-head p{max-width:520px;color:#7f858d;line-height:1.6;font-size:12px}
.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.card{min-height:260px;border:1px solid var(--line);background:linear-gradient(135deg,rgba(255,255,255,.025),transparent 48%),#0b0d10;padding:22px;display:flex;flex-direction:column;justify-content:space-between}
.card .tag{color:#757b83;font-size:9px;letter-spacing:.18em;text-transform:uppercase}
.card h3{margin:auto 0 12px;font-size:24px;font-weight:350}
.card p{margin:0;color:#858a91;font-size:12px;line-height:1.6}
.card .arrow{margin-top:18px;align-self:flex-end;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%}
.card.accent{background:radial-gradient(circle at 85% 15%,rgba(34,230,122,.10),transparent 28%),#0b0d10}
.card.blue{background:radial-gradient(circle at 85% 15%,rgba(22,136,255,.10),transparent 28%),#0b0d10}
.card.red{background:radial-gradient(circle at 85% 15%,rgba(255,36,48,.10),transparent 28%),#0b0d10}
.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px}
.filter{min-height:38px;padding:0 14px;border:1px solid var(--line);background:transparent;cursor:pointer;font-size:9px;letter-spacing:.14em;text-transform:uppercase}
.filter.active{background:#f1f1ef;color:#0a0b0d;border-color:#f1f1ef}
.about-grid,.contact-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}
.about-block,.contact-info,.contact-form{border:1px solid var(--line);background:#0b0d10;padding:30px}
.about-block h2,.contact-info h2,.contact-form h2{font-weight:300;margin-top:0}
.about-block p,.contact-info p{color:#8c9198;line-height:1.7}
.principles{display:grid;gap:1px;background:var(--line-soft)}
.principle{background:#0b0d10;padding:20px}.principle p{margin:7px 0 0;color:#7d8289;font-size:12px}
.form-grid{display:grid;gap:14px}.form-row{display:grid;gap:7px}
.form-row label{font-size:9px;letter-spacing:.14em;text-transform:uppercase;color:#858a91}
.form-row input,.form-row textarea{width:100%;border:1px solid var(--line);background:#090a0c;color:#fff;padding:13px 14px;outline:none}
.form-row textarea{min-height:150px;resize:vertical}
.submit{min-height:44px;border:1px solid #f1f1ef;background:#f1f1ef;color:#0a0b0d;padding:0 18px;cursor:pointer;justify-self:start}
.footer{padding:26px clamp(22px,5vw,80px);border-top:1px solid var(--line-soft);color:#6f747b;font-size:9px;letter-spacing:.14em;text-transform:uppercase;display:flex;justify-content:space-between;gap:20px}
@media(max-width:900px){.card-grid{grid-template-columns:1fr 1fr}.about-grid,.contact-grid{grid-template-columns:1fr}}
@media(max-width:620px){.topbar{top:max(14px,env(safe-area-inset-top));left:14px;right:14px}.brand{font-size:16px}.menu-trigger{min-width:105px;min-height:42px}.page-hero{padding:120px 18px 52px}.page-content{padding:34px 18px 60px}.card-grid{grid-template-columns:1fr}.section-head{align-items:start;flex-direction:column}.footer{padding:22px 18px;flex-direction:column}}


/* MEDIA-DRIVEN PROJECT + TOOL CARDS */
.media-card{
  min-height:390px;
  padding:0;
  overflow:hidden;
}
.card-media{
  position:relative;
  height:220px;
  overflow:hidden;
  border-bottom:1px solid var(--line-soft);
  background:#0a0b0d;
}
.card-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease,filter .5s ease;
}
.media-card:hover .card-media img{transform:none}
.card-media::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,transparent 55%,rgba(7,8,10,.35));
}
.card-body{
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  padding:20px 22px 22px;
}
.card-body h3{margin:34px 0 10px}
.card-body .arrow{margin-top:auto}
.card-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:#676d75;
  font-size:9px;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.project-detail-hero{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:14px;
  padding:140px clamp(22px,5vw,80px) 38px;
}
.project-detail-copy,.project-cover{
  border:1px solid var(--line);
  background:#0b0d10;
}
.project-detail-copy{padding:30px;display:flex;flex-direction:column;justify-content:flex-end}
.project-detail-copy h1{font-size:clamp(42px,6vw,88px);line-height:.94;letter-spacing:-.05em;font-weight:280;margin:14px 0 20px}
.project-detail-copy p{color:#92979e;line-height:1.7}
.project-cover{min-height:500px;overflow:hidden}
.project-cover img{width:100%;height:100%;object-fit:cover}
.project-gallery{
  padding:14px clamp(22px,5vw,80px) 80px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.gallery-image{
  border:1px solid var(--line);
  background:#0b0d10;
  min-height:300px;
  overflow:hidden;
}
.gallery-image img{display:block;width:100%;height:100%;object-fit:cover}
.empty-gallery{
  grid-column:1/-1;
  border:1px solid var(--line);
  min-height:220px;
  display:grid;
  place-items:center;
  color:#777d85;
  text-align:center;
  padding:30px;
}
.launch-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}
.launch-button{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.18);
  font-size:9px;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.launch-button.primary{background:#f1f1ef;color:#090a0c;border-color:#f1f1ef}
@media(max-width:900px){
  .project-detail-hero{grid-template-columns:1fr;padding-top:115px}
  .project-cover{min-height:390px}
}
@media(max-width:620px){
  .card-media{height:190px}
  .media-card{min-height:360px}
  .project-detail-hero{padding:105px 18px 14px}
  .project-detail-copy{padding:22px}
  .project-cover{min-height:300px}
  .project-gallery{padding:0 18px 60px;grid-template-columns:1fr}
}


/* NAROLF SYMBOL LOGO */
.brand-logo{
  display:flex;
  align-items:center;
  width:auto;
  height:46px;
  line-height:0;
}
.brand-logo img{
  display:block;
  width:auto;
  height:100%;
  max-width:92px;
  object-fit:contain;
}
@media(max-width:620px){
  .brand-logo{
    height:38px;
  }
  .brand-logo img{
    max-width:76px;
  }
}


/* PROJECT VIDEO MEDIA */
.gallery-video{
  min-height:320px;
  background:#050607;
  display:grid;
  place-items:center;
}
.gallery-video video{
  display:block;
  width:100%;
  height:100%;
  max-height:760px;
  object-fit:contain;
  background:#050607;
}
@media(max-width:620px){
  .gallery-video{min-height:240px}
}


/* =========================================================
   PROJECTS — SINGLE PAGE + FULLSCREEN MEDIA VIEWER
   ========================================================= */

.project-card-button{
  width:100%;
  color:inherit;
  text-align:left;
  font:inherit;
  cursor:pointer;
}

.project-card-button:focus-visible{
  outline:2px solid rgba(255,255,255,.9);
  outline-offset:3px;
}

body.lightbox-open{
  overflow:hidden;
}

.project-lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:
    opacity .22s ease,
    visibility .22s ease;
}

.project-lightbox.open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background:rgba(2,3,4,.96);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}

.lightbox-ui{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 74px;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:
    max(18px,env(safe-area-inset-top))
    max(18px,env(safe-area-inset-right))
    max(18px,env(safe-area-inset-bottom))
    max(18px,env(safe-area-inset-left));
}

.lightbox-top{
  grid-column:1/-1;
  grid-row:1;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  padding-bottom:14px;
}

.lightbox-kicker{
  color:#777d85;
  font-size:9px;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.lightbox-title{
  margin-top:6px;
  font-size:clamp(18px,2vw,30px);
  font-weight:320;
  letter-spacing:-.025em;
}

.lightbox-close{
  flex:0 0 auto;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.03);
  color:#fff;
  cursor:pointer;
  font-size:29px;
  font-weight:200;
}

.lightbox-stage{
  grid-column:2;
  grid-row:2;
  min-width:0;
  min-height:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  touch-action:pan-y;
}

.lightbox-stage img,
.lightbox-stage video{
  display:block;
  max-width:100%;
  max-height:100%;
  width:auto;
  height:auto;
  object-fit:contain;
  user-select:none;
  -webkit-user-select:none;
}

.lightbox-stage video{
  width:100%;
  height:100%;
  background:#000;
}

.lightbox-nav{
  align-self:center;
  justify-self:center;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.025);
  color:#fff;
  cursor:pointer;
  font-size:18px;
}

.lightbox-prev{
  grid-column:1;
  grid-row:2;
}

.lightbox-next{
  grid-column:3;
  grid-row:2;
}

.lightbox-bottom{
  grid-column:1/-1;
  grid-row:3;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:30px;
  padding-top:14px;
  color:#777d85;
  font-size:9px;
  line-height:1.5;
  letter-spacing:.08em;
}

#lightboxCaption{
  max-width:760px;
}

#lightboxPosition{
  flex:0 0 auto;
  color:#b8bbc0;
  letter-spacing:.16em;
}

.lightbox-empty{
  color:#777d85;
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
}

@media(max-width:700px){

  .lightbox-ui{
    grid-template-columns:54px minmax(0,1fr) 54px;
    padding:
      max(12px,env(safe-area-inset-top))
      max(10px,env(safe-area-inset-right))
      max(12px,env(safe-area-inset-bottom))
      max(10px,env(safe-area-inset-left));
  }

  .lightbox-close{
    width:44px;
    height:44px;
  }

  .lightbox-nav{
    width:44px;
    height:44px;
    background:rgba(5,6,7,.52);
  }

  .lightbox-bottom{
    gap:14px;
  }

  #lightboxCaption{
    display:none;
  }
}

@media(max-width:430px){

  .lightbox-ui{
    grid-template-columns:44px minmax(0,1fr) 44px;
  }

  .lightbox-nav{
    width:38px;
    height:46px;
  }

  .lightbox-title{
    font-size:17px;
  }
}


/* =========================================================
   PROJECT DETAIL — NORMAL SCROLLING PRESENTATION
   No fullscreen lightbox.
   ========================================================= */

.project-lightbox{
  display:none !important;
}

.project-page-view[hidden],
#projectsListView[hidden]{
  display:none !important;
}


.project-page-header{
  padding:
    130px
    clamp(22px,5vw,80px)
    24px;

  display:grid;

  grid-template-columns:
    minmax(280px,.72fr)
    minmax(0,1.28fr);

  gap:14px;
}


.project-page-copy,
.project-page-cover{
  border:
    1px solid
    var(--line);

  background:
    #0b0d10;
}


.project-page-copy{
  min-height:520px;

  padding:
    30px;

  display:flex;

  flex-direction:column;

  justify-content:flex-end;
}


.project-back{
  margin-bottom:auto;

  align-self:flex-start;

  min-height:40px;

  display:inline-flex;

  align-items:center;

  color:#8b9097;

  font-size:10px;

  letter-spacing:.14em;

  text-transform:uppercase;
}


.project-page-copy h1{
  margin:
    12px
    0
    18px;

  font-size:
    clamp(
      42px,
      5.7vw,
      88px
    );

  line-height:.94;

  letter-spacing:-.05em;

  font-weight:280;
}


.project-page-copy p{
  max-width:560px;

  margin:0;

  color:#92979e;

  line-height:1.7;

  font-size:13px;
}


.project-page-cover{
  min-height:520px;

  overflow:hidden;
}


.project-page-cover img{
  display:block;

  width:100%;

  height:100%;

  object-fit:cover;
}


/*
  Desktop:
  clean two-column image arrangement.
*/

.project-scroll-gallery{
  padding:
    0
    clamp(22px,5vw,80px)
    90px;

  display:grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0,1fr)
    );

  gap:14px;

  align-items:start;
}


.project-media-item{
  margin:0;

  min-width:0;

  border:
    1px solid
    var(--line);

  background:#07080a;

  overflow:hidden;
}


.project-media-item img,
.project-media-item video{
  display:block;

  width:100%;

  height:auto;

  max-height:none;

  object-fit:contain;

  background:#07080a;
}


/*
  Wide landscape images can use both columns automatically
  when they are explicitly marked later if desired.
  Default stays predictable and clean.
*/

.project-media-item video{
  aspect-ratio:16/9;
}


/*
  Project list cards remain normal links.
*/

.project-card-button{
  text-align:left;
}


/* =========================================================
   TABLET
   ========================================================= */

@media(max-width:900px){

  .project-page-header{
    grid-template-columns:1fr;

    padding-top:110px;
  }


  .project-page-copy{
    min-height:360px;
  }


  .project-page-cover{
    min-height:420px;
  }
}


/* =========================================================
   PHONE
   ========================================================= */

@media(max-width:620px){

  .project-page-header{
    padding:
      100px
      14px
      12px;

    gap:10px;
  }


  .project-page-copy{
    min-height:auto;

    padding:
      22px
      18px;
  }


  .project-back{
    margin-bottom:52px;
  }


  .project-page-copy h1{
    font-size:
      clamp(
        40px,
        13vw,
        62px
      );
  }


  .project-page-cover{
    min-height:0;

    aspect-ratio:
      4/3;
  }


  /*
    Phone:
    one image after another.
    Natural vertical scrolling.
  */

  .project-scroll-gallery{
    padding:
      0
      14px
      60px;

    grid-template-columns:
      1fr;

    gap:10px;
  }


  .project-media-item{
    width:100%;
  }
}


/* v8: list pages begin directly below navigation */
#projectsListView .page-content,
body:has(#toolGrid) .page-content{
  padding-top:100px;
}

@media(max-width:620px){
  #projectsListView .page-content,
  body:has(#toolGrid) .page-content{
    padding-top:84px;
  }
}
