/* =========================================================
   design218.com — Sung Hong
   Static build. Edit the tokens below to reskin everything.
   Corners are square everywhere, on purpose.
   ========================================================= */

:root{
  --ink:      #0D1B2A;
  --ink-soft: #1B2C3D;
  --steel:    #4A6379;
  --paper:    #EEF0F1;
  --white:    #FFFFFF;
  --ember:    #1B3A6B;
  --blue:     #1A1210;   /* Hong is set in ink, like the rest of the name */

  --display: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --stack:  clamp(4rem, 10vw, 9rem);
  --max:    1500px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; border-radius:0; }

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }

:focus-visible{ outline:3px solid var(--ember); outline-offset:3px; }

.skip{ position:absolute; left:-9999px; top:0; background:var(--ink); color:var(--white); padding:.75rem 1rem; z-index:100; }
.skip:focus{ left:0; }

/* ---------------- scroll reveal ---------------- */

.reveal{
  clip-path:inset(0 0 100% 0);
  opacity:0;
  transition:clip-path 1s var(--ease), opacity .5s ease;
}
.reveal.in{ clip-path:inset(0 0 0 0); opacity:1; }

/* ---------------- top bar ---------------- */

.bar{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.85rem var(--gutter);
  background:rgba(238,240,241,.9);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(74,99,121,.28);
}
.bar__name{
  font-family:var(--display); font-weight:800;
  font-size:1.05rem; text-decoration:none;
}
.bar__nav{
  display:flex; align-items:center; gap:clamp(.9rem,2.5vw,1.75rem);
  font-family:var(--display); font-size:.9rem; font-weight:500;
}
.bar__nav a{ position:relative; text-decoration:none; padding-block:.25rem; }
.bar__nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--ember); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.bar__nav a:hover::after{ transform:scaleX(1); }
.bar__cta{
  background:var(--ink); color:var(--white);
  padding:.5rem 1rem;
  overflow:hidden;
  transition:background .3s var(--ease);
}
.bar__cta::after{ display:none; }
.bar__cta:hover{ background:var(--ember); }

/* ---------------- buttons ---------------- */

.btn{
  position:relative; overflow:hidden;
  display:inline-block;
  font-family:var(--display); font-weight:600; font-size:.95rem;
  text-decoration:none; padding:.85rem 1.6rem;
  background:var(--ink); color:var(--white); border:2px solid var(--ink);
  cursor:pointer; z-index:0;
}
.btn::before{
  content:""; position:absolute; inset:0; z-index:-1;
  background:var(--ember);
  transform:translateY(101%);
  transition:transform .4s var(--ease);
}
.btn:hover::before{ transform:translateY(0); }
.btn:hover{ border-color:var(--ember); }

.btn--big{ padding:1.05rem 2.1rem; font-size:1.02rem; }
.btn--quiet{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn--quiet:hover{ color:var(--white); }
.btn--light{ background:var(--white); color:var(--ink); border-color:var(--white); }
.btn--light:hover{ color:var(--white); }
.btn--ghost{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.55); }
.btn--ghost:hover{ border-color:var(--ember); }

/* ---------------- hero ---------------- */

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
  align-items:end; gap:clamp(1.5rem,4vw,3.5rem);
  padding:clamp(2.5rem,7vw,6rem) var(--gutter) clamp(3rem,7vw,6rem);
  max-width:var(--max); margin-inline:auto;
}
.hero__name{
  font-family:var(--display); font-weight:900;
  font-size:clamp(3.4rem, 12vw, 9.5rem);
  line-height:.86; letter-spacing:-.02em; text-transform:uppercase;
  margin:0 0 clamp(1.25rem,3vw,2rem);
}
.hero__name span{ display:block; overflow:hidden; }
.hero__name span > i{ display:block; font-style:normal; }
.hero__name span:last-child{ color:var(--blue); }
.hero__line{
  font-family:var(--display); font-weight:500;
  font-size:clamp(1.05rem,1.9vw,1.4rem); line-height:1.35;
  max-width:26ch; margin:0 0 1rem;
}
.hero__body{ max-width:46ch; color:var(--ink-soft); margin:0 0 2rem; }
.hero__acts{ display:flex; gap:.8rem; flex-wrap:wrap; margin:0; }
.hero__shot{ margin:0; overflow:hidden; }
.hero__shot img{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  filter:grayscale(1) contrast(1.06);
  transition:filter .6s var(--ease), transform 1.2s var(--ease);
}
.hero__shot:hover img{ filter:grayscale(0) contrast(1); transform:scale(1.04); }

