/* demirdelen.com homepage. Loads after site.css. */

/* ---------- Hero ---------- */
.hero{padding-top:clamp(28px,6vw,64px);padding-bottom:clamp(56px,8vw,104px)}
.hero-grid{display:grid;gap:clamp(48px,7vw,72px);align-items:center}
.byline{display:flex;align-items:center;gap:.85rem;margin-bottom:clamp(1.5rem,3.4vw,2.2rem)}
.byline img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex:none}
.byline b{display:block;font-weight:650;font-size:1rem;letter-spacing:-.015em;line-height:1.3}
.byline span{display:block;font-size:.875rem;color:var(--muted);line-height:1.35}
h1{font-size:clamp(2.75rem,1.55rem + 6.6vw,5.5rem);line-height:.97;letter-spacing:-.052em}
h1 .line{display:block}
.hero-sub{margin-top:1.4rem;font-size:clamp(1.0625rem,1rem + .35vw,1.25rem);color:var(--muted);max-width:40ch;text-wrap:pretty}
.hero-sub b{color:var(--black);font-weight:600}
.hero-action{margin-top:2rem;display:flex;flex-direction:column;align-items:flex-start;gap:.7rem}
.hero-action .mail{font-size:.875rem;color:var(--faint)}
/* ---------- The canvas ----------
   A design-tool canvas drawn in em units. The stage is 44em wide and 1em is
   1/44 of its width, so the whole scene scales as one piece at any size.
   Illustration colors live only here; orange stays reserved for the CTA. */
