/* ==========================================================
   Lamitecture & Co  |  homepage
   A royal blue blueprint: white ink, Bodoni Moda headlines,
   red only for the main action. Real screenshots, no illustrations.
   ========================================================== */

.section{position:relative;padding-block:clamp(4rem,10vw,7rem)}
.section-head{max-width:44rem;margin-bottom:clamp(2rem,5vw,3rem)}
.section-head h2{margin-bottom:.8rem}

/* ================= HERO ================= */
.hero{position:relative;overflow:clip;padding:clamp(7rem,12vw,9.5rem) 0 clamp(3rem,6vw,5rem)}
/* the blueprint sheet behind everything */
.hero-atmos{
  position:absolute;inset:0;pointer-events:none;
  background-image:
    radial-gradient(60% 55% at 72% 38%,rgba(255,255,255,.16),transparent 70%),
    linear-gradient(rgba(255,255,255,.075) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.075) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:auto,96px 96px,96px 96px,24px 24px,24px 24px;
  background-position:0 0,-1px -1px,-1px -1px,-1px -1px,-1px -1px;
  -webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent);
}
.hero-photo,.hero-photo img{position:absolute;inset:0;width:100%;height:100%}
.hero-photo{z-index:0}
.hero-photo img{object-fit:cover;object-position:62% 50%}
/* royal blue on the text side, fading to show the desk; blends into the next section at the bottom */
.hero::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    linear-gradient(90deg,rgba(32,48,154,.92) 0%,rgba(32,48,154,.78) 34%,rgba(26,40,134,.32) 62%,rgba(20,31,107,.08) 100%),
    linear-gradient(180deg,rgba(26,40,134,0) 72%,var(--bg-2) 100%)}
.hero-grid{position:relative;z-index:2;display:grid;gap:3rem;align-items:center}
.hero h1{font-size:clamp(2.45rem,9.4vw,5.4rem);line-height:1;letter-spacing:-.02em}
.hero h1 .ln{display:block}
.hero-sub{max-width:30rem;margin-top:1.4rem;font-size:clamp(1.05rem,1.6vw,1.22rem);line-height:1.6;color:var(--on-blue)}
.hero-cta{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:2rem}
.hero-cta .btn{min-height:3.3rem;padding-inline:1.8rem}