/* ---------------- client ticker ---------------- */

.ticker{
  overflow:hidden;
  background:var(--ink); color:var(--paper);
  border-block:1px solid var(--ink);
  padding:.9rem 0;
}
.ticker__run{
  display:flex; width:max-content;
  animation:slide 55s linear infinite;
}
.ticker__run:hover{ animation-play-state:paused; }
.ticker span{
  font-family:var(--display); font-weight:600; font-size:.9rem;
  letter-spacing:.02em; white-space:nowrap;
  padding-inline:1.6rem;
  position:relative;
}
.ticker span::after{
  content:""; position:absolute; right:0; top:50%;
  width:5px; height:5px; background:var(--ember);
  transform:translateY(-50%);
}
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* ---------------- about ---------------- */

.about{
  background:var(--ink); color:var(--paper);
  display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
  gap:clamp(2rem,5vw,5rem); align-items:center;
  padding:var(--stack) var(--gutter);
}
.about__shot{ margin:0; overflow:hidden; }
.about__shot img{
  width:100%; aspect-ratio:4/5; object-fit:cover;
  transition:transform 1.2s var(--ease);
}
.about__shot:hover img{ transform:scale(1.05); }
.about__text{ max-width:60ch; }
.about h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.8rem,4.5vw,3rem);
  line-height:1; margin:0 0 1.5rem;
}
.about p{ margin:0 0 1.15rem; }
.about strong{ color:var(--white); font-weight:600; }

.facts{
  list-style:none; margin:2rem 0 0; padding:1.5rem 0 0;
  border-top:1px solid rgba(238,240,241,.28);
  display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1.5rem;
}
.facts b{
  display:block; font-family:var(--display); font-weight:900;
  font-size:clamp(1.6rem,3vw,2.3rem); line-height:1;
  color:var(--ember); margin-bottom:.35rem;
}
.facts li{ font-size:.95rem; line-height:1.4; }

/* ---------------- projects ---------------- */

.project{
  display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr);
  gap:clamp(1.75rem,4vw,4rem);
  padding:var(--stack) var(--gutter);
  max-width:var(--max); margin-inline:auto;
  border-bottom:1px solid rgba(74,99,121,.3);
}
.project__rail{ align-self:start; position:sticky; top:5.5rem; }
.project__title{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.7rem,3.6vw,2.6rem);
  line-height:.98; letter-spacing:-.015em; margin:0 0 1rem;
}
.project__sub{ margin:0 0 1.5rem; color:var(--ink-soft); font-size:1rem; }

.meta{
  margin:0; border-top:2px solid var(--ink); padding-top:1rem;
  font-family:var(--display); font-size:.85rem;
}
.meta dt{ color:var(--steel); font-weight:600; }
.meta dd{ margin:0 0 .85rem; font-weight:500; }
.meta dd:last-child{ margin-bottom:0; }

.grid{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(.75rem,1.6vw,1.25rem);
  margin-bottom:clamp(1.75rem,3.5vw,2.75rem);
}