.cv-wrap{
  --cv-blue:#0d99ff;--cv-violet:#8b5cf6;--cv-green:#14ae5c;
  width:100%;max-width:470px;justify-self:center;
  display:flex;flex-direction:column;align-items:center;gap:1rem;
}
.cv{width:100%;container-type:inline-size}
.cv-stage{
  position:relative;font-size:calc(100cqw / 44);width:100%;aspect-ratio:44/56.5;
  border-radius:2.6em;overflow:hidden;
  background:radial-gradient(circle,#d3d3d3 .09em,transparent .11em) 0 0/1.6em 1.6em,#f4f4f2;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
  -webkit-user-select:none;user-select:none;
}
.cv-stage svg{display:block;fill:none;stroke-linecap:round;stroke-linejoin:round}

/* Top: frame name and the people in the file */
.cv-frame{position:absolute;left:2.4em;top:2.2em;display:flex;align-items:center;gap:.45em;font-size:1.35em;font-weight:550;color:#8a8a8a;letter-spacing:-.01em;line-height:1}
.cv-frame svg{width:1.05em;height:1.05em;stroke:currentColor;stroke-width:2}
.cv-people{position:absolute;right:2.4em;top:1.6em;display:flex}
.cv-people>*{width:2.5em;height:2.5em;border-radius:50%;box-shadow:0 0 0 .2em #f4f4f2;margin-left:-.55em}
.cv-people img{object-fit:cover;margin-left:0;filter:grayscale(1)}
.cv-people i{display:grid;place-items:center;background:var(--c);color:#fff;font-style:normal;font-weight:700;line-height:1}

/* Cards: iOS-widget style */
.cv-card{
  position:absolute;left:calc(var(--x)*1em);top:calc(var(--y)*1em);width:calc(var(--w)*1em);height:calc(var(--h)*1em);
  background:#fff;border-radius:1.5em;padding:1.5em 1.6em;display:flex;flex-direction:column;
  box-shadow:0 0 0 1px rgba(0,0,0,.045),0 .15em .4em rgba(0,0,0,.04),0 1.2em 2.6em -1.4em rgba(0,0,0,.18);
}
.cv-head{display:flex;align-items:center;justify-content:space-between;min-height:1.9em}
.cv-label{display:flex;align-items:center;gap:.35em;color:var(--c);font-size:1.3em;font-weight:650;letter-spacing:-.005em;line-height:1}
.cv-label svg{width:1.1em;height:1.1em;stroke:currentColor;stroke-width:2.4}
.cv-title{margin-top:.3em;font-size:1.7em;font-weight:680;letter-spacing:-.03em;line-height:1.15;color:var(--black)}
.cv-chip{display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;background:#e7f6ec}
.cv-chip svg{width:1.15em;height:1.15em;stroke:var(--cv-green);stroke-width:2.8}
.cv-tag{display:flex;align-items:center;gap:.4em;font-size:1.2em;font-weight:600;color:#7a7a7a;line-height:1}
.cv-tag::before{content:"";width:.6em;height:.6em;border-radius:50%;background:var(--c)}
.cv-chart{width:100%;height:auto;margin-top:auto;overflow:visible}
.cv-grid{stroke:#ececec;stroke-width:1}
.cv-area{fill:url(#cv-area);stroke:none}
.cv-line{stroke:var(--cv-blue);stroke-width:2.6}
.cv-prev{stroke:#c4c4c4;stroke-width:1.6;stroke-dasharray:.018 .022}
.cv-dot{fill:var(--cv-blue);stroke:#fff;stroke-width:1.6}
.cv-dot.g{fill:var(--cv-green)}
.cv-halo{fill:var(--cv-blue);opacity:.16;transform-box:fill-box;transform-origin:center}
.cv-old{stroke:#9a9a9a;stroke-opacity:var(--o);stroke-width:1.7}
.cv-new{stroke:var(--cv-green);stroke-width:2.8}
.cv-legend,.cv-axis{display:flex;gap:1.1em;margin-top:.7em;font-size:1.15em;font-weight:550;color:#8a8a8a;line-height:1}
.cv-axis{justify-content:space-between}
.cv-legend span{display:flex;align-items:center;gap:.45em}
.cv-legend span::before{content:"";width:1.1em;height:0;border-top:.2em solid var(--cv-blue);border-radius:1em}
.cv-legend .k-dash::before{border-top:.16em dashed #b8b8b8}

.cv-rings-body{flex:1;display:flex;align-items:center;gap:.9em;margin-top:.4em}
.cv-ring{width:7.6em;height:7.6em;flex:none}
.cv-ring circle{stroke:var(--c);stroke-width:8.6}
.cv-ring .t{opacity:.15}
.cv-ring .r{stroke-dasharray:var(--p) 1}
.cv-key{display:flex;flex-direction:column;gap:.6em;font-size:1.2em;font-weight:600;color:#555;line-height:1}
.cv-key li{display:flex;align-items:center;gap:.45em}
.cv-key li::before{content:"";width:.62em;height:.62em;border-radius:50%;background:var(--c)}

.cv-bars{margin-block:auto 0;padding-top:1.4em;display:flex;flex-direction:column;gap:.75em}
.cv-bars li{display:grid;grid-template-columns:5.8em 1fr;align-items:center}
.cv-bars span{font-size:1.2em;font-weight:550;color:#7a7a7a;line-height:1}
.cv-bars i{height:1.05em;border-radius:.6em;background:linear-gradient(var(--c),var(--c)) 0 0/calc(var(--p)*100%) 100% no-repeat,#f1f1f1;transform-origin:left}

/* Selection: moves between cards, with my cursor on its corner */
.cv-focus{
  position:absolute;left:calc(var(--x)*1em - .25em);top:calc(var(--y)*1em - .25em);
  width:calc(var(--w)*1em + .5em);height:calc(var(--h)*1em + .5em);
  border:.15em solid var(--cv-blue);border-radius:1.7em;pointer-events:none;
  transition:left .7s var(--ease),top .7s var(--ease),width .7s var(--ease),height .7s var(--ease);
}
.cv-focus .h{position:absolute;width:.85em;height:.85em;background:#fff;border:.15em solid var(--cv-blue);border-radius:.15em}
.cv-focus .tl{left:-.5em;top:-.5em}.cv-focus .tr{right:-.5em;top:-.5em}
.cv-focus .bl{left:-.5em;bottom:-.5em}.cv-focus .br{right:-.5em;bottom:-.5em}
.cv-name{position:absolute;left:0;bottom:calc(100% + .45em);font-size:1.15em;font-weight:600;color:var(--cv-blue);white-space:nowrap;line-height:1}
.cv-size{position:absolute;left:50%;top:calc(100% + .55em);transform:translateX(-50%);background:var(--cv-blue);color:#fff;font-size:1.1em;font-weight:600;padding:.3em .55em;border-radius:.4em;white-space:nowrap;line-height:1;font-variant-numeric:tabular-nums}

/* Cursors */
.cv-cursor{position:absolute;display:block;pointer-events:none;z-index:2}
.cv-cursor svg{width:2.2em;height:2.2em;max-width:none;fill:var(--c);stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 .1em .2em rgba(0,0,0,.25))}
.cv-cursor b{position:absolute;left:1.55em;top:1.85em;background:var(--c);color:#fff;font-size:1.15em;font-weight:600;padding:.32em .6em;border-radius:.5em .9em .9em .9em;white-space:nowrap;line-height:1;letter-spacing:0}
.cv-cursor.me{left:calc(100% - .55em);top:calc(100% - .45em);transition:none}
.cv-focus.flip .cv-cursor.me b{left:auto;right:.2em;border-radius:.9em .5em .9em .9em}

/* Bottom toolbar */
.cv-tools{position:absolute;left:50%;bottom:2em;transform:translateX(-50%);display:flex;gap:.3em;padding:.45em;background:#fff;border-radius:1.4em;
  box-shadow:0 0 0 1px rgba(0,0,0,.06),0 1em 2em -1em rgba(0,0,0,.25)}
.cv-tools i{display:grid;place-items:center;width:3.2em;height:3.2em;border-radius:1em;color:#3a3a3a}
.cv-tools i.on{background:var(--cv-blue);color:#fff}
.cv-tools svg{width:1.8em;height:1.8em;stroke:currentColor;stroke-width:1.8}
.cv-tools i.on svg,.cv-tools i:first-child svg{fill:currentColor;stroke:none}
.cv-tools i.on svg{stroke:none}

.cv-note{font-size:.8125rem;color:var(--faint);text-align:center;max-width:40ch;text-wrap:pretty}
.cv-note b{color:var(--black);font-weight:650}

/* Motion: only when the canvas comes into view, and never with reduced motion */
@media (prefers-reduced-motion:no-preference){
  .cv.play .cv-card{animation:cvIn .9s var(--ease) both}
  .cv.play .cv-growth{animation-delay:.05s}.cv.play .cv-rings{animation-delay:.15s}
  .cv.play .cv-ret{animation-delay:.25s}.cv.play .cv-fun{animation-delay:.35s}
  .cv.play .draw{stroke-dasharray:1 1;animation:cvDraw 1.6s var(--ease) both;animation-delay:.6s}
  .cv.play .cv-prev{animation:cvFade 1s ease both .6s}
  .cv.play .cv-area,.cv.play .cv-dot,.cv.play .cv-halo{animation:cvFade .8s ease both 1.5s}
  .cv.play .cv-ring .r{animation:cvRing 1.6s var(--ease) both .7s}
  .cv.play .cv-bars i{animation:cvBar 1.2s var(--ease) both}
  .cv.play .cv-bars li:nth-child(1) i{animation-delay:.7s}.cv.play .cv-bars li:nth-child(2) i{animation-delay:.8s}
  .cv.play .cv-bars li:nth-child(3) i{animation-delay:.9s}.cv.play .cv-bars li:nth-child(4) i{animation-delay:1s}
  .cv.play .cv-bars li:nth-child(5) i{animation-delay:1.1s}
  .cv.play .cv-focus{animation:cvFade .5s ease both 1.6s}
  .cv.play .cv-tools,.cv.play .cv-frame,.cv.play .cv-people{animation:cvFade .8s ease both .2s}
  .cv.play .drift{animation:cvFade .6s ease both 1.2s,cvD1 9s ease-in-out 1.8s infinite}
  .cv.play .d2{animation:cvFade .6s ease both 1.5s,cvD2 11s ease-in-out 2.1s infinite}
  .cv.play .d3{animation:cvFade .6s ease both 1.8s,cvD3 10s ease-in-out 2.4s infinite}
  .cv.play .cv-halo{animation:cvFade .8s ease both 1.5s,cvPulse 2.4s ease-out 2.3s infinite}
}
@keyframes cvIn{from{opacity:0;transform:translateY(1.2em) scale(.97)}}
@keyframes cvFade{from{opacity:0}}
@keyframes cvDraw{from{stroke-dashoffset:1}}
@keyframes cvRing{from{stroke-dasharray:0 1}}
@keyframes cvBar{from{transform:scaleX(0)}}
@keyframes cvPulse{0%{transform:scale(.6);opacity:.35}70%,100%{transform:scale(1.9);opacity:0}}
@keyframes cvD1{0%,100%{transform:translate(0,0)}30%{transform:translate(-3.2em,2.4em)}65%{transform:translate(2em,3.6em)}}
@keyframes cvD2{0%,100%{transform:translate(0,0)}40%{transform:translate(-4.6em,-1.4em)}75%{transform:translate(-1.6em,2em)}}
@keyframes cvD3{0%,100%{transform:translate(0,0)}35%{transform:translate(-2.4em,-5em)}70%{transform:translate(2.2em,-2.2em)}}

/* ---------- The job ---------- */
.problem-grid{display:grid;gap:clamp(28px,5vw,64px)}
.pains{border-top:1px solid var(--line)}
.pains li{
  padding:1.05rem 0;border-bottom:1px solid var(--line);
  font-size:clamp(1.0625rem,.98rem + .55vw,1.375rem);font-weight:550;letter-spacing:-.02em;line-height:1.35;
}
.pains-close{margin-top:1.6rem;font-size:clamp(1.0625rem,1rem + .3vw,1.25rem);color:var(--muted);text-wrap:pretty}
.pains-close b{color:var(--black);font-weight:650}

/* ---------- What I bring ---------- */
.cards{display:grid;gap:2.4rem clamp(24px,4vw,40px);margin-top:clamp(2.2rem,4vw,3.2rem)}
.card{border-top:2px solid var(--black);padding-top:1.3rem}
.card h3{font-size:clamp(1.6rem,1.2rem + 1.6vw,2.1rem);letter-spacing:-.04em;line-height:1.05}
.card p{margin-top:.7rem;color:var(--muted);max-width:40ch;text-wrap:pretty}

/* ---------- Where I scale ---------- */
.reach{background:var(--soft)}
.reach h2{max-width:17ch;font-size:clamp(2.3rem,1.3rem + 5vw,4.4rem)}
.reach-sub{margin-top:1.3rem;font-size:clamp(1.0625rem,1rem + .35vw,1.25rem);color:var(--muted);max-width:52ch;text-wrap:pretty}

/* ---------- Contact ---------- */
.contact{background:var(--black);color:var(--white);text-align:center;padding-block:clamp(84px,12vw,150px)}
.contact img{width:88px;height:88px;border-radius:50%;object-fit:cover;margin:0 auto 1.7rem;box-shadow:0 0 0 1px var(--on-black-line)}
.contact h2{margin-inline:auto;max-width:13ch}
.contact p{margin:1.2rem auto 0;max-width:38ch;color:var(--on-black-muted);font-size:clamp(1.0625rem,1rem + .35vw,1.25rem);text-wrap:pretty}
.contact .cta{margin-top:2.2rem}
.contact .mail{display:block;margin-top:1rem;font-size:.9375rem;color:var(--on-black-muted)}

@media (max-width:519px){
  .cv-wrap{width:calc(100% + 24px);max-width:none;margin-inline:-12px}
  .hero-action{align-items:stretch}
  .hero-action .cta{width:100%}
  .hero-action .mail{text-align:center}
}
@media (min-width:640px){ .cards{grid-template-columns:repeat(2,1fr)} }
@media (min-width:900px){ .problem-grid{grid-template-columns:.95fr 1.05fr;align-items:start} }
@media (min-width:960px){
  .hero-grid{grid-template-columns:1.1fr .9fr}
  .cv-wrap{justify-self:end}
}
@media (min-width:1040px){ .cards{grid-template-columns:repeat(4,1fr)} }