/* proof right under the promise */
.hero-proof{display:flex;flex-wrap:wrap;align-items:center;gap:.9rem 1.2rem;margin-top:2.4rem;padding-top:1.3rem;border-top:1px solid var(--line)}
.hero-proof p{font-size:.95rem;color:var(--muted);font-weight:600}
.hero-proof ul{display:flex;gap:.7rem}
.proof{display:grid;place-items:center;height:3.3rem;padding:.3rem .9rem;border-radius:12px;border:1px solid var(--line);transition:border-color .3s}
.proof img{height:2.6rem;width:auto}
.proof-fx{background:#000}
.proof-tc{background:#fff}
@media (hover:hover){.proof:hover{border-color:#fff}}

/* floating architecture: glow, glass, then two real websites */
.hero-stage{position:relative;display:none;aspect-ratio:16/12}
.stage-glow{position:absolute;inset:6% 0 0 8%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,255,255,.3),rgba(150,170,255,.12) 55%,transparent);filter:blur(28px)}
.stage-glass{position:absolute;left:6%;top:14%;width:72%;height:74%;border-radius:24px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.panel{position:absolute;margin:0;transition:transform .8s var(--ease-lux)}
.panel .browser{box-shadow:0 40px 80px -30px rgba(2,8,45,.95),0 0 0 1px rgba(255,255,255,.12)}
.panel-back{--o:.92;right:0;top:2%;width:64%;opacity:var(--o)}
.panel-front{left:0;bottom:6%;width:78%}
.hero-stage:hover .panel-front{transform:translateY(-8px)}
.hero-stage:hover .panel-back{transform:translateY(6px)}
@media (min-width:1000px){
  .hero-grid{grid-template-columns:minmax(0,44rem)}
  .hero h1{font-size:clamp(3rem,4.6vw,5.3rem)}
  .hero h1 .ln{white-space:nowrap}
  .hero-stage{display:block}
  .hero{min-height:min(100svh,62rem);display:grid;align-items:center}
}

/* phones: headline up top, buttons low where the thumb rests */
@media (max-width:999px){
  .hero h1,.statement-text,.project h3,.about-copy h2,.finale h2{letter-spacing:0}
  /* the widest line is about 8.3 times the type size, so size it to the screen and keep three lines */
  .hero h1{font-size:min(calc((100vw - 2.5rem) / 8.6),3.6rem);line-height:1.05}
  .hero h1 .ln{white-space:nowrap}
  .hero-photo img{object-position:50% 60%}
  .hero::before{background:linear-gradient(180deg,rgba(32,48,154,.92) 0%,rgba(32,48,154,.82) 32%,rgba(26,40,134,.25) 50%,rgba(26,40,134,.3) 60%,rgba(26,40,134,.92) 80%,var(--bg-2) 100%)}
  .hero{padding-top:6.5rem;padding-bottom:2rem}
  .hero-copy{display:flex;flex-direction:column;min-height:calc(100svh - 14rem)}
  .hero-cta{margin-top:auto;padding-top:2rem}
  .hero-proof{margin-top:1.6rem}
}
@media (max-width:599px){
  .hero-cta{flex-wrap:nowrap;gap:.6rem}
  .hero-cta .btn{flex:1 1 0;min-width:0;min-height:3.2rem;padding-inline:.6rem;font-size:.95rem}
}
@media (max-width:380px){.hero-cta .btn{padding-inline:.4rem;font-size:.95rem}}
@media (max-width:340px){.hero-cta .btn{font-size:.9rem}}

/* ================= WEBSITES WE'VE BUILT (65 / 35) ================= */
.work{background:var(--bg-2)}
.work-rail{display:grid;gap:2.5rem}
.project-shot{display:block;border-radius:18px}
.project-shot .browser{transition:box-shadow .6s var(--ease-lux)}
.project-shot:hover .browser{box-shadow:0 0 0 2px #fff,0 36px 70px -28px rgba(2,8,50,.95)}
.project .shot{transition:transform 1s var(--ease-lux),filter 1.2s var(--ease-lux),opacity 1.2s var(--ease-lux)}
@media (hover:hover){.project-shot:hover .shot{transform:scale(1.04)}}
.project-info{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:1rem 1.5rem;margin-top:1.3rem}
.project h3{font-family:var(--serif);font-size:clamp(1.8rem,3vw,2.6rem);font-weight:700;letter-spacing:-.015em;line-height:1.05}
.project-meta{color:var(--muted);margin-top:.25rem}
.project-links{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1.2rem}
@media (min-width:1000px){
  .work-rail{grid-template-columns:65fr 35fr;align-items:start;gap:2.5rem}
  .project-side .project-info{flex-direction:column;align-items:flex-start}
}
/* phones and tablets: swipe through the projects */
@media (max-width:999px){
  .work-rail{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:-1.25rem;padding:0 1.25rem 1rem;scroll-padding-inline:1.25rem;scrollbar-width:none}
  .work-rail::-webkit-scrollbar{display:none}
  .project{flex:0 0 86%;scroll-snap-align:start}
  .project-info{flex-direction:column;align-items:flex-start}
}

/* ================= STATEMENT (a pause) ================= */
.statement{position:relative;overflow:clip;display:grid;align-items:center;min-height:clamp(24rem,46vw,38rem);padding:clamp(5rem,12vw,8rem) 0;background:var(--royal-deep)}
/* the photo sits behind; a deep blue fade on the text side keeps every letter readable */
.statement-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:70% 50%;transition:transform 1.6s var(--ease-lux)}
.statement::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(12,19,71,.95) 0%,rgba(12,19,71,.82) 38%,rgba(12,19,71,.3) 72%,rgba(12,19,71,.15) 100%)}
.statement .wrap{position:relative;z-index:1}
html.js .statement-img{transform:scale(1.08)}
html.js .statement:has(.statement-text.in) .statement-img{transform:none}
@media (max-width:999px){
  .statement{min-height:min(36rem,88svh);align-items:end;padding-bottom:3.5rem}
  .statement-img{object-position:72% 50%}
  .statement::after{background:linear-gradient(180deg,rgba(12,19,71,.35) 0%,rgba(12,19,71,.7) 45%,rgba(12,19,71,.95) 100%)}
}
.statement-text{font-size:clamp(2.4rem,6.4vw,5.6rem);line-height:1.02;letter-spacing:-.02em;max-width:16ch}

/* ================= SERVICES: the one white sheet =================
   The rest of the page is a blue blueprint; here the drawing is printed on paper.
   Royal blue ink, ruled like a floor plan, red only on the links. */
.sheet{background:var(--paper);color:var(--royal);--muted:rgba(32,48,154,.78)}
.sheet h2,.sheet h3{color:var(--royal-ink)}
.sheet .lede{color:var(--muted)}
.plan{display:grid;border-top:1.5px solid var(--royal);border-left:1.5px solid var(--royal)}
.plan-cell{position:relative;display:flex;flex-direction:column;gap:.55rem;padding:clamp(1.4rem,3vw,2.2rem);border-right:1.5px solid var(--royal);border-bottom:1.5px solid var(--royal);transition:background .4s var(--ease-lux)}
.plan-cell h3{font-family:var(--serif);font-variation-settings:"opsz" var(--opsz);font-weight:700;font-size:clamp(1.55rem,2.4vw,2rem);line-height:1.08;letter-spacing:-.01em}
.plan-cell p{color:var(--muted);max-width:28rem}
.plan-cell .text-link{align-self:flex-start;margin-top:auto;padding-top:.8rem;color:var(--royal);
  background:linear-gradient(var(--tomato),var(--tomato)) 50% 100%/0% 2px no-repeat,linear-gradient(rgba(32,48,154,.35),rgba(32,48,154,.35)) 0 100%/100% 1px no-repeat}
@media (hover:hover){a.plan-cell:hover{background:var(--paper-2)}a.plan-cell:hover .text-link{background-size:100% 2px,100% 1px}}
a.plan-cell:active{background:var(--paper-2)}
/* small corner ticks where the plan lines meet, like a drafted drawing */
.plan::before,.plan::after{content:"";position:absolute;width:14px;height:14px;pointer-events:none}
.plan{position:relative}
.plan::before{left:-8px;top:-8px;border-left:1.5px solid var(--tomato);border-top:1.5px solid var(--tomato)}
.plan::after{right:-8px;bottom:-8px;border-right:1.5px solid var(--tomato);border-bottom:1.5px solid var(--tomato)}
@media (min-width:700px){.plan{grid-template-columns:repeat(2,1fr)}}
@media (min-width:1000px){.plan{grid-template-columns:repeat(3,1fr)}.plan-cell{min-height:15rem}}

/* ================= WHY ================= */
.why{background:var(--bg-2)}
.benefits{border-top:1px solid var(--line)}
.benefits li{display:grid;gap:.4rem;padding:1.6rem 0;border-bottom:1px solid var(--line)}
.benefits h3{font-family:var(--serif);font-variation-settings:"opsz" var(--opsz);font-weight:700;font-size:clamp(1.4rem,2.2vw,1.75rem);line-height:1.1}
.benefits p{color:var(--muted);max-width:40rem}
@media (min-width:860px){.benefits li{grid-template-columns:22rem 1fr;align-items:baseline;gap:2.5rem}}

/* ================= ABOUT: the moon from the logo ================= */
.about{overflow:clip;isolation:isolate}
.about-grid{position:relative;z-index:1;display:grid}
.about-copy h2{font-size:clamp(2.2rem,4.6vw,3.8rem);max-width:14ch;margin-bottom:1.3rem}
.about-copy p:not(.about-sign){color:var(--on-blue);font-size:1.06rem;line-height:1.7;max-width:32rem}
.about-sign{margin-top:1.4rem;font-family:var(--serif);font-style:italic;font-size:1.4rem;color:#fff;display:inline-block;border-bottom:2px solid var(--tomato)}
.about-moon{position:absolute;z-index:0;pointer-events:none;right:clamp(1rem,7vw,8rem);top:50%;width:clamp(15rem,25vw,23rem);aspect-ratio:1;transform:translateY(-50%)}
.about-moon::before{content:"";position:absolute;inset:-22%;border-radius:50%;background:radial-gradient(closest-side,rgba(190,210,255,.42),rgba(120,150,255,.14) 55%,transparent 72%)}
.about-moon img{position:relative;width:100%;height:100%;border-radius:50%;box-shadow:0 0 60px rgba(200,220,255,.5),0 0 0 1px rgba(255,255,255,.18)}
@media (min-width:900px){.about{padding-block:clamp(6rem,11vw,9rem)}.about-copy{max-width:36rem}}
/* phones: the moon sits above the words, rising out of the right edge */
@media (max-width:899px){
  .about{padding-top:0}
  .about-moon{position:relative;top:auto;right:auto;transform:none;width:min(52vw,14rem);margin:clamp(3rem,10vw,4rem) 1.25rem 2.2rem auto}
}
html.js .about-moon img{transition:transform 1.8s var(--ease-lux),opacity 1.4s var(--ease-lux);transform:translateY(40px);opacity:0}
html.js .about.moon-in .about-moon img{transform:none;opacity:1}

/* ================= FINAL CALL TO ACTION ================= */
.finale{position:relative;overflow:clip;text-align:center;padding:clamp(5rem,13vw,9rem) 0;background:radial-gradient(70% 60% at 50% 0%,rgba(255,255,255,.2),transparent 70%),var(--royal-deep)}
.finale h2{font-size:clamp(2.6rem,7vw,6rem);line-height:1;max-width:14ch;margin:0 auto 1.2rem}
.finale .lede{margin:0 auto 2rem}
.cta-buttons{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}

/* ================= CONTACT ================= */
.contact{padding-bottom:clamp(3.5rem,8vw,6rem)}
.contact-list{border-bottom:1px solid var(--line)}
.contact-list a{display:grid;gap:.2rem;padding:1.25rem .25rem;border-top:1px solid var(--line);transition:background .3s}
@media (hover:hover){.contact-list a:hover{background:rgba(255,255,255,.06)}}
.contact-list a:active{background:rgba(255,255,255,.1)}
.c-name{font-weight:700;font-size:1.1rem}
.c-value{color:var(--on-blue);overflow-wrap:anywhere}
.c-action{justify-self:start;margin-top:.4rem;font-weight:700;font-size:.95rem;padding-bottom:.2rem;
  background:linear-gradient(var(--tomato),var(--tomato)) 50% 100%/100% 2px no-repeat;transition:background-size .3s var(--ease-lux)}
.contact-list a:hover .c-action{background-size:40% 2px}
@media (min-width:760px){
  .contact-list a{grid-template-columns:10rem 1fr auto;align-items:center;gap:1.5rem;padding:1.35rem .5rem}
  .c-action{justify-self:end;margin-top:0}
}

/* ================= MOTION =================
   Only while JavaScript runs (html.js), so nothing is ever hidden without it.
   One load sequence, gentle reveals on scroll, hovers. All off for reduced motion. */
html.js .hero-photo{animation:atmos .8s var(--ease-lux) both}
html.js .hero h1 .ln{animation:lineIn .9s var(--ease-cine) both}
html.js .hero h1 .ln:nth-child(1){animation-delay:.15s}
html.js .hero h1 .ln:nth-child(2){animation-delay:.27s}
html.js .hero h1 .ln:nth-child(3){animation-delay:.39s}
html.js .hero-sub{animation:fadeBlur .8s var(--ease-cine) .6s both}
html.js .hero-cta{animation:ctaIn .6s var(--ease-lux) .85s both}
html.js .hero-proof{animation:fadeBlur .8s var(--ease-cine) 1s both}
html.js .stage-glow{animation:fadeBlur 1.1s var(--ease-lux) .2s both}
html.js .stage-glass{animation:floatIn .9s var(--ease-lux) .4s both}
html.js .panel-back{animation:floatIn .9s var(--ease-lux) .5s both}
html.js .panel-front{animation:floatIn .9s var(--ease-lux) .6s both}
@keyframes atmos{from{opacity:0;filter:blur(20px)}to{opacity:1;filter:blur(0)}}
@keyframes lineIn{from{opacity:0;transform:translateY(30px);filter:blur(12px)}to{opacity:1;transform:none;filter:blur(0)}}
@keyframes fadeBlur{from{opacity:0;filter:blur(10px)}to{opacity:1;filter:blur(0)}}
@keyframes ctaIn{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes floatIn{from{opacity:0;transform:translateY(40px)}to{opacity:var(--o,1);transform:none}}

html.js .reveal{opacity:0;transform:translateY(24px);filter:blur(10px);transition:opacity .9s var(--ease-lux),transform .9s var(--ease-lux),filter .9s var(--ease-lux);transition-delay:var(--stagger,0ms)}
html.js .reveal.in{opacity:1;transform:none;filter:none}
html.js .statement-text.reveal{transform:scale(1.06)}
html.js .statement-text.reveal.in{transform:none}
html.js .reveal-card{opacity:0;transform:perspective(1200px) rotateX(8deg) translateY(60px);transition:opacity 1.2s var(--ease-lux),transform 1.2s var(--ease-lux);transition-delay:var(--stagger,0ms)}
html.js .reveal-card.in{opacity:1;transform:none}
html.js .project .shot:not(.is-loaded){filter:blur(16px);opacity:.6}
@media (max-width:999px){
  html.js .reveal{transform:translateY(16px)}
  html.js .reveal-card{transform:translateY(40px)}
}

/* ---------- phones: swipe dots under the projects, full width final buttons ---------- */
.rail-dots{display:none}
@media (max-width:999px){
  .rail-dots{display:flex;justify-content:center;gap:.5rem;margin-top:.4rem}
  .rail-dots span{width:.55rem;height:.55rem;border-radius:50%;background:rgba(255,255,255,.35);transition:width .35s var(--ease-lux),background .35s}
  .rail-dots span.on{width:1.6rem;border-radius:999px;background:#fff}
}
@media (max-width:599px){
  .cta-buttons{flex-direction:column;align-items:stretch;max-width:24rem;margin-inline:auto}
}