.shot{
  position:relative; padding:0; margin:0; border:0;
  background:var(--white); display:block; overflow:hidden;
  cursor:none;
}
.shot img{
  width:100%; aspect-ratio:4/3; object-fit:cover; object-position:top center;
  transition:transform .8s var(--ease), filter .5s ease;
}
.shot::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(to top, rgba(13,27,42,.85), rgba(13,27,42,0) 55%);
  opacity:0; transition:opacity .45s var(--ease);
}
.shot__cap{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  font-family:var(--display); font-size:.85rem; font-weight:600;
  color:var(--white); text-align:left;
  padding:1rem 1.1rem;
  transform:translateY(100%);
  transition:transform .45s var(--ease);
}
.shot__cap::before{
  content:""; display:block; width:34px; height:2px;
  background:var(--ember); margin-bottom:.55rem;
}
.shot:hover img,
.shot:focus-visible img{ transform:scale(1.07); }
.shot:hover::after,
.shot:focus-visible::after{ opacity:1; }
.shot:hover .shot__cap,
.shot:focus-visible .shot__cap{ transform:translateY(0); }

.prose{ max-width:68ch; }
.prose p{ margin:0 0 1.15rem; }
.prose p:last-child{ margin-bottom:0; }
.prose strong{ font-weight:600; }

/* ---------------- follow cursor ---------------- */

.cursor{
  position:fixed; top:0; left:0; z-index:80;
  width:82px; height:82px;
  display:flex; align-items:center; justify-content:center;
  background:var(--ember); color:var(--white);
  font-family:var(--display); font-size:.72rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(0);
  transition:transform .35s var(--ease);
  will-change:transform;
}
.cursor.on{ transform:translate(-50%,-50%) scale(1); }
@media (hover:none){ .cursor{ display:none; } .shot{ cursor:pointer; } }

/* ---------------- more ---------------- */

.more{
  background:var(--ink) url("../images/cta-background.jpg") center/cover no-repeat;
  background-blend-mode:multiply; background-attachment:fixed;
  color:var(--white);
  padding:calc(var(--stack) * 1.1) var(--gutter);
}
.more__inner{ max-width:56ch; margin-inline:auto; text-align:center; }
.more h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(2rem,6vw,4rem);
  line-height:.95; margin:0 0 1.25rem;
}
.more p{ margin:0 0 1.5rem; }
.more__links{ display:flex; gap:.85rem; justify-content:center; flex-wrap:wrap; }

/* ---------------- contact ---------------- */

.contact{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  gap:clamp(2rem,5vw,4.5rem);
  padding:var(--stack) var(--gutter) clamp(2rem,5vw,4rem);
  max-width:var(--max); margin-inline:auto;
}
.contact h2{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:clamp(1.9rem,5vw,3.2rem);
  line-height:.98; margin:0 0 1.25rem;
}
.contact p{ max-width:42ch; margin:0 0 1.75rem; }
.contact__list{
  list-style:none; margin:0; padding:1.25rem 0 0;
  border-top:2px solid var(--ink);
  font-family:var(--display); font-size:.95rem;
}
.contact__list li{ margin-bottom:.6rem; }
.contact__list a{
  text-decoration:none;
  background-image:linear-gradient(var(--ember),var(--ember));
  background-size:0% 2px; background-repeat:no-repeat; background-position:0 100%;
  transition:background-size .4s var(--ease), color .3s ease;
  padding-bottom:2px;
}
.contact__list a:hover{ background-size:100% 2px; color:var(--ember); }

.form{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; align-content:start; }
.form__row{ display:flex; flex-direction:column; gap:.4rem; }
.form__row--wide{ grid-column:1 / -1; }
.form label{ font-family:var(--display); font-size:.8rem; font-weight:600; color:var(--steel); }
.form input, .form textarea{
  font-family:var(--body); font-size:1rem; padding:.75rem .85rem;
  border:1px solid rgba(74,99,121,.5); background:var(--white); color:var(--ink);
  transition:border-color .3s ease, box-shadow .3s ease;
}
.form input:focus, .form textarea:focus{
  border-color:var(--ink); box-shadow:inset 0 -2px 0 var(--ember); outline:none;
}
.form textarea{ resize:vertical; }

.signoff{
  font-family:var(--display); font-weight:700;
  font-size:clamp(1.1rem,2.5vw,1.6rem); text-align:center;
  margin:0; padding:0 var(--gutter) var(--stack);
}

/* ---------------- footer ---------------- */

.foot{
  background:var(--ink); color:rgba(238,240,241,.75);
  padding:clamp(2.5rem,6vw,4rem) var(--gutter);
  display:grid; grid-template-columns:minmax(0,240px) minmax(0,1fr);
  gap:2rem; align-items:start;
}
.foot__mark{
  font-family:var(--display); font-weight:900;
  text-transform:uppercase; font-size:1.4rem; color:var(--white); margin:0;
}
.foot__legal{ margin:0; font-size:.85rem; line-height:1.6; max-width:80ch; }

/* ---------------- lightbox ---------------- */

.lightbox{
  position:fixed; inset:0; z-index:200;
  background:rgba(13,27,42,.95);
  display:flex; align-items:center; justify-content:center;
  padding:clamp(1rem,4vw,3rem);
}
.lightbox[hidden]{ display:none; }
.lightbox img{ max-width:100%; max-height:100%; object-fit:contain; background:var(--white); }
.lightbox__close{
  position:absolute; top:1rem; right:1.25rem;
  font-size:2.5rem; line-height:1; background:none; border:0;
  color:var(--white); cursor:pointer; padding:.25rem .6rem;
}

/* ---------------- responsive ---------------- */

@media (max-width: 900px){
  .hero{ grid-template-columns:1fr; }
  .hero__shot{ order:-1; }
  .hero__shot img{ aspect-ratio:3/2; }
  .about, .project, .contact, .foot{ grid-template-columns:1fr; }
  .project__rail{ position:static; }
  .about__shot img{ aspect-ratio:3/2; }
  .more{ background-attachment:scroll; }
}
@media (max-width: 560px){
  .grid{ grid-template-columns:1fr; }
  .form{ grid-template-columns:1fr; }
  .bar__nav{ font-size:.82rem; }
  .hero__name{ }
}

/* ---------------- motion off ---------------- */

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition-duration:.01ms !important; }
  .reveal{ clip-path:none; opacity:1; }
  .ticker__run{ animation:none; }
  .cursor{ display:none; }
  .shot{ cursor:pointer; }
}

/* anything marked hidden stays hidden */
[hidden]{ display:none !important; }

/* pictures on the simple page: no drag, no right-click save */
img{ -webkit-user-drag:none; user-select:none; }

/* ---------- v100: the rooms, built from works.js ---------- */
.shot--book img{ aspect-ratio:2/3; object-fit:cover; object-position:center; }
.notes{ display:grid; grid-template-columns:repeat(auto-fill,minmax(15rem,1fr)); gap:clamp(1rem,2.2vw,1.75rem); margin-bottom:clamp(1.75rem,3.5vw,2.75rem); }
.note{ border-top:2px solid var(--ink); padding-top:.9rem; }
.note__title{ font-family:var(--display); font-size:1.02rem; font-weight:700; margin:0 0 .4rem; line-height:1.3; }
.note__line{ margin:0 0 .45rem; font-style:italic; color:var(--ink-soft); }
.note__by{ margin:0 0 .45rem; font-weight:500; font-size:.95rem; }
.note__why{ margin:0 0 .6rem; color:var(--ink-soft); font-size:.95rem; }
.note__soon{ margin:0 0 .45rem; font-size:.75rem; font-weight:700; letter-spacing:.14em; color:var(--steel); }
.note__go{ font-weight:700; font-size:.92rem; }
/* line breaks typed in the editor show as line breaks */
.project__title, .project__sub, .note p, .note h3, .about p, .facts li, .more p{ white-space:pre-line; }
.form__trap{ position:absolute; left:-9999px; }
.form__status{ margin-left:.75rem; font-size:.92rem; color:var(--ink-soft); }
